6.
Introduction to Truncation Errors and Taylor Series
Practical problem - Bonus
A cantilever of length 𝐿 is subjected to a constant load 𝑤 (force per unit length). The vertical displacement 𝑦 at a point
located a distance 𝑥 from the clamped end can be found from the closed-form relation
𝑤
𝑦 𝑥 𝑥 4𝐿𝑥 6𝐿 𝑥
24𝐸𝐼
Where: 𝐸 is the elastic modulus (2 10 𝑃𝑎 , 𝐼 is the second moment of area (3.3 10 𝑚 ), 𝑤 is the uniform load
intensity (12000 𝑁/𝑚 , 𝐿 is the total beam length (4 m).
If one differentiates with respect to 𝑥, the slope of the deflection curve becomes
𝑑𝑦 𝑤
4𝑥 12𝐿𝑥 12𝐿 𝑥
𝑑𝑥 24𝐸𝐼
Assuming the deflection at the support is zero, 𝑦 0 0, implement the forward-Euler Method with step size Δx = 0.125 m
to march from x = 0 up to x = L. Compute the sequence of approximate deflections and then plot these numerical values
together with the exact profile given by the formula above.
NUMERICAL METHODS 96