Intro to Differential Equations


Intro to Differential Equations

Hope
Simon, let's talk about differential equations. At its core, a differential equation is just an equation that involves an unknown function and one or more of its derivatives. So if you see a derivative anywhere, you're looking at a DE.

Simon
Right. And that makes sense because so many real-world problems involve rates of change. If you want to predict future behavior, you need to know how something is changing right now. That's why mathematical models often end up as differential equations.

Hope
Exactly. And we classify them by order. The order is just the highest derivative that appears. If you see a second derivative, it's second-order. If only a first derivative, it's first-order. Most of what we'll look at are first-order.

Simon
So once you have a DE, the big question is: what functions satisfy it? That's called solving the DE. For example, if we have y double prime minus 3 y prime minus 4 y equals 0, we can check if y = 2 e to the x works by plugging in y, y prime, and y double prime.

Hope
Right. You differentiate first: y prime is -2 e to the x, y double prime is 2 e to the x. Then substitute: 2 e to the x minus 3 times (-2 e to the x) minus 4 times (2 e to the x) gives 2 e to the x plus 6 e to the x minus 8 e to the x, which is zero. So it checks out.

Simon
Now, when you solve a DE, you often get a family of solutions with arbitrary constants—that's the general solution. For instance, if dy/dx = cos(2x) - 4x, then integrating gives y = (1/2) sin(2x) - 2x^2 + C. That C represents all possible vertical shifts.

Hope
And if you have an extra condition, like y(3) = 0, you can find the particular solution. You plug x=3 and y=0 into the general solution to solve for C. In that arc tangent example, we got C = -π/12, so the particular solution is y = (1/3) arctan(x/3) - π/12.

Simon
So a DE plus an initial condition together is called an initial value problem, or IVP. You have to verify both the DE and the condition. Like with y = x ln x + 2x, we checked the DE and also checked that y(1) = 2. Both were true, so it's a solution to that IVP.

Hope
Sometimes solving is just integration. If dy/dx = 2x/(3x^2+1) with y(0)=1, we use u-substitution: let u = 3x^2+1, du = 6x dx, so 2x dx = (1/3) du. Then y = (1/3) ln|u| + C = (1/3) ln(3x^2+1) + C. Using the initial condition gives C=1, so the solution is y = (1/3) ln(3x^2+1) + 1.

Simon
But not all DEs are that simple. Sometimes we can't find an explicit solution at all. In those cases, we can still learn about the behavior of solutions. For example, if dy/dt = y^4 - 6y^3 + 5y^2, we can find constant solutions by setting the derivative to zero.

Hope
Right. Factoring gives y^2 (y-5)(y-1)=0, so constant solutions are y=0, y=1, and y=5. Those are equilibrium points. Then we can do a sign analysis on dy/dt to see where solutions are increasing or decreasing. On a number line with critical points at 0, 1, and 5, we test intervals.

Simon
Test values: for y=-1, dy/dt positive; y=0.5, positive; y=2, negative; y=6, positive. So y is increasing on (-∞,0), (0,1), and (5,∞), and decreasing on (1,5). That tells us about the behavior without actually solving the DE completely.

Hope
And that's really useful. Now let's look at an application: population modeling. A classic logistic differential equation is dP/dt = 1.5 P (1 - P/2000). Here P is population, t is time. The constant solutions come from setting dP/dt=0: P=0 and P=2000.

Simon
In population terms, P=0 means extinction, and P=2000 is the carrying capacity—the maximum sustainable population. To see growth or decline, we test intervals on a number line starting at 0. For P between 0 and 2000, dP/dt is positive, so population increases. For P > 2000, it's negative, so population decreases.

Hope
That makes intuitive sense: if you're below carrying capacity, the population grows; if you overshoot, it starts to decline. This logistic model is a great example of how differential equations capture real-world dynamics, even when we can't solve them explicitly.

Simon
So whether you're verifying a solution, finding general or particular solutions, or analyzing behavior with a sign chart, differential equations give us a powerful framework for understanding change. And there's a whole course dedicated to more advanced methods.

Hope
Absolutely. But for now, we've covered the essentials: what a DE is, order, solutions, initial conditions, and how to analyze them qualitatively. Great discussion, Simon!

Ask anything
We've read this whole study set, so questions about it get the best answers.