External temperature input
AI Models & Assistants / Knowledge library
Chain Rule
Differentiates a composed function by multiplying derivatives through its dependency path
Why learn Chain Rule?
It makes derivatives of nested computations and deep neural networks tractable.
The problem it solves
It propagates local sensitivities through many dependent stages of a calculation.
Where it came from
The chain rule connects the sensitivity of an output to an intermediate value with the intermediate value's sensitivity to an input. Multivariable forms combine sensitivities through Jacobian products.
Build your understanding
Work through these exercises in order. Try the task before opening a reference.
- Define Chain Rule and distinguish it from a nearby concept.
- Choose a realistic task where Chain Rule is appropriate.
- Identify one failure mode or misuse of Chain Rule.
- Interpret a small result produced with Chain Rule.
- Explain one limitation or tradeoff of Chain Rule.
Documentation and sources
- OpenStax Calculus: The Chain Rule (openstax.org)
Connect the ideas
Explore next
Real World Example
Dynamic Thermal Load Modeling
HVAC control engineers managing complex building climate systems.
The business problem
Engineers struggle to calculate the instantaneous rate of change in cooling demand when the system depends on nested variables, such as external temperature affecting internal coolant pressure, which in turn affects compressor power consumption.
How this topic solves it
The chain rule allows engineers to decompose the complex, nested dependency path of climate variables into a product of simpler, differentiable functions, enabling precise real-time adjustments to compressor output.
- Define the outer function representing compressor power as a function of coolant pressure.
- Define the inner function representing coolant pressure as a function of external temperature.
- Calculate the derivative of the outer function evaluated at the current inner function value.
- Calculate the derivative of the inner function with respect to external temperature.
- Multiply these derivatives to determine the total rate of change in power consumption relative to temperature shifts.
The flow of dependencies from external environment to power consumption.
Coolant pressure function g(x)
Compressor power function f(u)
- Temp (x) → g'(x) → Pressure (u)
- Pressure (u) → f'(u) → Power (y)
- Temp (x) → f'(g(x)) * g'(x) → Power (y)
Expected business outcome
Improved system responsiveness and energy efficiency by accurately predicting power fluctuations before they manifest as thermal instability.
Limitations and checks
The method assumes functions are differentiable at all points in the path; if the system encounters a non-differentiable state, such as a mechanical hard-stop or sensor saturation, the model will fail to provide an accurate derivative.