The metric tensor field on a Riemannian manifold is a function which specifies for each point of the manifold a non-degenerate, positive-definite symmetric bilinear form. The value of the metric tensor field at each point is a metric tensor which is is function that takes as its inputs a pair of tangent vectors from the tangent space at that point. It is defined intrinsically in this way, without reference to coordinates. But coordinates are useful for doing calculations. For every coordinate system (Cartesian, spherical, etc.), there is, at each point of the manifold, a special basis for the tangent space at that point called a coordinate basis. If a coordinate function is labeled x^i, the coordinate basis vector field corresponding to this coordinate function is typically written
\frac{\partial }{\partial x^i}.
The corresponding
dual basis vector field, for this coordinate basis, is \mathrm{d}x^i; these functions specify a basis for the cotangent space at each point of the manifold. The metric tensor field, as a type (0,2) tensor field, can be expressed as a linear combination of tensor products of pairs of dual basis vector fields.
For example, at every point of 3d Euclidean space, the Euclidean metric tensor field has the following coefficients (=components) with respect to the coordinate basis for Cartesian coordinates: ( \delta_{ij} )
=\begin{pmatrix}<br />
1 & 0 & 0\\ <br />
0 & 1 & 0\\ <br />
0 & 0 & 1<br />
\end{pmatrix}
That is to say, the metric tensor field is
\mathbf{g}=\mathrm{d}x \otimes \mathrm{d}x + \mathrm{d}y \otimes \mathrm{d}y + \mathrm{d}z \otimes \mathrm{d}z.
But with respect to a coordinate basis for spherical coordinates on 3d Euclidean space, ( r, \zeta, \alpha ) (where r is the radial coordinate function, \zeta the zenith angle coordinate function, and \alpha the azimuth angle coordinate function), this same Euclidean metric tensor field has a different set of coefficient functions, namely:
\begin{pmatrix}<br />
1 & 0 & 0\\ <br />
0 & r^2 & 0\\ <br />
0 & 0 & r^2 \sin(\zeta)^2<br />
\end{pmatrix}
where r and \zeta are functions from the manifold, Euclidean space, to the real numbers. (The coefficient functions of the metric tensor field are not constant with respect to this coordinate basis, as they were with respect to a Cartesian coordinate basis.)
That is to say, the metric tensor field can also be expressed
\mathbf{g}=\mathrm{d}r \otimes \mathrm{d}r + r^2 \mathrm{d}\zeta \otimes \mathrm{d}\zeta + r^2 \sin(\zeta)^2 \mathrm{d}\alpha \otimes \mathrm{d}\alpha.
Same tensor field, just expressed with respect to different bases. A tensor is a kind of vector, so this is exactly the same idea as expressing any vector as a linear combination of basis vectors. When you change basis, you have to change the scalar coefficients in the sum if you want to describe the same vector.