Calculus I · Linear approximation and optimization
Review the chain and quotient rules; the sign-chart primer below supplies the remaining preparation. Use derivatives to estimate small changes, graph the trend of a function, and locate its best feasible value.
From tangent estimates to extrema
If f is differentiable at a, then L(a+h) = f(a) + f′(a)h. By the derivative definition, the error divided by h tends to zero as h tends to zero. A continuous function on a closed bounded interval attains both extrema. Compare endpoint values with interior critical points where f′ is zero or undefined. On an unbounded domain also examine limiting behavior.
Before the examples · Read a derivative sign chart
A derivative sign chart splits a function’s domain at critical points and excluded inputs. On each interval, determine the sign of f′ algebraically, or use a test value when continuity of f′ ensures its sign cannot change without a zero. A positive derivative means the function increases there; a negative derivative means it decreases. A change from + to − gives a local maximum, and − to + a local minimum, provided the function is continuous at that point. A zero derivative alone does not establish an extremum: x³ has derivative 3x²≥0 on both sides of zero. For an absolute optimum on a closed interval, compare endpoints as well.
Example: f(x)=−(x−2)² has f′(x)=−2(x−2). For x<2 the derivative is positive; for x>2 it is negative. The function rises then falls, so x=2 gives a local maximum f(2)=0. The power example below uses the same sign-change reasoning.
- 0 < R < 4 Ω: P′ > 0, power rises ↗
- R = 4 Ω: P′ = 0, peak power 9 W
- R > 4 Ω: P′ < 0, power falls ↘
Worked examples
- For a fixed 3 Ω resistor, P(V) = V²/3. At 6 V, P = 12 W and P′ = 4 W/V. At 6.3 V the tangent estimates 13.2 W. The exact result is 13.23 W. Expansion gives an error h²/3 W for a change h in volts.
- An ideal 12 V source has a 4 Ω series resistance and load R ≥ 0. The current is 12/(R+4) A, so load power is P(R) = 144R/(R+4)² W. The quotient rule gives P′(R) = 144(4−R)/(R+4)³. The sign chart shows a global maximum at R = 4 Ω, with P = 9 W. At R = 0 the power is zero, and at large R it tends to zero.
Common mistakes
A tangent estimate is local. Always check the size of the change. In optimization, a stationary point can be a minimum or neither. If the feasible range excludes it, look for an endpoint optimum or a limiting value.
Practice
- Estimate the power at 5.7 V in the 3 Ω resistor using the tangent at 6 V.
- If only loads from 1 to 3 Ω are allowed, maximize the power in the second example.
Worked solutions
- Use h = −0.3 V. The estimate is 12 + 4(−0.3) = 10.8 W. The exact power is 5.7²/3 = 10.83 W.
- The derivative is positive throughout the interval. The maximum occurs at 3 Ω and is 432/49 W, about 8.82 W.
Assessment · Open book · 16 points
Open book: use books, lesson notes, cited readings, calculators, and relevant free software. Explain your own reasoning, assumptions, units, and checks; identify references or software you use. Attempt the questions before opening the answer key. Suggested study time: 40–60 minutes; this is a self-study guide, not a timed restriction.
- Linearize V²/3 about 3 V and estimate power at 3.2 V. Find the error. (5)
- For the 12 V source, find the maximizing load on [5, 8] Ω and justify it. (5)
Application and reasoning · 6 points
For P(V)=V²/2 W, use a tangent at V=4 V to predict P(4+h) (2). Derive the exact approximation error and decide overestimate or underestimate (2). Find all h guaranteeing absolute error at most 0.02 W; distinguish this bound from an unsupported claim that linearization is globally exact (2).
Complete answer key and scoring rubric
- P(3) = 3 W and P′(3) = 2 W/V (2). The estimate is 3.4 W (2), and the error is 0.04/3 W (1).
- P′ is negative for every R in the interval (2), so the maximum is at 5 Ω (2), giving 720/81 W (1).
Application and reasoning · 6 points
P(4)=8 and P′(4)=4, so L=8+4h (1 each). P(4+h)=8+4h+h²/2, so actual minus estimate is h²/2≥0: underestimate (1 each). h²/2≤0.02 gives |h|≤0.2 V (1); equality with the true quadratic occurs only at h=0, not throughout that interval (1).
Scoring: existing questions 10 + application problem 6 = 16 points. Award the stated method and reasoning marks, not only final answers.
Download the lab
Install Python 3 for free on Windows, macOS, or Linux. In a terminal, change to the downloaded file’s folder and run the commands below. On Windows, use py -3 if python3 is unavailable. The file uses only the standard library and runs offline. The two numbers are the initial voltage and the change. Compare the errors with the browser lab.
python3 ee-linear-optimization.py 6 0.30
python3 ee-linear-optimization.py 6 0.15
python3 ee-linear-optimization.py 6 -0.30
Free readings and software
- OpenStax Calculus §4.2 · Linear approximations
- OpenStax Calculus §4.7 · Applied optimization
- OpenStax Physics §9.5 · Electrical power
- Python Software Foundation · Python 3
Power lab · Measure linearization error
Compare exact and linearized power in a fixed 3 Ω resistor.
Free tool built into this page. Use it in your browser without an account or download.
Procedure
Set the reference voltage to 6 V. Predict the error for changes of 0.30, 0.15, and −0.30 V. Run each case. Explain what happens when the change halves or reverses sign.
Expected results and answer check
Errors are 0.03, 0.0075, and 0.03 W. Expansion gives exact minus estimate = h²/3 W for h measured in volts. Halving the change quarters the error. Reversing the change leaves the error unchanged.
This model assumes fixed resistance and ideal voltage. It does not measure heating or resistance changes in a real component.