Welcome to the World of Differential Equations!
In this chapter, we move beyond simple algebra and start looking at how things change. A Differential Equation (DE) is just an equation that involves a rate of change (a derivative). Why is this important? Because almost everything in the real world—from how a cup of coffee cools down to how a bungee jumper bounces—is described by these equations. By the end of these notes, you’ll be able to solve these puzzles and predict how systems behave over time. Don't worry if this seems tricky at first; we will break it down into simple, manageable steps!
1. First Order Differential Equations: The Integrating Factor
You already know how to solve simple equations like \(\frac{dy}{dx} = 2x\). But what if the equation looks like this: \(\frac{dy}{dx} + P(x)y = Q(x)\)? We use a clever trick called the Integrating Factor.
The "Standard Form" Check
Before you do anything else, your equation must look exactly like this:
\(\frac{dy}{dx} + P(x)y = Q(x)\)
If there is a number or an \(x\) in front of the \(\frac{dy}{dx}\), you must divide the whole equation by it first! This is a very common mistake students make.
Step-by-Step: The Integrating Factor Method
- Find the Integrating Factor, denoted as \(I(x)\). The formula is: \(I(x) = e^{\int P(x) dx}\).
- Multiply every single term in your standard form equation by this \(I(x)\).
- The left-hand side of your equation now magically becomes the derivative of \((I(x) \cdot y)\). You can rewrite the equation as: \(\frac{d}{dx}(I(x) \cdot y) = I(x) \cdot Q(x)\).
- Integrate both sides with respect to \(x\).
- Rearrange to find \(y\). Don't forget your constant of integration (\(+C\))!
Quick Review Box:
If your solution has a \(+C\), it is called a General Solution (it represents a family of curves). If you are given coordinates (initial conditions) to find the specific value of \(C\), it is called a Particular Solution.
Key Takeaway: The Integrating Factor method "un-does" a product rule differentiation. Always remember to get into standard form before calculating \(I(x)\)!
2. Second Order Homogeneous Equations
Now we are looking at equations with a second derivative: \(a\frac{d^2y}{dx^2} + b\frac{dy}{dx} + cy = 0\). Because it equals zero, we call it Homogeneous.
The Auxiliary Equation
To solve these, we "guess" that the solution looks like \(y = e^{mx}\). This leads us to the Auxiliary Equation:
\(am^2 + bm + c = 0\)
You just solve this like a normal quadratic! The type of answers (roots) you get tells you what the solution looks like:
- Case 1: Two distinct real roots (\(m_1\) and \(m_2\))
Solution: \(y = Ae^{m_1x} + Be^{m_2x}\) - Case 2: One repeated real root (\(m\))
Solution: \(y = (A + Bx)e^{mx}\) - Case 3: Complex roots (\(m = \alpha \pm \beta i\))
Solution: \(y = e^{\alpha x}(A\cos(\beta x) + B\sin(\beta x))\)
Did you know? Case 3 is what happens when things oscillate, like a guitar string vibrating!
Key Takeaway: Solving a second-order homogeneous DE is as simple as solving a quadratic equation and picking the right "template" for the answer.
3. Second Order Non-Homogeneous Equations
What if the equation doesn't equal zero? \(a\frac{d^2y}{dx^2} + b\frac{dy}{dx} + cy = f(x)\).
The full solution is made of two parts joined together: \(y = \text{Complementary Function (CF)} + \text{Particular Integral (PI)}\).
How to solve it:
- Find the CF: Set the equation to zero and solve it just like the section above.
- Find the PI: This is a "guess" based on what \(f(x)\) looks like.
Common PI Guesses:
- If \(f(x) = \text{polynomial (e.g., } x^2)\), try \(y = px^2 + qx + r\).
- If \(f(x) = e^{kx}\), try \(y = \lambda e^{kx}\).
- If \(f(x) = \sin(kx)\) or \(\cos(kx)\), try \(y = p\cos(kx) + q\sin(kx)\).
Common Mistake to Avoid: If your "guess" for the PI is already part of your CF, it won't work! You must multiply your guess by \(x\) (or even \(x^2\)) to make it unique.
Key Takeaway: Think of the CF as the "natural" behavior of the system and the PI as the "response" to an outside force.
4. Modeling with DEs: SHM and Damping
Differential equations are the language of Kinematics. Remember these terms:
- Displacement = \(x\)
- Velocity = \(\dot{x}\) or \(\frac{dx}{dt}\)
- Acceleration = \(\ddot{x}\) or \(\frac{d^2x}{dt^2}\)
Simple Harmonic Motion (SHM)
The standard SHM equation is \(\ddot{x} = -\omega^2x\).
The solution is always: \(x = A\cos(\omega t + \phi)\) or \(x = p\cos(\omega t) + q\sin(\omega t)\).
Damped Oscillations
In the real world, friction slows things down. We model this as: \(a\ddot{x} + b\dot{x} + cx = 0\).
The roots of your Auxiliary Equation tell you how it slows down:
- Over-damping: Two real roots. The system slowly returns to equilibrium without bouncing. (Think: a door closer).
- Critical damping: One repeated root. The fastest way to return to equilibrium without oscillating. (Think: car suspension).
- Under-damping: Complex roots. The system bounces (oscillates) but the swings get smaller and smaller.
Key Takeaway: The math you do with quadratics directly predicts if a physical system will bounce, crawl, or settle perfectly.
5. Simultaneous First Order DEs
Sometimes two things depend on each other. For example, the number of rabbits (\(x\)) and foxes (\(y\)) in a forest. These are coupled equations.
How to Solve them:
- Start with two equations, like \(\frac{dx}{dt} = ax + by\) and \(\frac{dy}{dt} = cx + dy\).
- Differentiate the first equation again to get a \(\frac{d^2x}{dt^2}\) term.
- Substitute the second equation into this new one to "eliminate" \(y\).
- You will end up with a single Second Order DE for \(x\) that you can solve using the methods we learned earlier!
Encouraging Phrase: This is the "final boss" of the chapter, but it's just combining two things you already know: substitution and 2nd order DEs!
Key Takeaway: Simultaneous DEs are solved by turning them into one 2nd order DE. Solve for one variable first, then use that to find the second variable.
Summary Checklist
- Can you identify a first-order linear DE and find the Integrating Factor?
- Do you remember the 3 cases for the Auxiliary Equation?
- Can you pick a Particular Integral based on the right-hand side of the equation?
- Can you relate the math of 2nd order DEs to Over, Under, and Critical damping?
- Can you eliminate a variable to solve simultaneous DEs?