What is the role of shape functions in FEM?

Explanation:

Shape functions interpolate variables in elements.