This is a beta course, so its structure, chapters, and examples may continue to change.
Computing Partial Derivatives and Differentiating Composite Functions
The Basic Computation of Partial Derivatives
When computing a partial derivative, treat the other independent variables as constants and apply the rules of differentiation of a function of one variable. The basic differentiation formulas are exactly the same as for a function of one variable.
Mathematical formula
A formula is a symbolic expression of quantitative relations and structural patterns, and an essential tool for solving mathematical problems. Key formulas should be mastered and applied flexibly.
Case 1: The intermediate variables are functions of one variable
Theorem
A theorem is a proposition that has been rigorously proved, and it is the foundation of mathematical reasoning. A theorem usually states its conditions and its conclusion, and is an important part of any mathematical system.
Theorem1
Let z=f(u,v), u=u(t) and v=v(t). Then the derivative (the total derivative) of the composite function z=f(u(t),v(t)) with respect to t is:
dtdz=∂u∂z⋅dtdu+∂v∂z⋅dtdv
Case 2: The intermediate variables are functions of two variables
Theorem
A theorem is a proposition that has been rigorously proved, and it is the foundation of mathematical reasoning. A theorem usually states its conditions and its conclusion, and is an important part of any mathematical system.
Theorem2
Let z=f(u,v), u=u(x,y) and v=v(x,y). Then the partial derivatives of the composite function z=f(u(x,y),v(x,y)) are:
∂x∂z=∂u∂z⋅∂x∂u+∂v∂z⋅∂x∂v
∂y∂z=∂u∂z⋅∂y∂u+∂v∂z⋅∂y∂v
A Mnemonic for the Chain Rule
“Multiply along each path, and add across the paths.” On each path from the dependent variable to an independent variable the partial derivatives are multiplied, and the results from the different paths are added.
The diagram of the variable relationships: z→u→x, z→u→y, z→v→x, z→v→y.
Case 3: Special cases
One intermediate variable: for z=f(u,x,y) and u=u(x,y),
∂x∂z=∂u∂f∂x∂u+∂x∂f,∂y∂z=∂u∂f∂y∂u+∂y∂f
Note that ∂x∂f is the partial derivative of f with respect to x with u held constant, and is different from ∂x∂z.
The total derivative generalised: for z=f(u,v,w) and u=u(t),v=v(t),w=w(t),
dtdz=∂u∂zdtdu+∂v∂zdtdv+∂w∂zdtdw
Implicit Differentiation
The case of one equation
Theorem
A theorem is a proposition that has been rigorously proved, and it is the foundation of mathematical reasoning. A theorem usually states its conditions and its conclusion, and is an important part of any mathematical system.
Theorem3
Suppose the function F(x,y,z)=0 determines an implicit function z=z(x,y) and Fz=0. Then
∂x∂z=−FzFx,∂y∂z=−FzFy
Similarly, when F(x,y)=0 determines y=y(x), dxdy=−FyFx (with Fy=0).
How It Is Derived
Differentiate the equation F(x,y,z(x,y))=0 with respect to x on both sides:
Fx+Fz⋅∂x∂z=0⇒∂x∂z=−FzFx
Worked Examples
Example 1: Differentiating a Composite Function
Let z=eusinv, u=xy and v=x+y. Find ∂x∂z and ∂y∂z.
a composite functionthe chain rulepartial derivatives
Approach:
The intermediate variables u and v both depend on x and y, so when applying the chain rule you have to compute both branches and add them.
Steps:
∂u∂z=eusinv and ∂v∂z=eucosv
∂x∂u=y, ∂y∂u=x, ∂x∂v=1 and ∂y∂v=1
∂x∂z=eusinv⋅y+eucosv⋅1=exy[ysin(x+y)+cos(x+y)]
∂y∂z=eusinv⋅x+eucosv⋅1=exy[xsin(x+y)+cos(x+y)]
Answer: ∂x∂z=exy[ysin(x+y)+cos(x+y)] and ∂y∂z=exy[xsin(x+y)+cos(x+y)]
Example 2: The Total Derivative
Let z=arctan(xy) and y=ex. Find dxdz.
the total derivativea composite functionthe chain rule
Approach:
y depends on x and z depends on y, so this is the chained case of the chain rule.