Skip to main content

Thomas’ Calculus · Chapter 14 · Section 14.9

By Muhammad Abdullah Athar · SymPy Verified

Taylor's Formula for Two Variables

❦

Read this page the way you would a book: first the notes, then the key ideas, then every worked example in order — each step explains not only what to do, but why it works.

Part One

Section Notes

❧

Section 14.9: Taylor's Formula for Two Variables

Taylor polynomials approximate multivariable functions near a base point using higher-order partial derivatives.


1. Second-Order Taylor Polynomial at (0,0)(0, 0)

f(x,y)≈f(0,0)+fxx+fyy+12(fxxx2+2fxyxy+fyyy2)f(x, y) \approx f(0, 0) + f_x x + f_y y + \frac{1}{2} \left( f_{xx} x^2 + 2 f_{xy} xy + f_{yy} y^2 \right)

In vector notation with x=⟨x,y⟩\mathbf{x} = \langle x, y \rangle: f(x)≈f(0)+∇f(0)⋅x+12xTHf(0) xf(\mathbf{x}) \approx f(\mathbf{0}) + \nabla f(\mathbf{0}) \cdot \mathbf{x} + \frac{1}{2} \mathbf{x}^T H f(\mathbf{0}) \, \mathbf{x}

where HfH f is the symmetric 2×22 \times 2 Hessian matrix: Hf=(fxxfxyfxyfyy)H f = \begin{pmatrix} f_{xx} & f_{xy} \\ f_{xy} & f_{yy} \end{pmatrix}

Part Two

Key Ideas to Remember

2 essential statements for this section, each with a plain-words explanation.

Theorem #1Sec 14.9

Taylor's Formula for Two Variables

f(a+h,b+k)=f(a,b)+(hfx+kfy)+12!(h2fxx+2hkfxy+k2fyy)+⋯f(a+h, b+k) = f(a, b) + (h f_x + k f_y) + \frac{1}{2!}(h^2 f_{xx} + 2hk f_{xy} + k^2 f_{yy}) + \cdots

If f and its partial derivatives through order n+1 are continuous on an open disk centered at (a, b), then f can be approximated near (a, b) by its n-th degree Taylor polynomial with remainder term.

Conditions: f has continuous partial derivatives through order n+1

In plain words: Derived by restricting f to the line segment connecting (a, b) to (a+h, b+k) and applying single-variable Taylor's theorem.

Remember — Enables quadratic and higher-order polynomial approximations of multivariable surfaces.

Formula #2Sec 14.9

Quadratic (Second-Order) Taylor Polynomial

Q(x,y)=f(0,0)+fxx+fyy+12fxxx2+fxyxy+12fyyy2Q(x, y) = f(0, 0) + f_x x + f_y y + \frac{1}{2} f_{xx} x^2 + f_{xy} xy + \frac{1}{2} f_{yy} y^2

The quadratic Taylor polynomial Q(x, y) of f about (0, 0) matches the value, gradient, and Hessian matrix of f at the origin.

Conditions: Continuous second partial derivatives

In plain words: The quadratic terms (1/2)(h^2 f_{xx} + 2hk f_{xy} + k^2 f_{yy}) govern surface curvature and justify the Second Derivative Test.

Remember — The Hessian quadratic form dictates local surface concavity and extrema.

Part Three

Worked Examples

5 exercises, solved in full. Every answer has been checked symbolically with SymPy before printing.

Example 01(Section 14.9, Exercise 1)

Core practice

Problem. Find the second-order Taylor polynomial P_2(x, y) for f(x, y) = exp(x) cos(y) about (0, 0).

Step-by-Step Derivation (3 steps)

1

Compute Partial Derivatives Through Order 2 at (0, 0)

f(0,0)=1;fx=excos⁡y  ⟹  1;fy=−exsin⁡y  ⟹  0f(0, 0) = 1; \quad f_x = e^x\cos y \implies 1; \quad f_y = -e^x\sin y \implies 0

Evaluate value and first-order partials.

Why this works: Finding linear Taylor terms.
2

Evaluate Second-Order Partials at (0, 0)

fxx=excos⁡y  ⟹  1;fxy=−exsin⁡y  ⟹  0;fyy=−excos⁡y  ⟹  −1f_{xx} = e^x\cos y \implies 1; \quad f_{xy} = -e^x\sin y \implies 0; \quad f_{yy} = -e^x\cos y \implies -1

Differentiate to obtain all second partial derivatives.

Why this works: Finding quadratic Taylor terms.
3

Assemble Taylor Polynomial

P2(x,y)=1+1x+0y+12((1)x2+2(0)xy+(−1)y2)=1+x+x22−y22P_2(x, y) = 1 + 1x + 0y + \frac{1}{2}\left( (1)x^2 + 2(0)xy + (-1)y^2 \right) = 1 + x + \frac{x^2}{2} - \frac{y^2}{2}

Combine into quadratic polynomial.

