MathematicsUnit 109 min read
Partial Derivatives – definitions, first & higher order, gradient, tangent plane, chain rule
Unit 10 of Mathematics: introduces partial derivatives of multivariable functions, computes first‑ and second‑order derivatives, explores mixed derivatives, gradient and tangent‑plane concepts, and applies them to optimisation and real‑world models.
Key points
- A partial derivative measures the rate of change of a multivariable function with respect to one variable while holding others constant.
- First‑order partials lead to the gradient vector, which points in the direction of steepest ascent.
- Mixed second‑order partials are equal under mild continuity conditions (Clairaut’s theorem).
- The tangent plane and linear approximation use partial derivatives to approximate surfaces locally.
- The multivariable chain rule links changes in composite functions to partial derivatives.
- Partial derivatives are essential in economics, engineering, and data‑science models such as profit optimisation and traffic flow.
1. What is a Partial Derivative?
For a function of two variables the partial derivative with respect to is the ordinary derivative of when is treated as a constant:
Similarly for :
These are the slopes of the surface along the coordinate directions.
The contour lines are curves of constant . The spacing of the lines is tighter where the partial derivative with respect to the corresponding variable is larger.
2. Computing First‑Order Partial Derivatives
Treat all other variables as constants and differentiate normally.
Worked Example 1 – From the past exam:
Find and at for
Solution
- (differentiate w.r.t. , constant).
- (differentiate w.r.t. , constant).
Evaluate at :
Thus the gradient at the point is .
3. Second‑Order and Mixed Partial Derivatives
Higher‑order partials are obtained by differentiating a first‑order partial again.
3.1 Notation
3.2 Clairaut’s (Schwarz) Theorem
If the mixed partials and are continuous on a neighbourhood of a point, then
3.3 Worked Example 2 – Second‑order derivatives
Find all second‑order partial derivatives of
Solution
First‑order partials:
Second‑order:
Since everywhere, Clairaut’s condition is satisfied.
The surface plot shows the rapid growth in the positive octant, illustrating why the mixed derivatives are identical.
4. The Gradient Vector
The gradient of is the vector of its first‑order partials:
Properties:
| Property | Meaning |
|---|---|
| Direction | Points toward the greatest increase of . |
| Magnitude | Equals the maximal rate of increase: . |
| Orthogonal to level curves | At any point, is perpendicular to the contour line through that point. |
The arrows illustrate how the gradient changes across the plane.
5. Tangent Plane and Linear Approximation
For a differentiable surface at the tangent plane is
The linear approximation (or first‑order Taylor polynomial) uses this plane to estimate nearby values:
Worked Example 3 – Tangent plane for the function in Example 1 at .
We already have .
Partial derivatives at the point: , .
Hence
Simplified:
The picture shows the surface (blue) and the red tangent plane intersecting at the point.
6. Multivariable Chain Rule
If where and are functions of a single parameter , then
For a composition with two parameters, e.g. , ,
flowchart LR
A["z = f(x,y)"] --> B["x = g(s,t)"]
A --> C["y = h(s,t)"]
B --> D["∂z/∂s = fₓ·∂x/∂s + fᵧ·∂y/∂s"]
C --> D
B --> E["∂z/∂t = fₓ·∂x/∂t + fᵧ·∂y/∂t"]
C --> EThe diagram summarises the flow of derivatives.
7. Applications of Partial Derivatives
| Domain | Typical Use of Partial Derivatives | Example |
|---|---|---|
| Economics | Maximising profit with respect to price and quantity | Set and to find optimal price‑quantity pair. |
| Engineering | Stress‑strain analysis in plates (function of and ) | Gradient gives direction of greatest stress increase. |
| Computer Graphics | Surface shading – normals obtained from | Normal vector = . |
| Traffic Modelling | Travel‑time function where = route A flow, = route B flow | tells how additional cars on route A affect total travel time. |
| Finance (Banks) | Loan‑interest profit (rate , loan amount ) | shows profit sensitivity to interest‑rate changes. |
8. In the real world
eSewa payment gateway – The fee‑structure function (where = transaction amount, = number of concurrent users) uses to decide how the fee changes when transaction size grows, ensuring the platform remains profitable while keeping fees competitive.
Daraz order‑fulfilment – The expected delivery time (with = number of orders in a zone, = distance to warehouse) is optimised by setting and to allocate couriers efficiently.
NEPSE stock‑price model – A simple two‑factor model (where = interest rate, = market volatility) uses the gradient to gauge which factor influences price more on a given day, guiding traders’ decisions.
Worked real‑world tie‑in: A Nepali bank wants to maximise its monthly revenue from personal loans. The revenue model is
where is the interest rate (in %) and is the total loan amount (in million NPR).
- tells the bank that each additional 1 % point in rate adds revenue equal to the current loan portfolio.
- . Setting this to zero gives the optimal loan amount for a chosen rate: .
If the bank currently offers , the optimal loan amount is million NPR. The bank can therefore adjust marketing to target this loan volume.
9. Summary Table
| Concept | Symbol | How to compute | Typical use |
|---|---|---|---|
| First‑order partial | Differentiate w.r.t. one variable, treat others as constants | Gradient, tangent plane | |
| Second‑order pure | Differentiate the corresponding first‑order partial again | Curvature, Hessian matrix | |
| Mixed partial | Differentiate first‑order partial w.r.t. the other variable | Verify smoothness (Clairaut) | |
| Gradient | Direction of steepest ascent, optimisation | ||
| Tangent plane | Plug point and partials into formula | Linear approximation, error analysis | |
| Chain rule | Multiply partials by derivatives of inner functions | Composite functions, dynamics |
Exam tip
- Memorise the notation: for partials, subscripts for order, and the gradient arrow .
- Always state the variable you are holding constant before differentiating; this avoids sign errors.
- For mixed partials, write both and and check continuity; most exam functions are polynomials, so equality holds automatically.
- When a question asks for the tangent plane, plug the point into the original function first, then compute the two first‑order partials at that point and substitute into the plane formula.
- Partial‑derivative chain‑rule problems are scored high if you draw a quick mermaid‑style flow (as shown above) to keep track of each inner derivative.
- Practice linear approximation: rewrite the answer as and compare with the exact value to see the error magnitude – a common short‑answer check.
Good luck!
3‑D surface of a two‑variable polynomial (Image: Kmhkmh, CC BY 3.0, via Wikimedia Commons)
Based on the TU BIT syllabus for Mathematics (MTH104), unit 10.
Discussion
Loading…