Skip to main content

Optimization and Taylor Approximation

A tangent predicts a nearby value, but can you bound the error or improve the prediction? This chapter builds Taylor polynomials and uses curvature to classify scalar critical points.

  • Taylor approximation: A polynomial approximation built from derivatives at a chosen point.

Add the curvature term​

If ff has k+1k+1 continuous derivatives on an interval containing aa and xx, Taylor's theorem gives

f(x)=∑j=0kf(j)(a)j!(x−a)j+Rk(x),∣Rk(x)∣≤M∣x−a∣k+1(k+1)!,f(x)=\sum_{j=0}^{k}\frac{f^{(j)}(a)}{j!}(x-a)^j+R_k(x), \qquad |R_k(x)|\le\frac{M|x-a|^{k+1}}{(k+1)!},

where MM bounds ∣f(k+1)∣|f^{(k+1)}| on that interval. The bound depends on the interval and smoothness; it is not an automatic property of any fitted polynomial.

For exe^x at zero, the quadratic prediction at x=0.1x=0.1 is 1+0.1+0.12/2=1.1051+0.1+0.1^2/2=1.105. On [0,0.1][0,0.1], use M=e0.1M=e^{0.1} to get an error at most e0.1(0.1)3/6<0.000185e^{0.1}(0.1)^3/6<0.000185. The actual error is about 0.00017020.0001702.

Linear and quadratic approximations with a bound on the remaining error
An extra derivative bound converts a local polynomial into a certified approximation.

Classify a critical point​

If f′(a)=0f'(a)=0 and f′′(a)>0f''(a)>0, the quadratic term gives a strict local minimum. A negative second derivative gives a strict local maximum. If f′′(a)=0f''(a)=0, the test is inconclusive: x4x^4, −x4-x^4, and x3x^3 have different behavior at zero despite identical first two derivatives there.

For q(x)=x2−2x+2=(x−1)2+1q(x)=x^2-2x+2=(x-1)^2+1, the stationary point 11 is a strict global minimum. On a compact interval compare all interior candidates with endpoints. On an unbounded domain, a local test alone cannot establish a global optimum.

Separate finite polynomials from infinite series​

A Taylor polynomial is a finite local approximation with a remainder. A Taylor series is an infinite sequence of such approximations; whether it converges to the function needs a further argument. A smooth function need not equal its Taylor series. That distinction returns in the series chapters.

Basic practice​

Prepare​

Reuse the tangent remainder table. Prepare q(x) = (x - 1)² + 1 and the quadratic Taylor model for e^x at zero.

Record assumed inputs, predictions, and exact calculations separately. If you use software, label rounded outputs; no physical measurement is implied.

Predict​

Will a zero second derivative decide whether a stationary point is an extremum?

Execute​

  1. Compute the quadratic Taylor prediction for e^0.1 and its stated error bound.
  2. Minimize q on [0, 3] by comparing the critical point and endpoints.
  3. Compare x⁴, -x⁴, and x³ near zero.

Observe and record​

Case or quantityPredictionExact result or argumentError or software check
e^0.1: prediction and bound
q: candidate and endpoint values
Zero-curvature examples

Check after working: The prediction is 1.105 with error below 0.000185. The q values at 0, 1, 3 are 2, 1, 5. The final three examples give a minimum, maximum, and neither.

Optional extension​

Use a cubic Taylor polynomial for e^0.1 and compare its guaranteed error with the quadratic bound.

Keep and continue​

Keep Taylor bounds and the scalar curvature test. Next, solve an equation by repeatedly correcting a local linear model.

Previous: What Derivatives Tell You

Next: Newton’s Method