Plate8
Unit 1 · Topic 8 of 11
Chain rule
Medium, 6 min, 6 steps
Step 1 of 6 Gears
Three meshing gears
Gear x turns u, and gear u turns y. u is a function of x, and y is a function of u.
def g(x):return 2.0 * xdef f(u):return 1.5 * ux, h = 1.0, 1e-6u = g(x)du_dx = (g(x + h) - u) / hdy_du = (f(u + h) - f(u)) / hprint(du_dx, dy_du, du_dx * dy_du)
- a
- 2
- b
- 1.50
- ab
- 3