2.2 Calculus: Differential, Integral, and Series Approximations
Key Takeaways
- Critical points occur where f'(x) = 0 or f'(x) is undefined; the second derivative test establishes a local minimum if f''(x*) > 0 and a local maximum if f''(x*) < 0.
- In multivariate unconstrained optimization, a stationary point is classified using the Hessian determinant D = f_xx * f_yy - (f_xy)^2: D > 0 with f_xx > 0 indicates a local minimum, D > 0 with f_xx < 0 indicates a local maximum, and D < 0 indicates a saddle point.
- Integration by parts follows the formula integral(u dv) = u*v - integral(v du), serving as the foundational tool for evaluating expected value integrals and Mean Time To Failure (MTTF) in component reliability models.
- Taylor series expansions approximate nonlinear functions about an operating point x = a via f(x) = sum_{n=0}^infinity [f^(n)(a) / n!] * (x - a)^n, with Maclaurin series representing the special case where a = 0.
- The classical Economic Order Quantity (EOQ) formula Q* = sqrt(2DS/H) is derived directly by setting the first derivative of the annual inventory cost equation to zero and confirming convexity with a positive second derivative.
Calculus is the mathematical foundation of continuous modeling in industrial and systems engineering. From determining the optimal production lot size that minimizes inventory carrying and setup costs, to computing the mean time between failures (MTBF) of automated machinery, mastery of differential, integral, and series calculus is critical for passing the NCEES FE Industrial examination.
1. Differential Calculus: Operational Rules and Partial Derivatives
Fundamental Derivative Rules
The derivative represents the instantaneous rate of change of a physical or economic function, defined formally as:
On the FE exam, efficiency requires instant recall and application of operational rules:
- Product Rule: $\frac{d}{dx}[u \cdot v] = u' v + u v'$
- Quotient Rule: $\frac{d}{dx}\left[\frac{u}{v}\right] = \frac{u' v - u v'}{v^2}$ (mnemonic: "low d-high minus high d-low over the square of what's below")
- Chain Rule: $\frac{d}{dx}[f(g(x))] = f'(g(x)) \cdot g'(x)$
- Exponential Rules:
- Logarithmic Rules:
Partial Derivatives and the Gradient Vector
Industrial systems generally involve multivariable functions, such as production throughput as a function of labor and capital, or total distribution cost as a function of multiple warehouse coordinates. When evaluating the partial derivative $\frac{\partial f}{\partial x}$, all other variables ($y, z, \dots$) are treated strictly as constants.
-
Clairaut's Theorem (Mixed Partials): If $f(x, y)$ and its partial derivatives are continuous on an open region, the mixed second partial derivatives are identical:
-
Gradient Vector ($\nabla f$): The vector of first-order partial derivatives: The gradient vector points in the direction of greatest instantaneous increase of $f$, and its Euclidean magnitude $|\nabla f|$ represents the maximum directional derivative.
2. Univariate and Multivariate Optimization in Engineering Systems
Optimization is central to industrial engineering. We seek input conditions that minimize undesirable outcomes (cost, defect rates, transit delays) or maximize desirable outcomes (profit, throughput, system reliability).
Univariate Optimization
To optimize a single-variable differentiable function $f(x)$ over an open interval:
- Find Critical Points: Solve $f'(x) = 0$ or identify points where $f'(x)$ fails to exist.
- Second Derivative Test:
- If $f''(x^) > 0$: The function is concave upward (convex); $x^$ is a local minimum.
- If $f''(x^) < 0$: The function is concave downward (concave); $x^$ is a local maximum.
- If $f''(x^*) = 0$: The test is inconclusive (the point may be an inflection point, local max, or local min; analyze sign changes in $f'(x)$).
- Global Extrema on a Closed Interval $[a, b]$: Evaluate $f(x)$ at all interior critical points and compare them directly against boundary values $f(a)$ and $f(b)$.
Multivariate Unconstrained Optimization and the Hessian Matrix
For a two-variable function $f(x, y)$:
- Stationary Points: Solve the simultaneous system of first partial derivatives:
- Construct the Hessian Matrix ($H$):
- Compute the Hessian Determinant ($D$):
- Second Partial Derivative Test Classification:
| Condition on $D$ | Condition on $f_{xx}$ | Geometric Classification of Stationary Point $(x^, y^)$ |
|---|---|---|
| $D > 0$ | $f_{xx} > 0$ (or $f_{yy} > 0$) | Local Minimum (cup-shaped, concave upward) |
| $D > 0$ | $f_{xx} < 0$ (or $f_{yy} < 0$) | Local Maximum (dome-shaped, concave downward) |
| $D < 0$ | Any value | Saddle Point (concave up in one direction, down in another) |
| $D = 0$ | Any value | Test Inconclusive (requires higher-order analysis) |
Hessian Determinant: D = f_xx * f_yy - (f_xy)^2
├── D > 0
│ ├── f_xx > 0 ──> Local Minimum (e.g., minimum cost surface)
│ └── f_xx < 0 ──> Local Maximum (e.g., maximum profit surface)
├── D < 0 ──────────> Saddle Point (neither min nor max)
└── D = 0 ──────────> Inconclusive
3. Integral Calculus: Analytical Methods and Physical Applications
Fundamental Theorem of Calculus
If $f(x)$ is continuous on $[a, b]$ and $F'(x) = f(x)$, then:
Integration by Substitution ($u$-Substitution)
Reverses the chain rule by mapping an integrand into a simpler variable form:
Integration by Parts
Reverses the product rule, essential when the integrand contains products of algebraic, exponential, or logarithmic terms:
Selection Strategy (LIATE Rule): Choose $u$ in order of priority: Logarithmic, Inverse trigonometric, Algebraic, Trigonometric, Exponential. The remaining factor becomes $dv$.
Mean Value Theorem for Integrals
The average value of a continuous engineering process variable $f(x)$ over an operational interval $[a, b]$ is:
Applications: Calculating the average power load on a transformer bank over an 8-hour shift, or the time-weighted average work-in-process (WIP) level in an inventory staging buffer.
Continuous Probability and System Reliability
Industrial engineers frequently evaluate continuous random variables governed by a probability density function (PDF) $f(t)$ for $t \ge 0$:
- Total Probability Condition: $\int_{-\infty}^{\infty} f(t) , dt = 1$
- Cumulative Distribution Function (CDF): $F(t) = P(T \le t) = \int_{-\infty}^t f(\tau) , d\tau$
- Reliability Function: $R(t) = P(T > t) = 1 - F(t) = \int_t^{\infty} f(\tau) , d\tau$
- Expected Lifetime (Mean Time To Failure - MTTF):
4. Infinite Series, Taylor Expansions, and Convergence
Taylor and Maclaurin Series
A Taylor series represents an infinitely differentiable function $f(x)$ near a base point $x = a$:
When $a = 0$, the expansion is known specifically as a Maclaurin Series:
Standard Maclaurin Expansions in Engineering
| Function | Maclaurin Series Expansion | Interval of Convergence |
|---|---|---|
| $e^x$ | $1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \dots = \sum_{n=0}^\infty \frac{x^n}{n!}$ | $-\infty < x < \infty$ |
| $\cos(x)$ | $1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \frac{x^6}{6!} + \dots = \sum_{n=0}^\infty \frac{(-1)^n x^{2n}}{(2n)!}$ | $-\infty < x < \infty$ |
| $\sin(x)$ | $x - \frac{x^3}{3!} + \frac{x^5}{5!} - \frac{x^7}{7!} + \dots = \sum_{n=0}^\infty \frac{(-1)^n x^{2n+1}}{(2n+1)!}$ | $-\infty < x < \infty$ |
| $\frac{1}{1 - x}$ | $1 + x + x^2 + x^3 + \dots = \sum_{n=0}^\infty x^n$ | $ |
| $\ln(1 + x)$ | $x - \frac{x^2}{2} + \frac{x^3}{3} - \frac{x^4}{4} + \dots = \sum_{n=1}^\infty \frac{(-1)^{n-1} x^n}{n}$ | $-1 < x \le 1$ |
Convergence Tests
To determine whether an infinite series $\sum a_n$ converges:
- Ratio Test: Compute $L = \lim_{n \to \infty} \left| \frac{a_{n+1}}{a_n} \right|$.
- If $L < 1$: Series converges absolutely.
- If $L > 1$: Series diverges.
- If $L = 1$: Test is inconclusive.
- Geometric Series Test: The series $\sum_{n=0}^{\infty} a r^n$ converges to $S = \frac{a}{1 - r}$ if and only if $|r| < 1$. If $|r| \ge 1$, the series diverges.
5. Step-by-Step Worked Engineering Examples
Worked Example 2.2.1: Mathematical Derivation of the EOQ Lot Size
Problem: In production inventory theory, an industrial facility faces constant annual demand $D = 10{,}000\text{ units/year}$, order/setup cost $S = $7.20\text{ per order}$, and annual unit holding cost $H = $10\text{ per unit/year}$. Total annual cost as a function of order lot size $Q$ is modeled by:
Using calculus, determine the lot size $Q^*$ that minimizes total annual cost, verify that the second derivative confirms a local minimum, and compute the minimum variable cost.
Solution:
- Confirm the coefficients: $DS = (10{,}000)(7.20) = 72{,}000$ and $H/2 = 10/2 = 5$, matching the stated cost function.
- Differentiate $TC(Q)$ with respect to $Q$ and set the derivative to zero: (Cross-check against the closed-form EOQ formula: $Q^ = \sqrt{2DS/H} = \sqrt{2(10{,}000)(7.20)/10} = \sqrt{14{,}400} = 120$ units.)*
- Execute the Second Derivative Test:
- Evaluate at $Q^* = 120$:
- Conclusion: Because the second derivative is strictly positive, the cost curve is convex (concave upward), proving that $Q^* = 120\text{ units}$ represents a strict local and global minimum.
Worked Example 2.2.2: Component MTTF via Integration by Parts
Problem: An industrial robotic arm actuator has a failure probability density function $f(t) = 0.04 t e^{-0.2 t}$ for $t \ge 0$ (operating hours in thousands). Compute the mean time to failure $\text{MTTF} = \int_0^\infty t f(t) dt$.
Solution:
- Set up the expected value integral:
- Recall the general gamma-type integral $\int_0^\infty t^n e^{-k t} dt = \frac{n!}{k^{n+1}}$ for $k > 0$: Here $n = 2$ and $k = 0.2 = 1/5$:
- Multiply by the constant scalar $0.04$:
6. NCEES Reference Handbook Tips & Realistic Exam Traps
- Quotient Rule Sign Error: The most common differentiation mistake on the FE exam is inverting the numerator of the quotient rule: $\frac{u v' - u' v}{v^2}$ instead of the correct $\frac{u' v - u v'}{v^2}$. This flips the sign of the derivative, which falsely converts a calculated minimum into a maximum.
- Saddle Points vs. Inconclusive Tests: If $D = f_{xx} f_{yy} - (f_{xy})^2 < 0$, the stationary point is definitively a saddle point. Do NOT confuse this with $D = 0$ (which is the only condition where the test is inconclusive). A saddle point means the function increases along one path and decreases along another.
- Boundary Points in Optimization: If an exam problem specifies operational constraints—such as machine capacity $0 \le x \le 50$—always verify whether the global optimum lies on the boundary rather than an unconstrained interior critical point.
- Integration by Parts Signs: In $\int u , dv = u v - \int v , du$, when $v$ contains a negative sign (such as $v = -\frac{1}{k} e^{-kt}$), subtracting a negative creates an addition: $u v - \int (-\text{term}) du = u v + \int \text{term} , du$. Missing this double negative is an intentional distractor trap on FE exam questions.
An industrial plant manufactures customized heat exchangers. The annual total cost function in dollars as a function of production lot size Q is given by TC(Q) = 250,000 + 72,000/Q + 5Q. Using differential calculus, which production lot size Q* minimizes total annual cost, and what is the nature of the second derivative at this point?
In reliability engineering, evaluating the mean time to failure (MTTF) for an actuator requires solving the indefinite integral integral(t * e^(-kt) dt) where k > 0. Which expression represents the correct antiderivative using integration by parts?
An industrial engineer models the two-variable operating profit surface f(x, y) of two interdependent product lines. At a calculated stationary point (x*, y*), the second-order partial derivatives are f_xx = -6, f_yy = -4, and f_xy = 3. Based on the Hessian determinant test, what is the geometric classification of this stationary point?