Welcome to Unit 7: Separation of Variables
If you have ever felt like a detective trying to solve a mystery, you are going to love this chapter! In Unit 7, we have been looking at differential equations, which are just equations that involve a derivative like \( \frac{dy}{dx} \). So far, we have looked at what they represent and how to visualize them using slope fields. Now, we are finally going to learn how to "solve" them to find the original function \( y \).
Don't worry if the term "differential equation" sounds intimidating. At its heart, this is just a puzzle where we use our integration skills from Unit 6 to work backward from a derivative to a function.
What is Separation of Variables?
Separation of variables is a technique used to solve differential equations where the expression for \( \frac{dy}{dx} \) can be rewritten as a product of a function of \( x \) and a function of \( y \).
Think of it like sorting laundry: we want to get all the \( y \)'s and the \( dy \) on one side of the equals sign, and all the \( x \)'s and the \( dx \) on the other side. Once they are "separated," we can integrate both sides.
The General Goal
If we have an equation in the form:
\( \frac{dy}{dx} = g(x) \cdot h(y) \)
We rearrange it to look like this:
\( \frac{1}{h(y)} dy = g(x) dx \)
Quick Review: Remember that \( \frac{dy}{dx} \) is not just a symbol; in this context, we treat it like a fraction that we can multiply or divide to move the pieces around.
Finding the General Solution (Topic 7.6)
A general solution is an equation that represents a whole family of functions. Because we use integration, the solution will always include a constant of integration, which we write as \( +C \).
The Step-by-Step Process
Step 1: Separate the variables. Move everything with a \( y \) (including \( dy \)) to the left and everything with an \( x \) (including \( dx \)) to the right. This usually involves multiplying or dividing.
Step 2: Integrate both sides. Place an integral symbol \( \int \) in front of both sides and find the antiderivatives.
Step 3: Add the constant \( +C \). Crucial Tip: You only need to add \( +C \) to the side with the \( x \). Technically, both sides have a constant, but we combine them into one single \( C \) on the right side.
Step 4: Solve for \( y \). Use algebra to isolate \( y \) so your answer looks like \( y = f(x) \). (Note: Sometimes on the AP exam, they might ask you to leave it in an implicit form, but usually, you want to solve for \( y \).)
Common Mistake to Avoid: Never, ever forget the \( +C \). On the AP Free-Response Questions (FRQs), if you forget the \( +C \) at the moment you integrate, you often lose almost all the points for that entire problem!
Key Takeaway
The General Solution describes all possible functions that satisfy the derivative, looking something like \( y = x^2 + C \).
Finding the Particular Solution (Topic 7.7)
Sometimes, we don't want a "family" of functions; we want the one specific function that passes through a specific point. This point is called an initial condition. When we find this specific function, it is called the particular solution.
How to find \( C \)?
Once you have integrated and added your \( +C \), you plug in the values from your initial condition (usually given as \( y(x_0) = y_0 \) or a point \( (x, y) \)) to solve for the numerical value of \( C \).
Example: If the initial condition is \( y(0) = 5 \), you plug in \( 0 \) for \( x \) and \( 5 \) for \( y \) after you have integrated, then find what \( C \) must be.
When should I solve for \( C \)?
You can solve for \( C \) as soon as you integrate, or you can wait until you have isolated \( y \). Most teachers recommend solving for \( C \) immediately after integrating while the algebra is still simple!
Did you know? Even though it’s called an "initial condition," the \( x \)-value doesn't have to be \( 0 \). It can be any point on the curve.
Step-by-Step Example
Find the particular solution for \( \frac{dy}{dx} = 2xy \) with the initial condition \( y(0) = 3 \).
1. Separate:
\( \frac{1}{y} dy = 2x dx \)
2. Integrate:
\( \int \frac{1}{y} dy = \int 2x dx \)
\( \ln|y| = x^2 + C \)
3. Use Initial Condition \( (0, 3) \) to find \( C \):
\( \ln|3| = 0^2 + C \)
\( C = \ln(3) \)
4. Solve for \( y \):
\( \ln|y| = x^2 + \ln(3) \)
\( e^{\ln|y|} = e^{x^2 + \ln(3)} \)
\( |y| = e^{x^2} \cdot e^{\ln(3)} \)
\( |y| = 3e^{x^2} \)
Since the initial condition \( y=3 \) is positive, we choose the positive version:
\( y = 3e^{x^2} \)
Tips for the AP Exam
1. Show your separation: You must show the step where the variables are separated. Just writing the integral isn't enough to earn the first point on the FRQ.
2. The Domain Matters: The particular solution is only valid on the interval containing the initial \( x \)-value where the function is continuous and differentiable. If your solution involves a square root or a logarithm, be mindful of where those functions are defined.
3. Exponential Growth: You will often see equations like \( \frac{dy}{dt} = ky \). This is a classic separation of variables problem that leads to the exponential model \( y = Ce^{kt} \). (We will dive deeper into this in Topic 7.8!)
4. Don't over-complicate: If the equation is \( \frac{dy}{dx} = x + 5 \), you don't need to "separate" by dividing. Just multiply the \( dx \) over! Separation of variables is only needed when \( y \) is on the right side of the equation.
Summary Checklist
- Did I move all \( y \)'s to the left and \( x \)'s to the right?
- Did I remember the \( +C \) immediately after integrating?
- Did I use the initial condition to solve for the specific value of \( C \)?
- Did I isolate \( y \) at the end if the question asked for \( y = f(x) \)?
Don't worry if this seems tricky at first! The algebra involved in isolating \( y \) (using logs and exponents) is often the hardest part. Practice your log rules, and you will be a master of differential equations in no time!