Type a command or search the notes. Tab cycles completions. Up and down recall history when blank. Escape dismisses, then leaves the prompt.
MATH
[1251]

Multivariable approximation

Read tangent planes as first-order models and construct higher-order Taylor polynomials.

This page reads the tangent plane as the first-order Taylor approximation of a function and then adds terms of higher degree. The tangent plane captures change that is linear in the displacement from the base point. It is usually enough for a nearby estimate, but a higher-order Taylor polynomial is needed when the first-order change cancels or when curvature controls the error.

The construction extends the one-variable Taylor polynomial: the term 12f′′(a)(x−a)2\frac12f''(a)(x-a)^2 becomes the quadratic form 12hTHf(a)h\frac12\mathbf h^{\mathsf T}H_f(\mathbf a)\mathbf h, so the Hessian is the multivariable curvature matrix.

Linear approximation and the tangent-plane model

[METHOD]

Approximate a function linearly

For a differentiable f:R2→Rf:\mathbb{R}^2\to\mathbb{R} and a base point a=(x0,y0)\mathbf{a}=(x_0,y_0), approximate nearby values by

f(x)≈f(a)+∇f(a)⋅(x−a).f(\mathbf{x}) \approx f(\mathbf{a}) +\nabla f(\mathbf{a})\cdot(\mathbf{x}-\mathbf{a}).

To use the approximation, evaluate ff and its first partial derivatives at a\mathbf{a}, then substitute the displacement x−a\mathbf{x}-\mathbf{a}.

The expression is the equation of the tangent plane with the output written as a function of the input. Differentiability means that the omitted error, divided by ∥x−a∥\|\mathbf{x}-\mathbf{a}\|, tends to zero as x→a\mathbf{x}\to\mathbf{a}. Thus one linear model works for changes in every direction, not just along the coordinate axes.

[EXAMPLE]

Linearise (x−y)2(x-y)^2

Let

f(x,y)=x2+y2−2xy=(x−y)2.f(x,y)=x^2+y^2-2xy=(x-y)^2.

At (1,3)(1,3),

f(1,3)=4,fx=2x−2y,fy=2y−2x,f(1,3)=4, \qquad f_x=2x-2y, \qquad f_y=2y-2x,

so

fx(1,3)=−4,fy(1,3)=4.f_x(1,3)=-4, \qquad f_y(1,3)=4.

The tangent-plane approximation is

L(x,y)=4−4(x−1)+4(y−3)=−4x+4y−4.\begin{aligned} L(x,y) &=4-4(x-1)+4(y-3)\\ &=-4x+4y-4. \end{aligned}

Thus, close to (1,3)(1,3),

(x−y)2≈−4x+4y−4.{(x-y)^2\approx -4x+4y-4}.

Writing x=1+hx=1+h and y=3+ky=3+k shows exactly what the linear model omits:

f(1+h,3+k)=4−4h+4k+(h−k)2.f(1+h,3+k)=4-4h+4k+(h-k)^2.

The approximation keeps the constant and first-degree terms and discards the quadratic error (h−k)2(h-k)^2. This also shows why the estimate improves faster than the displacement as (h,k)→(0,0)(h,k)\to(0,0).

Higher-order terms record curvature

To record curvature and interactions between coordinate changes, we keep monomials up to a chosen total degree and collect the second-order derivatives in a matrix.

[DEFINITION]

Total degree

The total degree of the monomial xnymx^ny^m is n+mn+m. The total degree of a polynomial is the largest total degree among its monomial terms.

For example, in

p(x,y)=1+x−y+x2−xy+x3y2,p(x,y)=1+x-y+x^2-xy+x^3y^2,

the term x3y2x^3y^2 has total degree 55, so deg⁡p=5\deg p=5. This is the degree used when deciding which terms belong in a multivariable Taylor polynomial.

[DEFINITION]

Hessian matrix

For f:R2→Rf:\mathbb{R}^2\to\mathbb{R}, the Hessian at x0=(x0,y0)\mathbf{x}_0=(x_0,y_0) is

Hf(x0)=(fxx(x0)fxy(x0)fyx(x0)fyy(x0)).H_f(\mathbf{x}_0) = \begin{pmatrix} f_{xx}(\mathbf{x}_0)&f_{xy}(\mathbf{x}_0)\\ f_{yx}(\mathbf{x}_0)&f_{yy}(\mathbf{x}_0) \end{pmatrix}.

When the mixed partials are continuous, fxy=fyxf_{xy}=f_{yx}, so the Hessian is symmetric. It records the second-order changes omitted by the linear approximation and its determinant classifies stationary points through the quadratic part of the local Taylor model.

[DEFINITION]

Taylor polynomial through degree three

Let a=(x0,y0)\mathbf{a}=(x_0,y_0), hx=x−x0h_x=x-x_0 and hy=y−y0h_y=y-y_0. If ff has continuous partial derivatives through order three near a\mathbf{a}, its Taylor polynomial through total degree three is

