Welcome to the World of Differential Equations!
In your mathematical journey so far, you’ve spent a lot of time solving for \(x\). In this chapter, we are going to level up. Instead of solving for a number, we are going to solve for an entire function. Differential Equations (DEs) are equations that involve derivatives (like \(\frac{dy}{dx}\)). They are incredibly important because they describe how things change over time—from the way a virus spreads through a population to how a bungee jumper bounces. Don't worry if this seems tricky at first; we will break it down step-by-step!
1. General and Particular Solutions
Before we dive into the methods, we need to understand what a "solution" looks like. In further maths, we usually deal with two types:
1. General Solution: This is the most flexible version of the answer. Because integration is involved, your answer will contain arbitrary constants (like \(A\), \(B\), or \(c\)). It represents a whole "family" of possible curves.
2. Particular Solution: This is a specific answer. If you are given boundary conditions (like "when \(x=0, y=5\)"), you can plug these into the general solution to find the exact values of those constants.
Quick Review: The Constant Mistake
Common Mistake: Forgetting to add the constant of integration (\(+c\)) the moment you integrate. If you wait until the end of the problem to "tack it on," your algebra will be wrong!
2. First Order DEs: The Integrating Factor Method
When you have an equation that looks like this:
\(\frac{dy}{dx} + P(x)y = Q(x)\)
we use a clever trick called an Integrating Factor. Think of this as a "magic multiplier" that turns the left-hand side of the equation into a single product rule derivative.
Step-by-Step Process:
1. Standardise: Make sure the equation is in the form \(\frac{dy}{dx} + P(x)y = Q(x)\). If there is a number or \(x\) in front of the \(\frac{dy}{dx}\), divide everything by it first!
2. Find the Integrating Factor (\(I\)): Use the formula: \(I = e^{\int P(x) dx}\).
3. Multiply: Multiply every single term in your standardised equation by \(I\).
4. Simplify: The left side will now automatically be the derivative of \((I \times y)\). We write this as \(\frac{d}{dx}(Iy)\).
5. Integrate: Integrate both sides with respect to \(x\): \(Iy = \int I \cdot Q(x) dx\).
6. Solve: Rearrange to get \(y = \dots\)
Example: Solve \(\frac{dy}{dx} + \frac{1}{x}y = 3\). Here, \(P(x) = \frac{1}{x}\). The Integrating Factor is \(e^{\int \frac{1}{x} dx} = e^{\ln x} = x\). Multiplying through gives \(x\frac{dy}{dx} + y = 3x\), which simplifies to \(\frac{d}{dx}(xy) = 3x\).
Key Takeaway: The Integrating Factor "unlocks" the equation. Always remember that \(e^{\ln f(x)} = f(x)\); this identity is your best friend here!
3. Second Order Homogeneous Equations
Now we move to equations with a second derivative: \(y'' + ay' + by = 0\). These are called homogeneous because they equal zero.
To solve these, we use an Auxiliary Equation (AE). We replace the derivatives with powers of \(m\):
\(am^2 + bm + c = 0\)
Just like a standard quadratic, the types of roots we get determine our solution:
- Case 1: Two Distinct Real Roots (\(m_1, 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 i\beta\))
Solution: \(y = e^{\alpha x}(A \cos \beta x + B \sin \beta x)\)
Did you know? Case 3 is what describes oscillations, like a swinging pendulum or a vibrating guitar string!
4. Second Order Non-Homogeneous Equations
What if the equation doesn't equal zero? \(y'' + ay' + by = f(x)\).
The total solution is made of two parts added together: General Solution = Complementary Function (CF) + Particular Integral (PI).
1. Complementary Function (CF): Solve the equation as if it equalled zero (using the AE method above).
2. Particular Integral (PI): Look at the "target" function \(f(x)\) and "guess" a trial solution.
Trial Integral Cheat Sheet:
- If \(f(x)\) is a Polynomial (e.g., \(x^2 + 3\)): Try \(y = \lambda x^2 + \mu x + \nu\).
- If \(f(x)\) is an Exponential (e.g., \(e^{5x}\)): Try \(y = \lambda e^{5x}\).
- If \(f(x)\) is Trig (e.g., \(\sin 2x\) or \(\cos 2x\)): Try \(y = \lambda \sin 2x + \mu \cos 2x\).
Important Trick: 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: The CF represents how the system behaves naturally, and the PI represents how the system reacts to an outside force.
5. Modelling with Differential Equations
In further maths, we use kinematics notation. Instead of \(x\) and \(y\), we often use displacement (\(x\)) and time (\(t\)):
- Velocity \(v = \dot{x} = \frac{dx}{dt}\)
- Acceleration \(a = \dot{v} = \ddot{x} = \frac{d^2x}{dt^2}\)
We apply Newton's Second Law (\(F = ma\)) to create equations. If a force depends on velocity (like air resistance), it creates a differential equation!
Simple Harmonic Motion (SHM)
A special case is \(\ddot{x} = -\omega^2 x\). This describes an object pulled back to a center point. The solution is always a wave:
\(x = A \cos(\omega t) + B \sin(\omega t)\) or \(x = R \sin(\omega t + \phi)\).
Damping
When you add "friction" to SHM, you get Damped Oscillations. This is usually modeled as \(a\ddot{x} + b\dot{x} + cx = 0\).
- Overdamping: The system returns slowly to equilibrium without bouncing (too much "friction").
- Critical Damping: The system returns to equilibrium as fast as possible without oscillating. (Used in car suspensions!)
- Underdamping: The system bounces back and forth, but the bounces get smaller and smaller.
Key Takeaway: The type of damping depends on the discriminant (\(b^2 - 4ac\)) of the auxiliary equation.
6. Linear Systems (Coupled Equations)
Sometimes you have two variables changing at once, like the population of foxes and rabbits. This gives you two equations that "talk" to each other:
\(\frac{dx}{dt} = ax + by + f(t)\)
\(\frac{dy}{dt} = cx + dy + g(t)\)
How to solve them:
1. Eliminate: Rearrange one equation to make one variable (say, \(y\)) the subject.
2. Differentiate: Differentiate that new equation with respect to \(t\).
3. Substitute: Plug these back into the other equation. You will end up with a single second-order DE for one variable (\(x\)).
4. Solve: Solve the second-order DE using the CF + PI method, then use that result to find the second variable.
Key Takeaway: Coupled systems can always be collapsed into one "mega" equation. Keep your algebra tidy!
Summary Checklist
• Can I find the Integrating Factor for a 1st order DE?
• Do I know the three cases for the Auxiliary Equation roots?
• Do I remember to add the PI to the CF for non-homogeneous equations?
• Can I identify Underdamped vs. Overdamped systems?
• Do I remember the "multiply by \(x\)" trick if my PI guess fails?
You've got this! Differential equations are just a set of recipes. Once you recognize the "dish" (the type of equation), just follow the steps to cook up the solution!