The bilinear square finite element contains the terms . In anticlockwise corner order beginning at , its shape functions are
The mass matrix has entries . Each product separates into one-dimensional factors, with and . Diagonal, adjacent-corner and opposite-corner entries are respectively , , . Thus
Number global grid nodes by , with , and . For an interior node, four elements contribute to its diagonal, two to each axial neighbour and one to each diagonal neighbour. Its global row therefore has the nine-point stencil
In the stated ordering the axial entries occur at columns and ; the four diagonal ones occur at . No boundary degrees of freedom have been removed.
For general valid quadrilaterals, use an isoparametric finite element. Map the unit square to an element by and define physical shape functions . Require a one-to-one nondegenerate map and compatible common edges. On a shared edge the map and the trace of each shape function are linear between the same endpoints; the neighbouring traces therefore agree. The assembled functions are continuous and lie in , giving a conforming finite element space. On a non-parallelogram the pulled-back functions are generally not bilinear polynomials in the physical coordinates themselves.