Why this works: Formulating second-order approximation.

Answer: P2(x,y)=1+x+12x2−12y2P_2(x, y) = 1 + x + \frac{1}{2}x^2 - \frac{1}{2}y^2

✓ Verified by SymPy CAS

Example 02(Section 14.9, Exercise 2)

Warm-up

Problem. Find the quadratic Taylor polynomial for f(x, y) = sin(x) sin(y) about (0, 0).

Step-by-Step Derivation (2 steps)

1

Evaluate Single Variable Series Products

sin⁡x=x−x36+⋯ ,sin⁡y=y−y36+⋯\sin x = x - \frac{x^3}{6} + \cdots, \quad \sin y = y - \frac{y^3}{6} + \cdots

Multiply the single-variable Maclaurin series.

Why this works: Applying series multiplication method.
2

Truncate to Degree <= 2

sin⁡xsin⁡y=(x−⋯ )(y−⋯ )=xy+O(∥x∥4)  ⟹  P2(x,y)=xy\sin x \sin y = \left( x - \cdots \right)\left( y - \cdots \right) = xy + \mathcal{O}(\|\mathbf{x}\|^4) \implies P_2(x, y) = xy

The only term of degree <= 2 is the cross-product term xy.

Why this works: Extracting second-order polynomial.

Answer: P2(x,y)=xyP_2(x, y) = xy

✓ Verified by SymPy CAS

Example 03(Section 14.9, Exercise 3)

Core practice

Problem. Find the quadratic Taylor polynomial for f(x, y) = 1 / (1 - x - y) about (0, 0).

Step-by-Step Derivation (2 steps)

1

Apply Geometric Series Formula

11−u=1+u+u2+⋯with u=x+y\frac{1}{1 - u} = 1 + u + u^2 + \cdots \quad \text{with } u = x + y

Set u = x + y for |x + y| < 1.

Why this works: Expanding rational function.
2

Expand and Collect Terms Through Degree 2

P2(x,y)=1+(x+y)+(x+y)2=1+x+y+x2+2xy+y2P_2(x, y) = 1 + (x + y) + (x + y)^2 = 1 + x + y + x^2 + 2xy + y^2

Expand the square (x + y)^2 = x^2 + 2xy + y^2.

Why this works: Formulating quadratic polynomial.

Answer: P2(x,y)=1+x+y+x2+2xy+y2P_2(x, y) = 1 + x + y + x^2 + 2xy + y^2

✓ Verified by SymPy CAS

Example 04(Section 14.9, Exercise 4)

Core practice

Problem. Compute the Hessian determinant H = f_{xx} f_{yy} - (f_{xy})^2 for the quadratic form f(x, y) = x^2 + 3xy + 2y^2 and determine its definiteness.

Step-by-Step Derivation (2 steps)

1

Compute Second Partial Derivatives

fxx=2,fyy=4,fxy=3f_{xx} = 2, \quad f_{yy} = 4, \quad f_{xy} = 3

Differentiate quadratic terms.

Why this works: Constructing Hessian entries.
2

Calculate Hessian Determinant

det⁡(H)=(2)(4)−(3)2=8−9=−1\det(H) = (2)(4) - (3)^2 = 8 - 9 = -1

Evaluate discriminant D = 8 - 9 = -1.

Why this works: Testing definiteness.

Answer: H=−1  ⟹  Indefinite quadratic form (saddle behavior)H = -1 \implies \text{Indefinite quadratic form (saddle behavior)}

✓ Verified by SymPy CAS

Example 05(Section 14.9, Exercise 5)

Challenge

Problem. For f(x, y) = cos(x + y), linear approximation at (0, 0) is P_1(x, y) = 1. Bound the absolute approximation error for |x| <= 0.1 and |y| <= 0.1.

Step-by-Step Derivation (2 steps)

1

Bound Second Derivatives

∣fxx∣=∣−cos⁡(x+y)∣≤1,∣fxy∣≤1,∣fyy∣≤1  ⟹  M=1|f_{xx}| = |-\cos(x+y)| \le 1, \quad |f_{xy}| \le 1, \quad |f_{yy}| \le 1 \implies M = 1

All second partial derivatives are bounded by M = 1 in absolute value.

Why this works: Establishing uniform second-derivative bound.
2

Apply Remainder Formula

∣R1∣≤12M(∣x∣+∣y∣)2≤12(1)(0.1+0.1)2=12(0.2)2=12(0.04)=0.02|R_1| \le \frac{1}{2} M (|x| + |y|)^2 \le \frac{1}{2}(1)(0.1 + 0.1)^2 = \frac{1}{2}(0.2)^2 = \frac{1}{2}(0.04) = 0.02

Evaluate Taylor remainder upper bound.

Why this works: Bounding linear approximation error.

Answer: ∣R1(x,y)∣≤0.02|R_1(x, y)| \le 0.02

✓ Verified by SymPy CAS