How to integrate per cell?

See for Element stiffness matrix - #2 by bhaveshshrimali