Building and Solving the Stiffness Matrix