Chain Rule - Intuition
Given 𝒽(𝑥) = 𝑓(𝑔(𝑥)), then
Indent
Example
Suppose we want to compute the derivative of a composite function 𝒽(𝑥)
𝒽(𝑥) = (5 - 6𝑥)5
- 𝑔(𝑥) = 5 - 6𝑥
- 𝑓(𝑥) = 𝑥5
- 𝑔’(𝑥) = -6
- 𝑓’(𝑥) = 5𝑥4
Apply chain rule
- 𝑑/𝑑𝑥[𝒽(𝑥)] = 𝑑/𝑑𝑥[𝑓(𝑔(𝑥))]
- 𝑑/𝑑𝑥[𝒽(𝑥)] = 𝑓’(𝑔(𝑥)) * 𝑔’(𝑥)
- 𝑑/𝑑𝑥[𝒽(𝑥)] = 5(5 - 6𝑥)4 * -6
- 𝑑/𝑑𝑥[𝒽(𝑥)] = -30(5 - 6𝑥)4
Multivariable Chain Rule
where:
- 𝑓 is a scalar-valued function
- 𝛻𝑓 is the gradient vector of 𝑓
- 𝑣̅(𝑡) is a vector-valued function (can be a vector of size 1)
- · is the dot product
This is similar to the definition of a directional derivative
Examples
Scalar-Valued Function of 1 Variable
Given a scalar-valued function 𝑓 that takes one variable 𝑥 where it is dependent on 𝑡:
Scalar-Valued Function of 2 Variables
Given a scalar-valued function 𝑓 that takes two variables 𝑥 and 𝑦 where they are dependent on 𝑡:
/differential/derivative-calculus---methods/techniques/chain-rule-(calculus)---multivariable-chain-rule/chain-rule.png)
/differential/derivative-calculus---methods/techniques/chain-rule-(calculus)---multivariable-chain-rule/multivariable-chain-rule-example.png)