Elemental force=
or
Now,
where where is the sub grade modules, E is elasticity modules of pile material and A is the cross sectional area.
General solution is the values of & are obtained by applying boundary conditions.