Finite element formulation is presented in the following pdf file:
Finite Element Formulation Click here (size~ 166 kb)