Tangent planes and local linearization

How to compute the tangent plane of a three-dimensional graph, and how this can be generalized to approximations of higher dimensional functions.