When x, y, z are tied by a relation g(x, y, z) = c, one of them is a function of the others, and its partial derivatives come from setting dg = 0 without solving: ∂z/∂x = −g_x/g_z. With related variables, ∂f/∂x is ambiguous until we say what is held fixed: x = u yet ∂f/∂x ≠ ∂f/∂u, so we write (∂f/∂x)_y. For the area of a right triangle, A = ½ab sin θ with a = b cos θ, the rate of change with θ depends on whether a, b or both are held fixed; (∂A/∂θ)_a = ½ab sec θ, found by substitution, by differentials or by the chain rule.
In physics, a function often depends on pressure, volume and temperature, which are related by PV=nRT; one could substitute, but it is often more convenient to keep all three (transcript, p. 1; notes, p. 1). In general, let x, y, z be related by g(x,y,z)=c. Then, in principle, z is a function of x and y, and we can ask for ∂z/∂x and ∂z/∂y, even when the relation cannot be solved (p. 1; notes, p. 1).
Example. The lecture's relation is x2+yz+z3=8, near (2,3,1) (indeed 4+3+1=8). Solving the cubic for z would be painful. Instead, take the differential: since g=8 is constant, dg=0 (p. 1; notes, p. 1):
Differential of the constraint
2xdx+zdy+(y+3z2)dz=0⟹4dx+dy+6dz=0 at (2,3,1)
In words
2 x d x plus z d y plus the quantity y plus 3 z squared, d z equals 0 which gives 4 d x plus d y plus 6 d z equals 0 at (2, 3, 1)
This relates the changes of all three variables near the point. Solving for dz (p. 1; notes, p. 1):
Two partial derivatives
dz=−61(4dx+dy),∂x∂z=−64=−32,∂y∂z=−61
In words
d z equals minus one sixth the quantity 4 d x plus d y, partial z over partial x equals minus four sixths equals minus two thirds, partial z over partial y equals minus one sixth
The coefficients of dx and dy are the partials. Equivalently, ∂z/∂x keeps y constant, so set dy=0; ∂z/∂y keeps x constant, so set dx=0 (p. 1). In general, from gxdx+gydy+gzdz=0 with dy=0 (p. 1; notes, p. 1):
The general formula
∂x∂z=−gzgx
In words
partial z over partial x equals minus g sub x over g sub z
A warning example (transcript, p. 2; notes, p. 1). Let f(x,y)=x+y, so ∂f/∂x=1. Change variables: x=u, y=u+v. Then f=2u+v and ∂f/∂u=2. So x=u, but ∂f/∂x=∂f/∂u (p. 2).
The reason: ∂f/∂x changes xkeeping y fixed, while ∂f/∂u changes u (the same thing) keeping v fixed, that is keeping y−x fixed, so that y changes too (p. 2; notes, p. 1). The usual notation does not say what is held fixed. When there is any risk of confusion, we say it with a subscript, a notation Auroux blames on physicists and chemists (p. 2):
Saying what is held fixed
(∂x∂f)y=1,(∂u∂f)v=(∂x∂f)v=2
In words
( partial f over partial x ) sub y equals 1, ( partial f over partial u ) sub v equals ( partial f over partial x ) sub v equals 2
The subscript now names the variable held constant, not one being differentiated, a clash with the earlier notationfx (p. 2). Without a subscript, ∂/∂x still means the other natural variable (y) is fixed; the example of the last section was (∂z/∂x)y (notes, p. 1).
The lecture's example is geometric (transcript, p. 2; notes, p. 1). A triangle with two sides a and b at an angle θ has area A=21absinθ. Suppose it is a right triangle with hypotenuse b, so the constraint is a=bcosθ. (The transcript first misstates it as b=sinθ, p. 2, before using a=bcosθ on p. 3.) How does A change with θ? Three answers make sense (pp. 2–3; notes, p. 1):
(∂θ∂A)a,b: ignore the constraint and treat a, b, θ as independent. The triangle stops being a right triangle. This is the old partial derivative, 21abcosθ (p. 2).
(∂θ∂A)a: keep a fixed and the right angle; b changes as it must.
(∂θ∂A)b: keep b fixed and the right angle; a changes as it must.
(Keeping the third side fixed would be yet another choice. Of the three variables, two are independent, and we must say which, p. 3.)
That only works when the constraint can be solved, which in general it cannot; there are two systematic methods (p. 3).
Method 1: differentials.a is fixed, so da=0. Differentiating the constrainta=bcosθ: da=cosθdb−bsinθdθ=0, so db=btanθdθ (p. 3; notes, p. 1). Then, from dA=21bsinθda+21asinθdb+21abcosθdθ with da=0 (pp. 3–4; notes, pp. 1–2):
d capital A equals the quantity one half a sine theta times b tan theta plus one half a b cos theta, d theta, ( partial capital A over partial theta ) sub a equals one half a b the quantity sine squared theta over the quantity cos theta, plus cos theta, equals one half a b secant theta
In short: write dA; set the differential of the fixed variable to 0; eliminate the unwanted one (db) using the differentiated constraint; read off the coefficient of dθ (p. 4). With b=asecθ, this agrees with method 0.
( partial capital A over partial theta ) sub a equals capital A sub theta ( partial theta over partial theta ) sub a plus capital A sub a ( partial a over partial theta ) sub a plus capital A sub b ( partial b over partial theta ) sub a equals capital A sub theta plus capital A sub b ( partial b over partial theta ) sub a
since θ changes at rate 1 with itself and a does not change. The rate (∂b/∂θ)a=btanθ comes from the constraint, as before, and the result is the same: the two methods compute the same quantities, written differently (p. 4; notes, p. 2).
Worked example
A constrained partial, and three rates for one triangle
(a) On the sphere x2+y2+z2=9, near (1,2,2), find (∂z/∂x)y and check by solving for z. Then find (∂f/∂x)y for f=x+y+z. (b) For the right triangle with a=3 and θ=π/4, find all three rates of change of A with θ.
(a) Differentials
2xdx+2ydy+2zdz=0 gives 2dx+4dy+4dz=0 at the point. With dy=0: (∂z/∂x)y=−2/4=−1/2. Check: z=9−x2−y2 has ∂z/∂x=−x/z=−1/2. Then (∂f/∂x)y=1+(∂z/∂x)y=1/2, while treating z as independent would give 1.
(b) The three rates
Here b=asecθ=32≈4.24. With a and b independent: 21abcosθ=21⋅3⋅32⋅22=4.5. With a fixed: 21a2sec2θ=21⋅9⋅2=9.
(b) Holding the hypotenuse fixed
With b fixed, a=bcosθ, so A=21b2sinθcosθ=41b2sin2θ and (∂A/∂θ)b=21b2cos2θ=0 at θ=π/4: for a given hypotenuse, the 45° right triangle has the largest area. Three different answers, 4.5, 9 and 0, to "how does the area change with θ".
A method for finding the largest or smallest value of a function when its variables must satisfy a constraint. Explained in A ring on a string, and Newton's method.
A tiny change in a variable, such as dx, or the matching change in a function along its tangent line, dy = f′(x) dx. Explained in Differentials and antiderivatives.
A condition that limits what is allowed, such as a rope of fixed length that links the motions of the bodies it joins. Explained in Tension in ropes and the spring force.
How fast one quantity changes compared with another, often time: the change in the first divided by the change in the second. Explained in Rates of change and area under a graph.
The study of heat, work, temperature and energy in large systems, through general laws that do not depend on what the system is made of. Explained in Thermodynamic variables, temperature and work.
A quantity, measured in joules, that a body or field has because of its motion, position or state; a closed system keeps its total. Explained in Conservation of energy.
The energy stored in each cubic metre of space, for example in an electric or magnetic field, or in radiation. Explained in Conductors, capacitors and stored energy.
A measure of how many microscopic arrangements of a system match its large-scale state; it never decreases in an isolated system. Explained in Entropy and the second law.
Energy that passes between bodies because their temperatures differ, rather than by one doing mechanical work on the other. Explained in Temperature and thermal energy.
To take a value directly from a graph, table or formula, without further calculation.
Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).