SECTION 1
Historical Context & Motivation
In single-variable calculus, you learned to find the derivative of a function like f(x) = x². But what happens when a quantity depends on more than one variable? For example, the temperature on a metal plate depends on both the x-position and the y-position. The volume of a cylinder depends on both its radius and its height. Scientists and mathematicians needed a way to study how a function changes when you adjust just one of those variables while holding the others fixed.
The concept of partial derivatives arose over centuries as mathematicians encountered problems in physics, engineering, and geometry that involved multiple changing quantities. Today, partial derivatives are fundamental tools used in fields from machine learning to weather forecasting.
1734 • Euler's Early Work
1788 • Lagrange's Analytical Mechanics
1800s • The ∂ Notation Emerges
1822 • Fourier's Heat Equation
Modern • Machine Learning & Beyond
The central question this lesson addresses is: How do we measure the rate of change of a function with respect to one variable while keeping all other variables constant? Answering this question opens the door to understanding surfaces, optimization, and the behavior of real-world systems.
SECTION 2
Core Principles & Definitions
A partial derivative measures how a multivariable function changes as you vary one input while treating all other inputs as constants. If you already know how to take an ordinary derivative, you already know most of what you need — the twist is simply deciding which variable to differentiate with respect to and freezing the rest.
One Variable at a Time
The Curly-d Symbol ∂
Multiple Partials per Function
Higher-Order Partials
Clairaut's Theorem
KEY TAKEAWAY
SECTION 3
Visual Explanation
The best way to understand partial derivatives is to visualize a surface in three dimensions. Imagine a hilly landscape described by a function z = f(x, y). At any point on that surface, you can walk in the x-direction (east-west) or the y-direction (north-south). The partial derivative ∂f/∂x tells you the slope of the hill if you walk purely east-west, and ∂f/∂y tells you the slope if you walk purely north-south.
Notice that each slice through the surface produces a regular two-dimensional curve. Once you have that curve, you just take the ordinary derivative of it — that's the partial derivative. The key insight is that each partial derivative reduces a multivariable problem to a single-variable problem by freezing everything else.
SECTION 4
Mathematical Framework
Let's build the notation and rules step by step. If you can differentiate single-variable functions using the power rule, product rule, and chain rule, you can compute partial derivatives — the only new idea is treating other variables as constants.
FIRST-ORDER PARTIAL WITH RESPECT TO x
This is the limit definition. Notice it looks exactly like the ordinary derivative limit, except y stays fixed. In practice, you just differentiate f with respect to x while treating y as a constant.
FIRST-ORDER PARTIAL WITH RESPECT TO y
Same idea, but now x is held constant and y varies. Together, ∂f/∂x and ∂f/∂y describe the slope of the surface in two perpendicular directions.
Alternative Notation
You will encounter several ways to write partial derivatives. They all mean the same thing. For a function f(x, y):
| Notation | Read as | Meaning |
|---|---|---|
∂f/∂x | "partial f partial x" | Derivative of f treating y as constant |
fₓ(x, y) | "f sub x" | Subscript notation for the same partial |
∂²f/∂x² | "second partial of f with respect to x" | Differentiate with respect to x twice |
∂²f/∂y∂x | "mixed partial: first x, then y" | Differentiate first with respect to x, then with respect to y |
Common notation for partial derivatives
SECOND-ORDER PARTIALS
Second-order partials come in two flavors: unmixed (differentiate twice with respect to the same variable) and mixed (differentiate with respect to two different variables).
CLAIRAUT'S THEOREM
This means the order in which you take mixed partial derivatives does not matter, as long as the partials are continuous — which is the case for nearly every function you'll encounter in this course.
SECTION 5
Higher-Order Partials in Detail
Once you know how to compute first-order partial derivatives, finding higher-order partial derivatives is simply a matter of repeating the process. You take the partial derivative of a partial derivative. For a function f(x, y), there are four second-order partials: fₓₓ, f_yy, fₓᵧ, and f_yx. Thanks to Clairaut's theorem, fₓᵧ and f_yx are usually equal, so in practice you compute three distinct second-order partials.
Let's see a concrete example. Consider f(x, y) = x³y² + 2xy. Here are all first- and second-order partials:
- fₓ = 3x²y² + 2y (treat y² and y as constants, differentiate x³ and x)
- fᵧ = 2x³y + 2x (treat x³ and x as constants, differentiate y² and y)
- fₓₓ = 6xy² (differentiate fₓ with respect to x again)
- fᵧᵧ = 2x³ (differentiate fᵧ with respect to y again)
- fₓᵧ = 6x²y + 2 (differentiate fₓ with respect to y)
- fᵧₓ = 6x²y + 2 (differentiate fᵧ with respect to x — same as fₓᵧ ✓)
Quick Check
SECTION 6
Worked Example
Let's work through a complete example, finding all first-order and second-order partial derivatives for a function that mixes polynomial and trigonometric terms.
Find all first- and second-order partials of f(x, y) = x²sin(y) + 3y
- 1
Step 1 — Find ∂f/∂x
Treat y (and therefore sin(y)) as a constant. Differentiate x²sin(y) + 3y with respect to x. The term x²sin(y) differentiates to 2x·sin(y) using the power rule. The term 3y is a constant with respect to x, so its derivative is 0.∂f/∂x = 2x·sin(y) - 2
Step 2 — Find ∂f/∂y
Now treat x as a constant. Differentiate x²sin(y) + 3y with respect to y. The term x²sin(y) becomes x²cos(y) because the derivative of sin(y) is cos(y). The term 3y becomes 3.∂f/∂y = x²cos(y) + 3 - 3
Step 3 — Find ∂²f/∂x² (fₓₓ)
Take the result from Step 1 (fₓ = 2x·sin(y)) and differentiate it with respect to x again. Since sin(y) is still a constant with respect to x, the derivative is 2·sin(y).∂²f/∂x² = 2sin(y) - 4
Step 4 — Find ∂²f/∂y² (fᵧᵧ)
Take the result from Step 2 (fᵧ = x²cos(y) + 3) and differentiate with respect to y again. The derivative of x²cos(y) is −x²sin(y) (since the derivative of cos(y) is −sin(y)). The derivative of the constant 3 is 0.∂²f/∂y² = −x²sin(y) - 5
Step 5 — Find the mixed partial ∂²f/∂y∂x (fₓᵧ)
Take fₓ = 2x·sin(y) and differentiate with respect to y. The derivative of sin(y) is cos(y), and 2x is treated as a constant, giving 2x·cos(y).∂²f/∂y∂x = 2x·cos(y) - 6
Step 6 — Verify Clairaut's Theorem
Take fᵧ = x²cos(y) + 3 and differentiate with respect to x. The derivative of x²cos(y) with respect to x is 2x·cos(y), and the constant 3 disappears. We get fᵧₓ = 2x·cos(y), which matches fₓᵧ. Clairaut's theorem is confirmed.∂²f/∂x∂y = 2x·cos(y) = ∂²f/∂y∂x ✓
SECTION 7
Common Mistakes & How to Avoid Them
Partial derivatives are conceptually straightforward, but students often stumble on a few predictable pitfalls. The table below summarizes the most common mistakes alongside the correct approach.
| Common Mistake | Why It's Wrong | Correct Approach |
|---|---|---|
| Differentiating both variables at once | When finding ∂f/∂x, treating y as a variable instead of a constant leads to an incorrect expression | Mentally replace every y with a specific number (like 5) to remind yourself it's constant, then differentiate |
| Forgetting constant terms don't vanish | In ∂/∂x of 3xy², students drop the y² instead of keeping it as a constant coefficient | y² is a constant when differentiating with respect to x; ∂/∂x of 3xy² = 3y², not 3 |
| Mixing up the order in mixed partials | ∂²f/∂y∂x means differentiate with respect to x first, then y — reading right to left | Read the denominator right to left: ∂y∂x → first ∂x, then ∂y. Subscript notation fₓᵧ reads left to right: first x, then y |
| Forgetting the chain rule | For terms like sin(xy), students forget the inner derivative | ∂/∂x of sin(xy) = cos(xy) × y (chain rule multiplies by the derivative of the inner function with respect to x) |
Common pitfalls when computing partial derivatives
KEY TAKEAWAY
SECTION 8
Connection to Advanced Topics
Partial derivatives are the building blocks for nearly everything else in multivariable calculus. Once you're comfortable computing them, you'll use them to construct more powerful tools. Here's a preview of where partial derivatives lead.
| Concept | How It Uses Partial Derivatives | What It Does |
|---|---|---|
| Gradient (∇f) | Combines all first-order partials into a vector: ∇f = ⟨∂f/∂x, ∂f/∂y⟩ | Points in the direction of steepest increase of f |
| Directional Derivative | Uses the gradient to find the rate of change in any direction, not just along axes | Generalizes the idea of a partial derivative beyond the x- and y-directions |
| Tangent Plane | Built from ∂f/∂x and ∂f/∂y evaluated at a point on a surface | Approximates the surface locally — the multivariable version of a tangent line |
| Second Derivative Test | Uses fₓₓ, fᵧᵧ, and fₓᵧ to classify critical points as maxima, minima, or saddle points | Extends the concavity test from single-variable calculus to surfaces |
| Partial Differential Equations | Equations like the heat equation relate partial derivatives of a function to each other | Models real-world phenomena: heat flow, wave propagation, fluid dynamics |
Advanced topics that build on partial derivatives
Mastering partial derivatives now gives you the foundation for all of these topics. In particular, the gradient vector is the immediate next step — it packages your partial derivatives into a single object that captures how a function changes in every direction at once. If you're comfortable finding ∂f/∂x and ∂f/∂y, you're ready for that journey.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
A partial derivative measures the rate of change of a multivariable function with respect to one variable while holding all other variables constant. You compute it by applying the same differentiation rules (power rule, product rule, chain rule) from single-variable calculus, treating every other variable as a constant. The notation ∂f/∂x uses the curly-d symbol to distinguish partial derivatives from ordinary ones. A function of two variables has two first-order partials, and each first-order partial can be differentiated again to produce second-order partials — both unmixed (fₓₓ, fᵧᵧ) and mixed (fₓᵧ, fᵧₓ).
Clairaut's theorem guarantees that for most functions you'll encounter, the mixed partial derivatives are equal regardless of the order of differentiation (fₓᵧ = fᵧₓ). Partial derivatives are the foundation for the gradient vector, tangent planes, the multivariable second derivative test, and partial differential equations — making them one of the most essential tools in all of higher mathematics and its applications.