11.510 min read
Symbolic Computation of Partial Derivatives
Computing partial derivatives symbolically is straightforward: treat all variables except the one you are differentiating with respect to as constants, then apply ordinary differentiation rules (power, product, quotient, chain rules).
For example, if , then:
The chain rule applies within partial differentiation: if for some inner function , then . This is used constantly in neural networks (backpropagation is repeated application of this rule).
Formal View
Example 11.1 — Computing Partial Derivatives
Let .
Remark 11.2 — Chain Rule for Partial Derivatives
If where and , then
This is the multivariable chain rule, which we study in detail in Chapter 14.
Why This Matters
Symbolic partial differentiation is one of the most frequently performed operations in applied mathematics and machine learning.
- Computing gradients of loss functions with respect to model parameters (deep learning)
- Finding critical points of energy functions in physics and engineering
- Deriving normal equations and optimality conditions in statistics
Quiz
Question 1
Let . Then equals:
Question 2
Let . What is ?
Common Mistakes
- Differentiating variables that should be treated as constants — always identify which variable you are differentiating with respect to.
- Forgetting the chain rule when the function of interest is a composition.
- Errors in mixed partials: remember to differentiate with respect to the outermost symbol last.