Differentials and Approximations
Learning Objectives
- Understand the geometric and algebraic meaning of the differential and its role in calculating approximate functional changes.
- Apply linear approximation (linearization) to efficiently estimate function values and sensitivities near a known point.
- Extend the concept of linear approximation to construct higher-order Taylor and Maclaurin polynomials for increased numerical accuracy.
- Perform rigorous error analysis using differentials to calculate absolute, relative, and percentage errors in physical engineering measurements.
- Apply Newton's Method (Newton-Raphson) to find roots of complex equations iteratively and understand its convergence criteria.
The Differential Concept
The Differential
Let be a differentiable function.
Properties of Differentials
- The differential is an independent variable (representing a small change in , or ).
- The differential is defined as: . Geometrically, represents the change in the linearization (tangent line), while represents the actual change in the function.
- for small .
Linear Approximation
Linear Approximation
Approximating a function using the tangent line.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Linear approximation function | - | |
| Point of tangency | - | |
| Point near a | - | |
| Differential of x (small change) | - | |
| Derivative at tangency point | - |
Interactive Simulation
Use the simulation below to explore linear approximations.
Linear Approximation:
Observation: The green dot is the base point . The closer is to , the closer the linear approximation (red line) is to the actual function (blue line).
Taylor and Maclaurin Polynomials
Taylor Polynomial
A Taylor polynomial is an approximation of a function using a sum of terms calculated from the values of the function's derivatives at a single central point. It provides a means to compute non-algebraic functions like sine, cosine, and exponential functions numerically.
Taylor Polynomial Applications
In structural engineering, Taylor series approximations are fundamental in finite element analysis (FEA) and solving complex differential equations for non-linear material behavior (e.g., buckling or large-deflection beam analysis) where exact solutions do not exist.
Taylor Polynomial Formula
n-th order Taylor polynomial.
Variables
| Symbol | Description | Unit |
|---|---|---|
| n-th order polynomial approximation | - | |
| Center point of the polynomial | - | |
| Factorial of n | - | |
| Function being evaluated | - | |
| Derivative of the function | - |
How Taylor degree changes local approximation
Maclaurin Polynomial
A Maclaurin polynomial is simply a Taylor polynomial centered precisely at . This greatly simplifies the terms to powers of :
Error Propagation
Types of Error
- Absolute Error: The maximum possible error in the actual value.
- Relative Error: The ratio of the error to the measured size. . A relative error of 0.05 means the error is th of the total value.
- Percentage Error: The relative error expressed as a percentage. Relative Error
Power laws amplify relative input error
Newton's Method (Newton-Raphson)
Newton's Method
Newton's Method (or the Newton-Raphson method) is an iterative numerical algorithm used to find successively better approximations to the roots (or zeroes) of a real-valued function.
Newton's Method Formula
Iterative root-finding formula.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Current approximation | - | |
| Next approximation | - | |
| Derivative evaluated at current approximation | - |
Newton's Method: Residual-Checked Root Search
Validate the initial estimate, guard function and derivative failures, update by the tangent intercept, and accept only when the residual is within tolerance.
Choose a positive residual tolerance τ_f and a positive integer N, the maximum number of Newton updates. Select a finite initial estimate x₀ in the domain of f and, when multiple roots are possible, identify the root sought. After each iterate, acceptance requires |f(xₙ)| ≤ τ_f; a small update |xₙ₊₁ − xₙ| alone is not evidence of a root. Stop and report a failure if a function value or derivative is undefined or non-finite, if f′(xₙ)=0, if an update is non-finite or outside the domain, or if N updates are reached while the residual still exceeds τ_f. A very small but nonzero derivative can produce a large update. Newton's method may converge to another root, diverge, cycle, or otherwise fail; a new initial estimate or a method better suited to the function may be needed. Passing the residual test establishes only the requested numerical tolerance for this function and scaling, not global convergence or exactness.
Start → Set residual tolerance τ_f > 0 and update cap N ≥ 1; Set residual tolerance τ_f > 0 and update cap N ≥ 1 → Choose candidate x₀ in f's domain, near the desired root; Choose candidate x₀ in f's domain, near the desired root → Is x₀ finite and in the domain of f?; Is x₀ finite and in the domain of f? — Yes → Set n = 0; Is x₀ finite and in the domain of f? — No → Revise x₀; select a valid estimate; Revise x₀; select a valid estimate → Choose candidate x₀ in f's domain, near the desired root; Set n = 0 → Evaluate f(xₙ); Evaluate f(xₙ) → Is f(xₙ) defined and finite?; Is f(xₙ) defined and finite? — Yes → Does |f(xₙ)| ≤ τ_f?; Is f(xₙ) defined and finite? — No → Stop: invalid function value; report failure; Does |f(xₙ)| ≤ τ_f? — Yes → Accept xₙ as approximate root; Does |f(xₙ)| ≤ τ_f? — No → Are fewer than N updates used?; Are fewer than N updates used? — Yes → Evaluate f′(xₙ); Are fewer than N updates used? — No → Stop: iteration limit reached; report nonconvergence; Evaluate f′(xₙ) → Is f′(xₙ) defined, finite, and nonzero?; Is f′(xₙ) defined, finite, and nonzero? — Yes → Set xₙ₊₁ = xₙ − f(xₙ)/f′(xₙ); Is f′(xₙ) defined, finite, and nonzero? — No → Stop: derivative failure; choose a new start or method; Set xₙ₊₁ = xₙ − f(xₙ)/f′(xₙ) → Is xₙ₊₁ finite and in f's domain?; Is xₙ₊₁ finite and in f's domain? — Yes → Set n ← n + 1; Is xₙ₊₁ finite and in f's domain? — No → Stop: invalid iterate; revise start or use another method; Set n ← n + 1 → Evaluate f(xₙ)
- Start: terminator
- Set residual tolerance τ_f > 0 and update cap N ≥ 1: process
- Choose candidate x₀ in f's domain, near the desired root: process
- Is x₀ finite and in the domain of f?: decision
- Revise x₀; select a valid estimate: process
- Set n = 0: process
- Evaluate f(xₙ): process
- Is f(xₙ) defined and finite?: decision
- Stop: invalid function value; report failure: terminator
- Does |f(xₙ)| ≤ τ_f?: decision
- Accept xₙ as approximate root: terminator
- Are fewer than N updates used?: decision
- Stop: iteration limit reached; report nonconvergence: terminator
- Evaluate f′(xₙ): process
- Is f′(xₙ) defined, finite, and nonzero?: decision
- Stop: derivative failure; choose a new start or method: terminator
- Set xₙ₊₁ = xₙ − f(xₙ)/f′(xₙ): process
- Is xₙ₊₁ finite and in f's domain?: decision
- Stop: invalid iterate; revise start or use another method: terminator
- Set n ← n + 1: process
Newton's Method Can Fail
Newton's method is local and is not guaranteed to converge: an iteration can encounter an undefined, non-finite, or zero derivative, leave the function's domain, diverge, cycle, or approach a different root than intended. If a derivative or numerical failure occurs, or the iteration limit is reached before the residual passes, report that outcome instead of claiming a root. A new initial estimate or a method better suited to the function may be needed.
Interactive Simulation
Use the simulation below to explore how Newton's Method converges to a root step-by-step.
Newton's Method Interactive Visualization
Finding the positive root of f(x) = x² - 4 (The root is at x=2).
Iteration Progress
Engineering Applications
In civil engineering and manufacturing, differentials are crucial for estimating error tolerances. For example, when measuring the radius of a cylindrical column to calculate its volume, a small measurement error propagates into the final volume calculation. Using the differential allows engineers to quickly estimate the maximum allowable error in measurement before it compromises the structural design's safety margin.
- Differentials () approximate the actual change () for small changes in .
- Linearization uses the tangent line to approximate function values near a known point.
- Taylor and Maclaurin Polynomials extend linearization to higher degrees, creating highly accurate approximations of complex functions by matching their higher-order derivatives.
- Error Analysis uses differentials to estimate how sensitive a calculated value is to measurement errors.
- Power Rule for Errors: If , the relative error in is approximately times the relative error in .
- Newton's Method uses tangent intercepts to generate root estimates; accept an estimate only after its residual meets the chosen tolerance, and report derivative failure or nonconvergence honestly.