Refer this for a step by step solution of the Cantilever beam problem.