Quiz 08ode Finitediff Solution
Quiz 08ode Finitediff Solution
Quiz 08ode Finitediff Solution
Solution
The correct answer is (A).
dx ⎝ dx ⎠
= ∫ (6 x − 0.5 x 2 )dx
dy
dx
6 x 2 0.5 x 3
= − +C
2 3
0.5 3
= 3x 2 − x +C
3
⎛ 0.5 3 ⎞
y = ∫ ⎜ 3x 2 − x + C ⎟dx
⎝ 3 ⎠
3 0.5 4
= x3 − x + Cx + D
3 12
0.5 4
= x3 − x + Cx + D
12
y (8) − y (0 )
(A)
8
y (8) − 2 y (4 ) + y (0 )
(B)
16
y (12 ) − 2 y (8) + y (4 )
(C)
16
y (4 ) − y (0 )
(D)
4
Solution
The correct answer is (B).
h h
● ● ●
i−1 i i+1
d2y
The finite difference approximation for at node i , that is x = xi , is given by
dx 2
d2y y − 2 yi + yi −1
2
≈ i +1
dx i h2
where
yi +1 = y (8)
yi = y (4)
yi −1 = y (0)
h=4
Thus
d 2 y y (8) − 2 y (4 ) + y (0 )
≈
dx 2 (4)2
y (8) − 2 y (4 ) + y (0 )
≈
16
3. Given
d2y
2
= 6 x − 0.5 x 2 , y (0 ) = 0 , y (12 ) = 0
dx
the value of y (4 ) using the finite difference method with a second order accurate central
divided difference method and a step size of h = 4 is
(A) 0.000
(B) 37.333
(C) − 234.67
(D) − 256.00
Solution
The correct answer is (D).
d2y
− 6 x − 0.5 x 2 = 0
dx 2
now
h h
● ● ●
i−1 i i+1
d2y
The finite difference approximation for at node i , that is x = xi , is given by
dx 2
d2y y − 2 yi + yi −1
2
≈ i +1
dx i h2
Thus
yi +1 − 2 yi + yi −1
− 6 xi + 0.5 xi2 = 0
(h )2
yi +1 − 2 yi + yi −1 − 6 xi h 2 + 0.5 xi2 h 2 = 0
yi +1 − 2 yi + yi −1 = 6 xi h 2 − 0.5 xi2 h 2
= 6 xi 4 2 − 0.5 xi2 4 2
= 96 xi − 8 xi2
4
● ● ● ● ●
node # 0 1 2 3 4
x
At node i = 0, x0 = 0
y0 = 0
At node i = 1, x1 = 4
y 2 − 2 y1 + y 0 = 96 x1 − 8 x12
= 96(4) − 8(16 )
= 256
At node i = 2, x2 = 8
y3 − 2 y 2 + y1 = 96 x 2 − 8 x22
= 96(8) − 8(64)
= 256
At node i = 3, x3 = 12
y3 = 0
which gives
y (0 ) = y0 = 0
y (4 ) ≈ y1 = −256
y (8) ≈ y2 = −256
y (12) = y3 = 0
Hence
y (4) ≈ −256
4. The transverse deflection u of a cable of length L that is fixed at both ends, is given as a
solution to
d 2 u Tu qx( x − L )
= +
dx 2 R 2R
where
T = tension in cable
R = flexural stiffness
q = distributed transverse load
T T q
u (x )
x
lbs
Given L = 50" , T = 2000 lbs , q = 75 , and R = 75 × 106 lbs ⋅ in 2
in
Using finite difference method modeling with second order central divided difference
accuracy and a step size of h = 12.5" , the value of the deflection at the center of the cable
most nearly is
(A) 0.072737″
(B) 0.080832″
(C) 0.081380″
(D) 0.084843″
Solution
The correct answer is (D).
h h
● ● ●
i−1 i i+1
Solution
The correct answer is (A).
2 6
Multiply the first equation by 4 and subtract it from the second equation.
u (r + 2Δr ) − 4u (r + Δr ) = −3u (r ) − u′(r )2Δr + O(Δr )
3
− u (r + 2Δr ) + 4u (r + Δr ) − 3u (r ) O(Δr )
3
u′(r ) = +
2Δr 2Δr
− u (r + 2Δr ) + 4u (r + Δr ) − 3u (r )
u′(r ) = + O(Δr )
2
2Δr
This equation is second order accurate, that is, the true error is O(Δr ) .
2
du − u (r + 2Δr ) + 4u (r + Δr ) − 3u (r )
≈
dr 2Δr
r = 5, Δr = 0.6
− u( ) + 4u ( 5 + 0.6) − 3u ( 5)
du
(5) ≈ 5 + 2 × 0.6
dr 2 × 0.6
− u ( 6.2) + 4u ( 5.6) − 3u ( 5)
=
2 × 0.6
L
x
2
d v
dx 2 qx(x − L )
(A) =
⎛ dv ⎞
2 2 EI
1+ ⎜ ⎟
⎝ dx ⎠
d 2v
dx 2 qx(x − L )
(B) 3
=
⎛ ⎛ dv ⎞ 2 ⎞ 2 2 EI
⎜1 + ⎜ ⎟ ⎟
⎜ ⎝ dx ⎠ ⎟
⎝ ⎠
2
d v
dx 2 qx( x − L )
(C) =
⎛ dv ⎞ 2 EI
1+ ⎜ ⎟
⎝ dx ⎠
2
d v
(D) dx 2 = qx( x − L )
dv 2 EI
1+
dx
Solution
The correct answer is (B).
The equation for the deflection in a beam is
1 M
=
ρ EI
Where
1
= curvature of the beam
ρ
M = internal moment of the beam where the curvature is to be determined
qL
The reaction at each support is .
2
q qx
x
2
M M
O O
x x
qL qL
2 2
Writing the balance of the bending moments at point O at a distance x from the left end,
qL x
M+ x − (qx ) = 0
2 2
2
qx qL
M = − x
2 2
qx( x − L )
=
2
Thus the equation for the deflection of the simply supported beam is
d 2v
dx 2 qx(x − L )
3
=
⎛ ⎛ dv ⎞ 2 ⎞ 2 2 EI
⎜1 + ⎜ ⎟ ⎟
⎜ ⎝ dx ⎠ ⎟
⎝ ⎠