P01.08 · Lesson 08 of 18
Multivariable Functions & Partial Derivatives
Hold everything else still, nudge one thing, and watch. Then add the nudges.
Build it Sensitivity of lift to α and V
- Learning outcomes
- Derive the partial derivatives of the lift of a finite wing with respect to angle of attack and airspeed, the total differential, the implicit derivative along a level curve and the chain-rule time derivative along a manoeuvre, and bound the error of the tangent-plane approximation.
- Implement and test a lift-sensitivity module whose partials are computed three ways (analytic, central differences, SymPy) and agree.
- Measure, by computational experiment, how the finite-difference error depends on the step and why one of the two partials shows no truncation error at all.
- Decide, for a given gust, whether the linear sensitivity estimate is good enough or the full function must be evaluated.
- Prerequisites
P01.01–P01.02(derivatives, linear approximation),P01.05(Taylor remainder),P00.09(SymPydiff,lambdify),P00.03(broadcasting). Skill check: you can differentiate with respect to treating as a constant, and you know that a central difference has error .- Engineering question
By how much does the lift of a light-aircraft wing change when a gust adds 5° of angle of attack or 10 m/s of airspeed, and can a first-order sensitivity estimate be trusted for that, or must the full lift function be evaluated?
Full lesson specification (11 more items)
- Assumptions and limits
Incompressible flow (Mach below about 0.3); fixed wing geometry; lift coefficient depends on angle of attack only, through a lift-curve slope and a cubic roll-off toward stall; density fixed unless stated; quasi-steady (no unsteady aerodynamics). The cubic is a crude stand-in for stall: it has the right qualitative shape (a maximum, then a drop) but no claim to accuracy beyond about 12° for this wing. The model fails past stall, above Mach 0.3, and for a gust that arrives faster than the flow can adjust (a few chord-lengths of travel).
- Analytical work
Partials of ; mixed partials and Clairaut's theorem; total differential and tangent plane with its second-order remainder; implicit differentiation of the level curve ; the chain rule for ; relative (logarithmic) sensitivities; a hand calculation at 4° and 55 m/s.
- Computational deliverable
starter/main.py:lift_coefficient,lift,lift_partials,partial_derivative,mixed_partial,lift_partials_sympy,lift_linearized,relative_sensitivities,level_curve_speed,level_curve_slope,lift_rate,stall_angle,tangent_plane_error_study. Tests prove: and broadcasting; the linear model as the limit with sensitivities exactly 1 and 2; analytic partials equal central differences at second order and SymPy to ; mixed partials agree (Clairaut); the tangent-plane error falls by 4 when the box halves and is exactly along ; the level curve carries constant lift and its implicit slope matches a finite difference; the chain-rule rate matches a finite difference along a manoeuvre and vanishes along the level curve.- Practical activity
computational experiment: step-size study of the finite-difference partials ( from to ) and a map of the tangent-plane error over gusts of and m/s.
- Equipment
None. A computer with the environment from
P00.01.- Safety
None beyond normal computer use.
- Evidence
Completed
main.py, passing tests,lift_sensitivity.png, the hand calculation at the reference point with its comparison to the code, the step-size table with both slopes, and the gust table with a decision on each row.- Assessment
assessments/phase-01/grading-rubric.md; competencies 1–4. Pass: all partials and the implicit derivative derived with the held-fixed variable named at each step; all public tests pass; the hand calculation agrees with the code to four figures; the gust decision is argued from the second-order remainder with a number.- References
@openstax-calculus-volume-3§4.1 "Functions of Several Variables" (required-free); §4.2 "Limits and Continuity" (supplementary-free, skim); §4.3 "Partial Derivatives" (required-free); §4.4 "Tangent Planes and Linear Approximations" (required-free); §4.5 "The Chain Rule" (required-free).- Extensions
★ Add density as a third variable, , with from
P00.03, and compute at 2 km by the chain rule. ★ Replace the cubic by a table interpolated from@ntrs-naca-tr-824-summary-of-airfoil-dataand see what happens to the finite-difference partials at the table's knots.- Time
unmeasured
1. The engineering problem
A four-seat light aircraft of 1540 kg cruises at 55 m/s with its wing at 4° angle of attack, producing 15.1 kN of lift to balance its weight. It flies into a gust. A vertical gust changes the angle of attack; a horizontal gust changes the airspeed; a real gust does both. The structures engineer needs the resulting lift increment to size the wing spar; the flight-dynamics engineer needs it to predict the bump the passengers feel. Both want a sensitivity: how many newtons per degree, how many newtons per metre per second. Both also need to know when that sensitivity is enough and when the gust is large enough that the lift must be recomputed from scratch.
Lift is a function of two variables, , and a sensitivity to one of them while the other is held fixed is a partial derivative. The two partials together give the total differential, which is the linear estimate of the lift change for any small combined gust. The questions this lesson answers are: how to compute partials (three ways, so they can be checked against each other), how to combine them, how big the error of the linear estimate is, and how the same tools give the trim speed at every angle of attack (a level curve of ) and the rate of change of lift during a pull-up (the chain rule).
Success criteria, written before we start: the three ways of computing and agree to relative at the reference point; the error of the linear estimate over a box of gusts falls by a factor of 4 each time the box is halved; the lift along the computed trim curve is constant to ; and the hand calculation agrees with the code to four figures.
2. Understand and derive
2.1 The lift function
Lift on a wing of area in air of density at speed is
with the dimensionless lift coefficient, a property of the wing's shape and orientation. Units: (kg/m³)(m²/s²)(m²) = kg m/s² = N ✓. Assumption 1 (incompressible, quasi-steady): depends on the angle of attack only. Assumption 2 (model for ): below stall a wing's lift coefficient is linear in with lift-curve slope (about per radian for a thin airfoil, reduced to per radian for a finite wing of aspect ratio 7 by the downwash of its own tip vortices; Phase 10 derives both), measured from the zero-lift angle (negative for a cambered wing). Near stall the lift rolls off. We model the whole curve as
whose maximum (stall) is where , at . The numbers for our wing: m², /rad, , /rad³, kg/m³. Then and , a little high in for a real light-aircraft wing (which stalls nearer 16°) but with the right shape; §2.9 says what that costs.
Hand calculation at the reference point , m/s: rad; ; dynamic pressure Pa; N, which is 1541 kg of aircraft. Sanity: a Cessna-class four-seater at 55 m/s (107 kt) and 4° is right.
A function of two variables is a surface over the plane (@openstax-calculus-volume-3 §4.1). The curves of constant on that plane are its level curves; the one through (weight) is the trim curve, every combination of angle of attack and speed at which the wing carries exactly the aircraft. Solving (1) for ,
defined only where , and falling as rises: more angle, less speed. At it bottoms out at the stall speed, m/s for our wing at 15.1 kN.
2.2 Partial derivatives
The partial derivative of with respect to is the ordinary derivative of along a line of constant (@openstax-calculus-volume-3 §4.3):
Everything that does not contain is a constant, so from (1) and (2),
(5) is worth a pause: because , whatever is, so a 1 % increase in speed is always a 2 % increase in lift. The analogous relative sensitivity in is with : exactly 1 for the linear model, less as stall approaches, and zero at , where more angle of attack buys no lift at all.
At the reference point: /rad, so N/rad N/deg, and N/(m/s). Relative sensitivities: 0.946 in (the cubic term is already costing 5 %) and 2.000 in .
2.3 Second partials and Clairaut's theorem
Differentiate again, each way:
The two mixed partials are equal: differentiating (4) in or (5) in gives the same expression. That is Clairaut's theorem, true whenever the second partials are continuous (@openstax-calculus-volume-3 §4.3), and it is a test: compute by finite differences in the two orders and they must agree. At the reference point N/rad², N/(m/s)², N/(rad m/s). The sign of is the lift curve bending over toward stall.
2.4 The total differential and the tangent plane
For a small combined change the first-order estimate adds the two one-variable estimates (@openstax-calculus-volume-3 §4.4):
Geometrically, (7) is the tangent plane to the surface at the reference point, and the surface itself lies off the plane by the second-order remainder (two-variable Taylor's theorem, P01.05 extended):
Halve both s and the remainder drops by 4: that is the convergence test. For a pure speed gust the remainder is exactly , with no , because is a quadratic in ; for a pure gust there is also a cubic term, with .
The gust, by hand. rad at fixed : linear N; second-order correction N; third-order N; total N against the exact N. The linear estimate is 10 % high. m/s at fixed : linear N, remainder N, exact N: the linear estimate is 8 % low. Both together: linear N; the remainder (8) adds N plus the cubic N, giving N against the exact N. The linear estimate is now 18 % low, and the cross term is the biggest correction: lift from extra angle at the higher speed is worth more than either alone. That cross term is exactly what a one-variable analysis cannot see.
2.5 Implicit differentiation: the slope of the trim curve
Along the level curve the two variables are tied together. Differentiate the identity with the chain rule (@openstax-calculus-volume-3 §4.5):
For our wing (m/s)/rad (m/s)/deg: each extra degree of angle of attack lets the aircraft fly 4.3 m/s slower at the same lift. The same number from (3) directly: ✓. Two routes, one number, which is the test. Implicit differentiation is how you get a slope when you cannot, or would rather not, solve for explicitly.
2.6 The chain rule along a manoeuvre
In a pull-up both and change with time. The rate of change of lift is
one term per path by which time reaches . For /s and m/s² at the reference point: N/s, so the load factor rises by per second. Units: (N/rad)(rad/s) + (N/(m/s))(m/s²) = N/s ✓. Along the trim curve, and (10) gives zero by (9): the chain rule and implicit differentiation are the same statement.
2.7 Finite differences in several variables
A partial derivative is a one-variable derivative, so the central difference of P00.09 applies with only one coordinate perturbed:
truncation error , rounding error about . For , N/rad³, so at rad the truncation error is N/rad (relative ), and it falls 100-fold per decade of until rounding takes over near . For the third derivative is zero ( is quadratic in ) and the central difference is exact up to rounding at every : the two columns of the step-size table look completely different, and part 4 asks you to say why before you run it.
2.8 How SymPy does it
sp.diff(L, alpha) treats every other symbol as a constant, which is precisely the definition of a partial derivative; the result is (4) in symbolic form, and substituting numbers gives the same N/rad as the hand formula. The value of the symbolic route is not the number but the structure: sp.simplify(sp.diff(L, V) - 2*L/V) returns 0, proving (5) for every , and sp.simplify(sp.diff(L, alpha, V) - sp.diff(L, V, alpha)) returns 0, proving Clairaut for this without choosing a point.
2.9 Where the model stops being valid
- Stall. The cubic (2) is a caricature. A real has a sharper peak, hysteresis, and depends on Reynolds number. Partials computed past about 12° for this wing are properties of the caricature, not the aircraft.
- Compressibility. Above Mach 0.3 (about 100 m/s at sea level) grows with Mach by roughly , adding a -dependence to that (5) ignores.
- Unsteady flow. A sharp-edged gust takes several chord-lengths of travel (about 0.1 s here) before the lift reaches its new steady value; (7) is the steady increment.
- Density. is the third partial we have frozen; at 2000 m the ISA density is 1.006 kg/m³ and every lift number drops 18 %. The extension adds it.
3. Build the computational model
Open starter/main.py. The wing lives in a frozen Wing dataclass so every function takes the same parameter object; the tests build their own Wing(k3=0.0) to reach the linear model.
Step 1: the function and its analytic partials
def lift_coefficient(alpha, wing=DEFAULT_WING):
d = np.asarray(alpha, dtype=float) - wing.alpha0
return wing.a * d - wing.k3 * d**3 # (2)
def lift(alpha, V, wing=DEFAULT_WING):
V = np.asarray(V, dtype=float)
if np.any(V < 0.0):
raise ValueError("airspeed must be non-negative")
return 0.5 * wing.rho * V**2 * wing.S * lift_coefficient(alpha, wing) # (1)
def lift_partials(alpha, V, wing=DEFAULT_WING):
d = alpha - wing.alpha0
dcl = wing.a - 3.0 * wing.k3 * d**2
return 0.5 * wing.rho * V**2 * wing.S * dcl, wing.rho * V * wing.S * lift_coefficient(alpha, wing) # (4), (5)
alpha[:, None] against V[None, :] broadcasts to a full grid, which is how main() draws the level curves.
Step 2: finite-difference partials of any function
def partial_derivative(f, x, i, h):
e = np.zeros_like(x); e[i] = h # perturb one coordinate only
return float((f(x + e) - f(x - e)) / (2.0 * h)) # (11)
def mixed_partial(f, x, i, j, h):
return partial_derivative(lambda y: partial_derivative(f, y, i, h), x, j, h)
f takes a single array argument, so the same code differentiates , or anything else; the tests use all three.
Step 3: SymPy, linearization, sensitivities
lift_partials_sympy builds from symbols and returns sp.diff(L, alpha), sp.diff(L, V) and the symbol table. lift_linearized is (7) added to at the reference point; relative_sensitivities returns and ; stall_angle is and raises for ; tangent_plane_error_study evaluates over an grid in a box that shrinks with each scale.
Step 4: level curve and chain rule
def level_curve_speed(alpha, L_target, wing=DEFAULT_WING):
cl = lift_coefficient(alpha, wing)
if np.any(cl <= 0.0):
raise ValueError("C_L must be positive on the level curve")
return np.sqrt(2.0 * L_target / (wing.rho * wing.S * cl)) # (3)
def level_curve_slope(alpha, V, wing=DEFAULT_WING):
la, lv = lift_partials(alpha, V, wing)
return -la / lv # (9)
def lift_rate(alpha, V, dalpha_dt, dV_dt, wing=DEFAULT_WING):
la, lv = lift_partials(alpha, V, wing)
return la * dalpha_dt + lv * dV_dt # (10)
Verify
Run python -m pytest curriculum/phase-01/lesson-08-partial-derivatives from the repo root. The tests, in order of how much they would hurt if wrong:
- The function. ; at and at ; a input gives a output; negative speed raises.
- Three partials agree. Analytic against central differences at second order in (rates above 1.9 as halves) and to in at any ; analytic against SymPy to ; SymPy proves and Clairaut symbolically; the finite-difference mixed partials agree in both orders and with (6).
- Linearization. The tangent-plane error over a shrinking box falls by per halving; along the error is exactly .
- Limits. With the relative sensitivities are exactly 1 and 2 and
stall_angleraises; at the -sensitivity is zero andargmaxof on a fine grid lands within 0.02° of it. - Level curve and chain rule. Lift along
level_curve_speedis constant to and the curve descends; the implicit slope matches a central difference of (3) to ;lift_ratematches a finite difference of along a quadratic manoeuvre to and vanishes along the trim curve. - Interface.
main()writes the figure.
Compare
main() prints the three routes side by side:
dL/dalpha = 136521.6 N/rad = 2382.8 N/deg; dL/dV = 549.6 N/(m/s)
central differences h = 1e-02: dL/dalpha err 3.56e+01 N/rad, dL/dV err 2.17e-10 N/(m/s)
central differences h = 1e-03: dL/dalpha err 3.56e-01 N/rad, dL/dV err 1.22e-09 N/(m/s)
central differences h = 1e-04: dL/dalpha err 3.56e-03 N/rad, dL/dV err 1.70e-08 N/(m/s)
sympy: dL/dalpha = 136521.6, dL/dV = 549.6
mixed partials: L_alpha_V = 4964.410, L_V_alpha = 4964.410 N/(rad m/s)
The column falls exactly 100-fold per decade, and N/rad at is the predicted to three figures: the finite-difference error is not noise, it is a number you can compute in advance. The column is rounding only, growing as shrinks, as §2.7 said. SymPy's diff and the hand formula agree to all printed digits because they are the same algebra. The one established library in play is SymPy; there is no NumPy "partial derivative" to call, which is why partial_derivative is yours and why its error must be understood rather than trusted.
4. Experiment at home, or investigate real data
Mode: computational experiment.
Experiment A: step-size study. For (radians for , m/s for ), record partial_derivative(f, x0, 0, h) and partial_derivative(f, x0, 1, h) against the analytic values at the reference point. Prediction, written before running: the error follows N/rad down to a minimum near and then rises as ; the error has no branch and is at the rounding floor () for every above . Plot both on log–log axes, fit the slopes on each side of the minimum, and save as fd_partials_vs_h.png.
Experiment B: map of the tangent-plane error. On a grid , m/s around the reference point, compute and the second-order prediction (8). Prediction: the error is dominated by the cross term, so it is positive when and have the same sign and negative otherwise, and (8) reproduces it to within the cubic term ( N at ). Contour the error and mark the region where % of : that is the region in which the sensitivity estimate is good enough.
Raw data format: two tables, and , kept in your lesson notes.
5. Validate and improve
Hand (§2), code and the independent route side by side at the reference point:
| quantity | hand | code (analytic) | independent check | difference |
|---|---|---|---|---|
| (N) | 15 114 | 15 113.6 | 0 | |
| (N/rad) | 136 522 | 136 521.6 | FD : 136 521.62; SymPy 136 521.6 | |
| (N/(m/s)) | 549.6 | 549.58 | ; FD exact | |
| (N/(rad m/s)) | 4964 | 4964.42 | FD both orders 4964.41 | |
| ((m/s)/rad) | FD of (3): | |||
| gust : (N) | 10 827 (to 3rd order) | 10 826 (exact) | linear 11 914 | linear 10 % high |
| gust m/s: (N) | 5995 (to 2nd order, exact) | 5995 | linear 5496 | linear 8 % low |
| both: (N) | 21 155 (to 3rd order) | 21 116 | linear 17 410 | linear 18 % low |
Every residual has a cause. The on is the truncation at , predicted by §2.7. The on the mixed partial is the same truncation applied twice (the inner difference in at ). The 39 N gap between the third-order hand estimate and the exact combined gust is the fourth-order cross terms, and friends, which (8) drops: is cubic in and quadratic in , so its Taylor series terminates at fifth order and you could, in principle, write the gust response exactly as a polynomial. The 10 %, 8 % and 18 % errors of the linear estimate are the engineering content: for a or m/s gust the linear estimate is within 0.3 %, for a and m/s gust it is wrong by a fifth, and the cross term is the main reason.
What is still unverified when everything agrees: the lift model. The three routes to agree because they differentiate the same (2); a wind-tunnel for this wing at this Reynolds number would differ from the cubic by several percent above 10°, and that uncertainty, not the of the arithmetic, is the precision of any gust load computed here. Phase 10 replaces (2) with a computed lift curve; @ntrs-naca-tr-824-summary-of-airfoil-data has measured ones.
Improvements worth making now: use the second-order estimate (8) rather than (7) for gusts above about 2°, since the Hessian costs three more numbers and removes most of the error; or, simplest of all, evaluate at the gust point directly, which is cheap for a formula but is not an option when "the function" is a two-hour CFD run, which is when sensitivities earn their keep. Improvements worth not making: pushing below to "get more digits"; part 4 shows what happens.
6. Defend your work
Submit: the completed starter/main.py with all tests passing; lift_sensitivity.png and fd_partials_vs_h.png; the hand calculation with its comparison table; the two experiment tables with one paragraph each; and a one-page note (sections 1, 2, 5, 6 and 7 of projects/_template/report-template.md) stating for which gust sizes the linear sensitivity is adequate and why.
Adversarial self-checks
- What if the speed doubles? quadruples, quadruples, doubles, and the relative sensitivities do not change at all. Check with the code; if quadruples you have differentiated as .
- What if ? What if ? At both partials vanish and the level curve (3) runs off to infinite speed as ; at , , the implicit slope (9) is zero (the trim curve is horizontal: stall speed), and the relative -sensitivity is zero.
- Which assumption fails first in the real world? The cubic stall model, as soon as a gust takes past about 12°; then quasi-steadiness for gusts shorter than a tenth of a second; compressibility only above 100 m/s.
- What measurement could falsify the model? A wind-tunnel lift curve: if the measured at 4° is not within a few percent of 4.6 /rad, every sensitivity here is off by the same factor. A flight test with an accelerometer through a known gust gives directly.
- Does the result survive a change in step size? by finite difference must agree to for any between and . If your answer depends on in that range, the function you are differentiating is not smooth (a table with kinks, a clipped ) and no finite-difference partial is meaningful there.
- Which decision changes if the uncertainty doubled? Suppose is known to ±10 % instead of ±5 %. The gust load is then N instead of ±541 N; a spar designed with a 1.5 safety factor on 15.1 kN has 7.5 kN of margin either way, so the structure does not change, but a stall-warning margin set at 2° above the predicted for a given speed now has to be 3°. The decision that moves is the one with the smaller margin.
Check yourself
- Write for and say why it does not depend on the form of .
- What is held fixed when you compute , and what would be different about along the trim curve?
- State Clairaut's theorem for and the condition under which it holds.
- The total differential misses one second-order term that the two single-variable estimates cannot see. Which one?
- Along the level curve , what is in terms of the partials, and what is its sign below stall?
- For a 1 % increase in airspeed, by what percentage does lift change? For a 1 % increase in in the linear model?
- Why does the central difference of show no error while that of does?
- In a pull-up, increases at 2°/s and decreases at 1 m/s². Write with its units and say which term dominates for the lesson's wing.
Problem set
Attempt every problem before opening solutions/. Record what you tried. State units on every numerical answer and name the variable held fixed in every partial derivative you write.
Several problems use your personal seed s: the day of the month you were born (1–31). kg/m³ and m/s² unless stated.
1. (Warm-up: a linear wing)
A wing has m², lift-curve slope per radian, zero-lift angle and no stall roll-off (). It flies at m/s and .
Find: (a) and ; (b) in N/rad and N/deg, and ; (c) the lift increments for alone, for m/s alone, and for both, first from the total differential and then exactly; (d) the percentage error of the total differential in each case. Check (a)–(c) with lift, lift_partials and lift_linearized using Wing(S=..., a=..., k3=0.0). Answer form: numbers with units, four significant figures.
2. (Derivation: the calculus of the lift function)
For with :
(a) Derive , , , , and and confirm the last two are equal. (b) Show that along the level curve , in two ways: by implicit differentiation of , and by differentiating the explicit . (c) Show that for a pure speed change at fixed the tangent-plane error is exactly (no higher-order terms), and that for a pure change it is exactly. (d) Write the second-order two-variable Taylor remainder (8) and use (a) to show that the cross term equals , where is the linear -increment. Interpret the factor .
Answer form: derivations with each held-fixed variable named.
3. (Unfamiliar scenario: airspeed from a Pitot tube, with uncertainty)
An airspeed indicator computes from the measured dynamic pressure and an assumed density . On one flight Pa and kg/m³ (independent, one standard deviation each).
(a) Compute and the partials and with units. (b) Propagate the two uncertainties with the total differential in quadrature: . Which input dominates? (c) Show that the relative sensitivities are and , and redo (b) in percentages. (d) On a hot day at a high airfield the density is 15 % below the assumed value and the pilot flies by indicated airspeed (the the instrument shows for the assumed ). Is the true airspeed higher or lower than indicated, by what percentage, and does the lift at a given indicated airspeed change? (Use .)
Answer form: one speed, two partials, one uncertainty with the dominant term named, two percentages, one short argument.
4. (Numerical, uses your code: the step-size study)
Run Experiment A of lesson part 4 for the reference point (, m/s, default Wing).
(a) Tabulate the errors of partial_derivative in and in for and plot them on log–log axes.
(b) Fit the slope of the error for and for ; compare the large- branch with the predicted using .
(c) Explain the column: why is there no sloped branch on the left, and at what does rounding become visible?
(d) Repeat (a) for the mixed partial with mixed_partial in both orders and report the largest at which they agree to relative.
Answer form: a table, a plot, two slopes, one comparison, two short explanations.
5. (Judgment: where the linear sensitivity stops)
For each situation, say whether the total differential (7) is adequate (error below 2 % of ), and if not what you would use instead; give the number that decides:
(a) a vertical gust at the reference point; (b) a vertical gust with a simultaneous m/s headwind gust; (c) a gust at , close to the model's stall; (d) the same gust during a descent at 95 m/s at sea level (hint: Mach number).
Answer form: four verdicts, each with a number and one sentence.
6. (Hard: lift through altitude, the chain rule with three variables)
Let density depend on altitude through the ISA troposphere, with in metres and kg/m³ (P00.03), so that .
(a) Write and , and evaluate both at m. (b) The aircraft climbs at m/s with and m/s held constant. Compute by the chain rule and check it against a central difference of in . (c) To hold the lift constant during the climb the pilot must raise . Find the required in degrees per second from , and the altitude at which would reach the model's stall angle if stays at 55 m/s. (d) Add the time derivative of as a third term. If the climb also bleeds speed at m/s², which of the two terms dominates , by what factor, and what is now needed to hold the lift? State in one sentence what the chain rule is doing in this problem that a single-variable derivative could not.
Answer form: two expressions with values, one rate with its finite-difference check, two values and one altitude, one factor, one sentence.
Get the code
Clone the repository once, write your code in starter/main.py, then run the tests from the repository root.
pytest curriculum/phase-01/lesson-08-partial-derivatives
To run the same tests against the reference solution instead:
AEFS_IMPL=solution pytest curriculum/phase-01/lesson-08-partial-derivatives
Found a mistake? Every page is built from the Markdown in the repository; edit it on GitHub.