Partial derivatives and the gradient
For , the partial derivative differentiates in holding fixed. The gradient points in the direction of fastest increase and is zero at any interior extremum. The second derivatives form the Hessian
which is symmetric for smooth (). Near a critical point, : the second-order Taylor expansion in two variables.
The second-derivative test in two variables
At a critical point, let .
| Condition | Conclusion |
|---|---|
| , | local minimum ( positive definite) |
| , | local maximum ( negative definite) |
| saddle point (eigenvalues of opposite sign) | |
| inconclusive |
The logic is the eigenvalue one: is the product of the two eigenvalues of , so means one direction curves up and another curves down.
Worked example
classify the critical points
Find and classify the critical points of .
Show solutionHide solution
and . Both vanish at and .
The Hessian is , so .
- At : and , a local minimum with .
- At : , a saddle. Along the -axis it is a maximum of ; along the -direction increases like .
There is no global minimum, because as . Local tests never settle global questions on an unbounded domain.
Double integrals over regions
is computed as an iterated integral. Fix the outer variable, find the range of the inner variable from the region's boundary, integrate, then integrate the result:
Fubini's theorem lets you swap the order (for integrable , in particular any non-negative or bounded on a bounded region), but the limits change: redraw the region and read it the other way. Always sketch the region first. Most mistakes are wrong limits, not wrong antiderivatives.
The link to probability
If has joint density , then , the marginal is , and . When and are independent uniforms on , on the unit square and probability is simply area: . This is the engine behind geometric-probability questions.
Polar coordinates and the Gaussian integral
With , , the area element becomes . This proves the Gaussian integral from the previous lesson: if , then
so . The extra is what makes the inner integral elementary.
Worked example
swap the order to make it possible
Evaluate .
Show solutionHide solution
has no elementary antiderivative, so the inner integral is stuck. Describe the region instead: , a triangle below the diagonal. Reading it with outside, runs over and over :
The inner integral produced exactly the factor needed for the substitution . When an iterated integral looks impossible, try the other order.
Worked example
a joint density
has density on the unit square. Find , the marginal density of , and .
Show solutionHide solution
Normalise. , so .
Marginal. on , and .
Probability over a region. The region is the triangle under the anti-diagonal, so for fixed , runs from 0 to :
Sanity check: the density is smallest near the origin, so the lower triangle should carry less than half the mass, and . Also, the density is symmetric in and , so without any integration.
Knowledge check
What is the origin for ?
Knowledge check
Which integral equals ?
Knowledge check
and are independent and uniform on . What is ?
Key takeaways
- Interior extrema have ; classify them with : saddle, min or max by the sign of .
- Under a constraint, solve .
- Sketch the region before writing limits; swapping the order can turn an impossible integral into a substitution.
- Joint density questions are double integrals; for independent uniforms on the unit square, probability is area.
- Polar coordinates add a factor , which is how the Gaussian integral is evaluated.
Practice problems
Finished reading?
Answer the 3 knowledge checks to complete this lesson (0 done).