9 Partial Derivatives
How do we differentiate a function with multiple inputs? We will learn several ways to do this throughout the course. But all methods rely on one fundamental idea: the partial derivative.
9.1 Geometry of Partial Derivatives
If we take a function
What does this derivative mean? Well, we are measuring the slope in the
What happens if we instead looked at the slice where
Thus, whaever
The only thing confusing here is that unless we know what we are doing, it’s hard to tell what the prime means. So we should probably not use this notation when there’s more than one variable.
In fact, to signify that we are taking the derivative of a multivariable function, its customary to write the
Definition 9.1 (
Partial derivatives are ubiquitous in the sciences, and because they are so widely used in so many fields, there are also many common notations for them. I will use many of the notations interchangably in class, to prepare you for the real world: and for reference the most common ones appear below.
Definition 9.2 (Notations for Partial Differentiation) The partial derivative of
The last notation takes some getting used to at first: the subscript represents differentiation! But because of its conciseness, it is very commonly used when performing calculations.
In single variable calculus there was just a single first derivative:
Definition 9.3 (The Gradient Vector) Given a multivariable function
The symbol
Anything you are used to doing in single-variable calculus can be done with partial derivatives. For example, we can use implicit differentiation to take the derivative of implicit equations with multiple variables.
Example 9.1 (Implicit Partial Differentiation) Find the derivative
Here we act as though
Computing this (where we need the product rule on the last term, since we have both an
Then, we just solve for
What is implicit differentiation measuring? Think back to the 2-dimensional case, from calculus 1. There we had an implicit equation - what we now know to be a level set - and we were trying to measure
The same picture works here, but now in higher dimension. An implicit equation in
9.2 Higher Derivatives
Higher order partial derivatives are no more difficult: each time you take the derivative, you just treat all other variables as constants.
For instance, the second partial
But you can also take partials with respect to different variables.
Definition 9.4 A higher partial derivative is just the result of taking the partial derivative more than once (perhaps with respect to different variables). When doing this, one needs to be careful with notation: the “derivative notations” are all read like function composition
The subscript notation is read from inside out:
Theorem 9.1 (Equality of Mixed Partials) So long as the partial derivatives are defined and continuous, the order in which you take them does not matter.
In fact, the second order partial derivatives together form an operation called the laplacian which arises in many applications:
Definition 9.5 The Laplacian operator is the sum of the (non-mixed) second order partial derivatives: it is sometimes written as
and in higher dimensions, its analogous just with more variables. To take the laplacian of a function, you just find its non-mixed second partials, and add them all up:
One way to imagine what the laplacian is measuring is a sort of average concavity: it adds up the concavity in both the
so its concave up on average,
Just like we packaged all of the first partial derivatives together into one nice object, the Gradient, we do the same with the second partials:
Definition 9.6 (The Hessian (Matrix of 2nd Derivatives)) Given a twice differentiable function
9.3 Partial Differential Equations
Partial derivatives are the language in which much of modern science is written. We saw in the last portion of the course that vector valued differential equations are the right language to describe the motion of single particles: but what about quantites that depend on more than one variable?
A first example is simply waves on a string: when a guitar string is pulled taught, if you try to pluck it away from rest it pulls back on you - the farther you pull it away, the harder it pulls back.
The amount a string curves away from its straight line equalibrium is captured (roughly) by its concavity. And so one simple model of string motion would say the bigger the concavity the faster it wants to “snap back”. Said more precisely
The acceleration of the string is proportional to its concavity
Writing this in math - if the string’s displacement at position
In two dimensions, a wave equation measures the displacement of a circular membrane, like a drumhead or the interior speaker of an earbud. Here we have to account for displacements in both the x and y directions. Thus, the 2 dimensional wave equation is below (now written in the more ‘verbose’ notation for partial derivatives)
Here’s some solutions to this equation:
This same wave equation in three dimensions describes the propagation of electromagnetic waves - or light! This was a triumph of 19th century physics, where James Clerk Maxwell derived this wave equation from his equations for the electromangetic field. Below, you can see a (numerically computed) solution to this equation, showing a light beam being focused by a glass lens.
Similar partial differential equations occur throughout physics and engineering. (If you have yet to be convinced of the wide applicability of partial derivatives, look up “continuum mechanics” and try to find a topic you’re interested in.)
One final example I’ll mention here is quantum mechanics, where the fundamental equation (called the Schodinger equation) is a replacement of Newtons Law ( a vector valued differential equation) with a partial differential equation. This big change in the mathematics is what causes people to say that quantum particles can be “like waves”.
Below is a calculator I wrote for playing around with the “double slit experiment” in quantum mechanics. This will not come up further in our course, but feel free to ask me if you are interested!