T3(x,y)=f(a)+fx(a)hx+fy(a)hy+12!(fxx(a)hx2+2fxy(a)hxhy+fyy(a)hy2)+13!(fxxx(a)hx3+3fxxy(a)hx2hy+3fxyy(a)hxhy2+fyyy(a)hy3).\begin{aligned} T_3(x,y) ={}&f(\mathbf{a}) +f_x(\mathbf{a})h_x +f_y(\mathbf{a})h_y\\ &+\frac{1}{2!} \left( f_{xx}(\mathbf{a})h_x^2 +2f_{xy}(\mathbf{a})h_xh_y +f_{yy}(\mathbf{a})h_y^2 \right)\\ &+\frac{1}{3!} \left( f_{xxx}(\mathbf{a})h_x^3 +3f_{xxy}(\mathbf{a})h_x^2h_y +3f_{xyy}(\mathbf{a})h_xh_y^2 +f_{yyy}(\mathbf{a})h_y^3 \right). \end{aligned}

The degree-two part can be written with the Hessian as

T2(x)=f(a)+∇f(a)⋅(x−a)+12(x−a)THf(a)(x−a).T_2(\mathbf{x}) = f(\mathbf{a}) +\nabla f(\mathbf{a})\cdot(\mathbf{x}-\mathbf{a}) +\frac12 (\mathbf{x}-\mathbf{a})^{\mathsf T} H_f(\mathbf{a}) (\mathbf{x}-\mathbf{a}).

The quadratic and cubic parts refine the tangent-plane model by the terms of total degree two and three.

To see where the mixed coefficients come from, apply the one-variable Taylor formula to g(t)=f(a+th)g(t)=f(\mathbf{a}+t\mathbf h). Then g′′(0)=fxxhx2+2fxyhxhy+fyyhy2g''(0)=f_{xx}h_x^2+2f_{xy}h_xh_y+f_{yy}h_y^2; the two mixed terms arise by differentiating once in each coordinate. The cubic coefficients count the three orders in which two xx-derivatives and one yy-derivative can occur, or vice versa.

Under the stated C3C^3 assumption, the omitted remainder satisfies

f(a+h)=T3(a+h)+o(∥h∥3)(h→0).f(\mathbf a+\mathbf h)=T_3(\mathbf a+\mathbf h)+o(\|\mathbf h\|^3) \qquad(\mathbf h\to\mathbf0).

If ff is C4C^4 near a\mathbf a, the remainder improves to O(∥h∥4)O(\|\mathbf h\|^4) for sufficiently small h\mathbf h.

Construct multivariable Taylor polynomials

[METHOD]

Construct a multivariable Taylor polynomial

To construct the Taylor polynomial through degree n≤3n\le3 about a\mathbf{a}:

  1. choose the centre and the required total degree;
  2. calculate the partial derivatives through that order;
  3. evaluate them at a\mathbf{a};
  4. retain the terms through total degree nn in the formula above.

The result agrees with ff at a\mathbf{a} and matches the relevant partial derivatives there. It is a local approximation, not generally an identity on the whole domain.

[EXAMPLE]

ex−ye^{x-y} near the origin

Let

f(x,y)=ex−y.f(x,y)=e^{x-y}.

Set u=x−yu=x-y. The one-variable exponential expansion in uu gives

T3(x,y)=1+(x−y)+(x−y)22+(x−y)36.{ T_3(x,y) =1+(x-y)+\frac{(x-y)^2}{2} +\frac{(x-y)^3}{6} }.

Each power (x−y)k(x-y)^k has total degree kk, so truncating the series in uu after u3u^3 keeps exactly the terms of total degree at most three.

[EXAMPLE]

A function that is already a polynomial

For

f(x,y)=x2y,f(x,y)=x^2y,

the function has total degree three. Hence its Taylor polynomial through degree three about (0,0)(0,0) is exact:

T3(x,y)=x2y.{T_3(x,y)=x^2y}.

The derivative construction gives the same result: all lower-degree terms vanish at the origin and the third-order term reproduces x2yx^2y.

[EXAMPLE]

An exponential of three variables

For

f(x,y,z)=ex+y+zf(x,y,z)=e^{x+y+z}

near (0,0,0)(0,0,0), set s=x+y+zs=x+y+z. The degree-two Taylor polynomial is

T2(x,y,z)=1+(x+y+z)+12(x+y+z)2.{ T_2(x,y,z) =1+(x+y+z)+\frac12(x+y+z)^2 }.

The total degree counts the total number of factors drawn from all coordinate increments, so the same construction works in any number of variables.

Like the one-variable Taylor polynomials, this construction matches derivatives at one centre; interpolation instead matches values at distinct nodes. When the gradient vanishes, the quadratic part above becomes the leading term that classifies stationary points.

On this page