Differential Calculus II: Taylor Series, Extrema & Jacobians
Differential Calculus II
Master Taylor and Maclaurin expansions, maxima and minima of multivariable functions, Lagrange multipliers, Jacobians, and error approximation with complete formulas.
Unit 3 — Differential Calculus II (8 Hours)
This unit develops advanced calculus techniques for approximating functions and finding extrema of multivariable functions, essential for numerical methods, optimization, and engineering design.
1. What Is Taylor's Theorem?
Taylor's theorem provides a polynomial approximation of a function near a specific point using its derivatives.
Why It Matters
Approximates complex functions with polynomials for computation
Foundation of finite difference methods in numerical analysis
Error estimation in numerical algorithms
Physics: small oscillation approximations
2. Taylor Expansion of Functions of One Variable
2.1 Taylor's Theorem with Lagrange Remainder
If f(x) has continuous derivatives up to order (n+1) in an interval containing a, then for any x in that interval:
f(x)=f(a)+
where the Lagrange form of remainder is:
Rn+1=(n+
2.2 Taylor's Theorem with Cauchy Remainder
Rn+1=
2.3 Taylor Series (Infinite Form)
If f is infinitely differentiable and Rn→0 as n→∞:
f(x)=n=0∑∞
2.4 Taylor Expansion of Functions of Two Variables
If f(x,y) has continuous partial derivatives up to order n near (a,b):
f(x,
In operator notation where h=x−a, k=y−b:
f(a+h,b+k)
Expanded to second order:
f(x,y)≈f
3. Maclaurin's Theorem
3.1 Definition
Maclaurin's theorem is Taylor's theorem expanded about a=0:
f(x)=f(0)
3.2 Maclaurin Series (Standard Expansions)
Function
Maclaurin Series
Valid For
ex
3.3 Applications in Approximation
For small x (truncating after a few terms):
ex≈1+x+2x2sinx≈x−6x3cosx≈1−2x2ln(1+x)≈x−2x2
4. Maxima and Minima of Functions of Several Variables
4.1 Critical Points (Stationary Points)
For z=f(x,y), critical points occur where:
∂x∂f=0and∂y
Simultaneously solving fx=0 and fy=0 gives critical points .
4.2 First Derivative Test
At a critical point (a,b):
If f changes from increasing to decreasing in all directions: local maximum
If f changes from decreasing to increasing in all directions: local minimum
4.3 Second Derivative Test (Hessian Criterion)
Define the Hessian determinant at (a,b):
H=
Condition
Result
H>0 and fxx<0
Local maximum
and
4.4 Saddle Points
A saddle point is a critical point that is neither a local maximum nor a local minimum. The function increases in some directions and decreases in others.
Example: f(x,y)=x2−y2 has a saddle point at (.
4.5 Working Procedure for Two Variables
Find fx and fy
Solve f, simultaneously for critical points
4.6 Extension to Three Variables
For u=f(x,y,z), critical points satisfy:
fx=0,fy=0,
The nature is determined by the Hessian matrix:
H=
If all leading principal minors are positive: local minimum
If leading principal minors alternate in sign starting with negative: local maximum
5. Lagrange's Method of Multipliers
5.1 Constrained Optimization
Find extrema of f(x,y,z) subject to constraint g(x,y,z)=0.
5.2 Formation of Lagrange Multiplier Equations
Construct the Lagrangian function:
L(x,y,z,λ)=f(x,y,z)−λg
The necessary conditions for an extremum are:
∂x∂L=0,
Which give:
fx=λgx,
5.3 Multiple Constraints
For f(x,y,z) subject to g1=0 and :
L=f−λ1g1−λ
Conditions:
∂x∂L=0,
5.4 Engineering Applications
Design Optimization: Minimize cost subject to performance constraints
Thermodynamics: Maximize entropy subject to energy conservation
Structural Design: Minimize weight subject to stress limits
Economics: Maximize utility subject to budget constraints
Machine Learning: Regularization as constrained optimization
6. Jacobians
6.1 Definition
For a transformation from (u,v) to (x,y) where x=x(u,v) and , the is:
J=∂(u
For three variables:
6.2 Properties of Jacobians
Chain Rule:
∂(u,v)∂(x,y)⋅
Inverse Property:
∂(x,y)∂(u,v)=
Functional Dependence:
If u and v are functionally dependent (i.e., F(u,v)=0), then:
∂(x,y)∂(u,v)=0
6.3 Change of Variables Using Jacobians
When transforming a double integral:
∬Rf(x,
The absolute value of the Jacobian serves as the scaling factor for area/volume elements.
Polar Coordinates:x=rcosθ, y=rsinθ
∂(r,θ)∂(x,
So dxdy=rdrdθ.
Cylindrical Coordinates:x=rcosθ, y=rsinθ, z=z
∂(r,θ,z)∂(x,y,z)=
Spherical Coordinates:x=ρsinϕcosθ, y=ρsinϕsinθ,
∂(ρ,ϕ,θ)∂(x,y,z)=
7. Approximation of Errors
7.1 Absolute Error
If u=f(x,y) and Δx, Δy are small errors in x and :
Δu≈∂x∂uΔx+
The absolute error in u is approximately:
∣Δu∣≈∂
7.2 Relative Error
uΔu≈u
7.3 Percentage Error
Percentage Error=uΔu×100%
7.4 Error Propagation Using Differentiation
For a function of n variables u=f(x1,x2,:
Δu≈i=1∑n∂x
Maximum possible absolute error:
∣Δu∣max=i=1∑
7.5 Special Cases
Product: If u=xy:
uΔu≈xΔx+
Quotient: If u=yx:
uΔu≈xΔx−
Power: If u=xn:
uΔu≈nxΔx
8. Engineering Applications
Domain
Application
Numerical Analysis
Taylor series forms basis of finite difference methods
Optimization
Lagrange multipliers for constrained design problems
Signal Processing
Maclaurin approximations for filter design
CAD/CAM
Surface approximation using Taylor expansions
Measurement
Error propagation in experimental data
Thermodynamics
Jacobians in thermodynamic potential transformations
Robotics
Jacobian matrix relates joint velocities to end-effector velocity
Statistics
Error propagation in regression models
9. Common Mistakes to Avoid
Mistake
Correction
Forgetting the remainder term in Taylor expansion
Always specify Rn for exact equality
Confusing Taylor and Maclaurin
Maclaurin is Taylor at a=0
Using alone to claim minimum
10. Best Practices & Architecture
Always verify remainder convergence when using infinite Taylor series
Check all critical points — extrema can occur at boundaries too
Use Lagrange multipliers when constraints are equations; use substitution for simple cases
Compute Jacobians symbolically first before numerical evaluation
Propagate errors conservatively using maximum absolute error for safety-critical designs
Validate approximations by comparing with exact values at sample points
11. Practice Problems
Problem 1: Expand f(x)=ln(1+x) in Taylor series about x=0 up to the x term and estimate .
Problem 2: Find the Taylor expansion of f(x,y)=ex+y about (0,0) up to second-order terms.
Problem 3: Find and classify the critical points of f(x,y)=x3+y3−3xy.
Problem 4: Find the dimensions of a rectangular box with volume V=1000 cm³ that minimize the surface area using Lagrange multipliers.
Problem 5: If x=u+v and y=uv, find .
Problem 6: The period of a simple pendulum is T=2πgL. If is measured with error and with error, find the maximum percentage error in .
Problem 7: Find the Maclaurin series expansion of tanx up to the x5 term.
12. Mini Project
Title: Constrained Optimization of a Heat Exchanger Design
Objective: Use Lagrange multipliers and error analysis to optimize the dimensions of a shell-and-tube heat exchanger.
Given:
Heat duty Q=UAΔTlm must be satisfied
Total cost C=αA where is heat transfer area and is shell volume
Tasks:
Formulate the optimization problem with the heat duty as constraint
Set up Lagrangian equations for variables D, L, N
Solve for optimal dimensions
Perform error analysis: if U has ±5% uncertainty, compute propagated error in required
Deliverable: A computational report with symbolic derivations, numerical solution, sensitivity analysis, and validation that the critical point is indeed a minimum using the Hessian criterion.