Question

3. A cantilever beam carries a linearly varying triangular load over its span such that it is

maximum at the fixed end and zero at the free end. Find the variation of BM and the shape

of elastic curve using finite difference method and compare it with the exact solution. Write

mat file in Matlab for solving this problem with n discretized parts of the span. Use n = 20

for plotting.