Functions of several variables: gradients, Hessians and integrals
GATE DA160 min read
Partial derivatives
Definition. The partial derivative (also written ) is the derivative with respect to , holding every other variable fixed.
Example 1. For :
- ;
- ;
- .
Computing gives the same result. Clairaut's theorem: when the mixed partials are continuous, , so the Hessian is symmetric.
Exam trap. A function can have both partial derivatives at a point without being continuous there. Take with . Both partials at the origin are 0, yet along the line the function equals . Differentiability in several variables needs more than the existence of partials. Continuous partials are enough.
The gradient and directional derivatives
Gradient. .
Directional derivative. The rate of change in the direction of a unit vector is
Consequences.
- increases fastest in the direction of , at the rate .
- It decreases fastest in the direction of . This is why gradient descent works.
- Along directions perpendicular to , the rate is 0.
- So the gradient is perpendicular to the level curves (or level surfaces).
Example 2. at .
- .
- In the direction of , the unit vector is , so .
- The fastest increase is , in the direction .
Exam trap. Always normalise the direction first. Using itself would give 28, which is wrong.
Tangent plane. At , the graph is best approximated by .
Example 3. For at : and . The tangent plane is . At it predicts ; the true value is .
The chain rule in several variables
If with and , then
Example 4. with and .
- The chain rule gives .
- Check. Substituting first, , and differentiating gives the same result.
You have read the free 30% of this note
Sign in with Google to keep reading. It is free, takes one tap, and you also get:
- 7 practice questions from this note
- Every note in full, plus the PDF library
- Official past papers as timed tests, with explanations
- An AI tutor for doubts, in Hindi or English
- Your progress, mistakes and study plan saved on every device