Lagrange shape functions and their first and second derivatives on the reference elements of the finite element method, including mapped infinite elements.