typeset a bunch of calculations for entries of stiffness matrix