A differential equation is an equation that involves derivatives or differentials of an unknown function. If the unknown function depends on a single independent variable, the equation is an ordinary differential equation; if it depends on two or more, partial derivatives appear and the equation is a partial differential equation.
Quick Reference
| Term | Meaning |
|---|---|
| Differential equation | An equation involving derivatives or differentials of an unknown function |
| Ordinary differential equation (ODE) | One independent variable, so only ordinary derivatives appear |
| Partial differential equation (PDE) | Two or more independent variables, so partial derivatives appear |
| Dependent variable | The unknown function being solved for, usually , , or |
| Independent variable | The variable the unknown function depends on, usually or |
| y', y'', y''', y^{(4)}, \dots, y^{(n)} | First, second, third, fourth, and th derivatives of |
| and , dot notation used when the variable is time |
The Definition
A differential equation, as the words suggest, is an equation that involves derivatives or differentials of an unknown function.
A differential equation is an equation that relates an unknown function to one or more of its derivatives.
The following are all examples of differential equations:
\left\{ \begin{aligned} &\frac{dy}{dt} - 3\frac{dx}{dt} = 0 \\ &\frac{dy}{dt} + 5\frac{dx}{dt} = e^{-t} \end{aligned} \right.Notice how varied these look. Some are written with , some with differentials and , one is a system of two equations, and the last uses partial derivatives. What unites them is that in each case the unknown is a function, and the equation constrains that function through its derivatives.
Ordinary vs. Partial Differential Equations
Equations that involve a single independent variable, so that only ordinary derivatives occur, are known as ordinary differential equations (ODEs). When there is more than one independent variable, partial derivatives are involved and the equation is called a partial differential equation (PDE).
The test is simple: count the independent variables. If the unknown function is , a function of alone, every derivative in the equation is an ordinary derivative and the equation is an ODE. If the unknown is , derivatives with respect to hold fixed and vice versa, so they are partial derivatives and the equation is a PDE.
This book is about ordinary differential equations. Partial differential equations appear here only so that you can recognize them.
Notation for Derivatives
The expressions y', y'', y''', y^{(4)}, \dots, y^{(n)} represent the first, second, third, fourth, and th derivatives of with respect to the independent variable under consideration.
For example, y''' means when the independent variable is . Note that once you reach the fourth derivative, the prime notation becomes hard to read, so a parenthesized superscript is used instead: , not y''''. The parentheses matter, because without them would mean the fourth power of .
In physics, when the independent variable is time , dots are sometimes used instead of primes. Therefore and . This convention goes back to Newton and is still standard in mechanics.
Worked Examples
Classify each of the following as an ODE or a PDE, and identify the unknown function and the independent variables.
- , also written y' = 5x + 4y
- , also written y + (y''')^2 = \sin x
- , where is a given function
- , where is a constant
Solution
- ODE. The unknown function is , regarded as a function of the single variable . Only the ordinary derivative appears.
- ODE. Again is a function of alone. The third derivative is squared, but that affects the degree of the equation, not whether it is ordinary.
- PDE. The unknown is a function of the two variables and , so the second derivatives are partial. This is Poisson's equation.
- PDE. The unknown is a function of , , and . This is the two-dimensional heat equation.
- PDE. The unknown is a function of and . This is Burgers' equation, which combines the transport term with the diffusion term .
Verify that is a solution of y' - 3y = 0, and that is not.
Solution
For we have y' = 3e^{3x}, so
y' - 3y = 3e^{3x} - 3e^{3x} = 0 .The equation reduces to for every real , so is a solution.
For we have y' = 2e^{2x}, so
y' - 3y = 2e^{2x} - 3e^{2x} = -e^{2x},which is never zero. So is not a solution.
Checking a proposed solution is always this mechanical: substitute the function and its derivatives into the equation and see whether both sides agree identically.
Exercises
State whether each equation is an ODE or a PDE.
Solution
- ODE. The unknown depends only on .
- PDE. The unknown depends on both and .
- ODE. The unknown depends only on . The cube raises the degree but not the number of independent variables.
Show that is a solution of y' + 2xy = 0 for every constant .
Solution
Differentiating with the chain rule, y' = c e^{-x^2} \cdot (-2x) = -2xc e^{-x^2}. Substituting,
y' + 2xy = -2xc e^{-x^2} + 2x \cdot c e^{-x^2} = 0 .The identity holds for every real and every value of , so the whole one-parameter family is made of solutions.
Frequently Asked Questions
What exactly is a differential equation?
It is an equation that involves derivatives or differentials of an unknown function. The unknown is a function, not a number, and the equation says something about how that function and its rates of change are related. For instance, y' = 2y says: find every function that equals half of its own derivative.
How do I tell an ODE from a PDE at a glance?
Look for the partial derivative symbol . If every derivative is written with a straight , as in or , the unknown depends on one variable and the equation is ordinary. If you see or , the unknown depends on more than one variable and the equation is partial.
Why is written with parentheses instead of y''''?
Four tick marks are hard to count at a glance, so the parenthesized superscript takes over from the fourth derivative on. The parentheses are not optional: means the fourth derivative, while means raised to the fourth power. Dropping them changes the meaning of the equation entirely.
Does a differential equation have to be solved for the highest derivative?
No. An equation such as \left(x y' - y\right)^2 = (x+y)^2 is a perfectly good differential equation even though y' is tangled inside a square. Many solution techniques do assume the equation has been solved for the highest derivative, which is why the general first-order form F(x,y,y')=0 is often replaced by y' = f(x,y) when that step is possible.
Can a differential equation involve differentials like and instead of derivatives?
Yes. The equation is written in differential form. Dividing through by recovers the familiar derivative form . Differential form is especially convenient for exact equations and separable equations, where it treats and symmetrically.
Is a system of differential equations still a differential equation?
It is a system, and the pair
must be solved for both unknown functions and at once. Systems get their own treatment in the chapter on systems of differential equations, where matrix methods make them tractable.