Method of Separation of Variables
- Separate variables:
- Integrate both sides:
- Add constant of integration
- Solve for if possible
Why the Separation Is Legitimate
The step is shorthand for a chain-rule argument. Start from and divide both sides by :
The left side is exactly â the derivative of an antiderivative of , composed with , by the chain rule. Integrating both sides with respect to then gives , which is the same statement as step 2 written with an integral sign on each side.
That argument requires on the interval considered. Dividing by a quantity that vanishes silently discards solutions: in , dividing by loses the constant function , which satisfies the equation for all because both sides are then 0. The correct general solution is with arbitrary, including â the lost solution reappears the moment you allow the constant to be zero. Always check whether gives an equilibrium solution before you divide.
Example: Basic Separation
Solve .
Exponentiating both sides turns into , and absorbing the sign into the constant gives one formula for both signs of . If the initial value requires to be negative, is negative; if at the start, . One family covers all three cases.
Example: Separation with Initial Condition
Solve with .
The initial value selected one branch: describes two curves, and , and picks the upper one. Had the condition been , the answer would be the negative root. This is the practical difference between a general solution (a family) and a particular solution (one member chosen by a condition), and it mirrors the constant of an indefinite integral.
Note also that is not a solution here: substituting into gives division by zero. The separation step divided by , and in this problem no solution was lost, because never vanishes on the branch we keep.
Example: More Complex Separation
Solve .
Completing the square on both sides produces a hyperbola with vertex offset to the line . Writing the answer this way makes the domain explicit: for the curve exists for every , while for the solution is confined to , where the right-hand side stays non-negative.
Recognising the Standard Forms
| Form | What to do | Resulting integral |
|---|---|---|
| divide by | ||
| cross-multiply | ||
| set | , separable in and | |
| shift origin to the intersection point | homogeneous equation, set |
The third row needs care: differentiating with respect to gives , so , and the original equation becomes a separable one in and . For the fourth row, the numerator and denominator must both vanish at the same point for the shift to work; when they are genuinely parallel lines, the substitution is the right tool instead.
Verifying a Solution by Substitution
A solution claim is proved by putting it back into the differential equation. Two independent checks â a finite difference and a computer algebra solver â make a wrong constant or a lost sign obvious.
import math
# Claimed solution of dy/dx = x*y: y = A * exp(x^2 / 2)
def check(x0, y0, h=1e-6):
A = y0 / math.exp(x0 * x0 / 2)
def y(x):
return A * math.exp(x * x / 2)
numeric = (y(x0 + h) - y(x0 - h)) / (2 * h)
return numeric, x0 * y(x0)
print([round(v, 6) for v in check(1.5, 2.0)])
import math
# Claimed solution of dy/dx = x/y with y(0)=2: y = sqrt(x^2 + 4)
for x in (0.0, 1.0, 2.0, 3.0):
y = math.sqrt(x * x + 4)
h = 1e-6
numeric = (math.sqrt((x + h) ** 2 + 4) - math.sqrt((x - h) ** 2 + 4)) / (2 * h)
print(x, round(numeric, 6), round(x / y, 6))
Each row prints the finite-difference slope and the right-hand side of the differential equation; when they agree to six decimals the solution passes the test at that point. A computer algebra system can go one step further and solve the equation from scratch, which is the strongest check of all:
import sympy as sp
x = sp.Symbol('x')
y = sp.Function('y')
print(sp.dsolve(sp.Eq(sp.Derivative(y(x), x), x / y(x)), y(x)))
The solver returns the same family (up to sign), confirming the hand separation.
Common Mistakes
Dividing by g(y) without checking whether g(y) = 0
Fix: Test the vanishing factor for constant solutions first; in dy/dx = xy the solution y = 0 is recovered only by allowing the constant A to be zero.
Forgetting the constant of integration
Fix: Add + C on whichever side you integrate first â without it you have one particular curve, not the general solution.
Keeping both branches of a square root
Fix: Apply the initial condition to select the sign; y(0) = 2 forces y = +sqrt(x^2 + 4), and only one branch satisfies it.
Key Takeaways
- A separable equation writes as dy/dx = f(x)g(y) and is solved by dividing by g(y), then integrating each side.
- The division is legal only where g(y) is non-zero; check for equilibrium solutions lost by that step.
- Integrating produces a constant C, and the initial condition fixes it â before you simplify or take roots.
- Verify the final answer by substituting it back into the differential equation, numerically or symbolically.
Extended Learning: Beyond the Basics
Key Concepts Summary
This lesson covers fundamental concepts that serve as building blocks for more advanced topics. Master these basics before moving to intermediate and advanced material.
Prerequisite Knowledge
Before studying this topic in depth, ensure you understand:
- Basic definitions and terminology
- Core formulas and their derivations
- Common applications in real-world scenarios
- Typical pitfalls and misconceptions
Step-by-Step Walkthrough
Let us work through a complete example to solidify understanding:
Step 1: Identify the problem type. Determine which category this problem falls into and which approach is most appropriate.
Step 2: Apply the relevant formula. Substitute known values into the appropriate equation, paying attention to units and constraints.
Step 3: Simplify and solve. Work through the algebra step by step, checking each intermediate result.
Step 4: Verify the answer. Check that the solution satisfies the original conditions and makes logical sense.
Common Mistakes to Avoid
- Misidentifying the problem type â Always start by categorizing the problem
- Incorrect formula application â Verify the formula applies to your specific case
- Unit errors â Always check units are consistent throughout
- Sign errors â Pay careful attention to positive and negative values
- Rounding too early â Keep full precision until the final answer
- Forgetting constraints â Check that solutions satisfy all given conditions
Real-World Applications
Understanding this concept is essential for:
- Advanced problem solving in examinations
- Building intuition for more complex topics
- Developing analytical thinking skills
- Applying mathematical reasoning to practical situations
Practice Exercises
- Basic: Solve 5 problems of increasing difficulty using the core concept.
- Intermediate: Apply the concept to word problems with multiple steps.
- Advanced: Combine this concept with 2-3 other topics in a comprehensive problem.
- Challenge: Create your own problem that requires this concept plus additional knowledge.
Interview and Exam Tips
- Common question patterns: Identify which exam or interview formats test this topic
- Time management: Practice completing problems within time constraints
- Common traps: Know the typical mistakes examiners set as distractors
- Verification strategy: Develop a quick method to check your answer
Related Topics
- Previous Topic â Build on the foundation laid here
- Next Topic â See how this concept extends to more advanced material
- Practice Problems â Additional exercises with solutions
- Video Explanation â Visual walkthrough of key concepts
Quick Reference Card
| Concept | Formula/Rule | Key Insight | Common Use |
|---|---|---|---|
| Core Definition | See main text | Understand the intuition | Foundation for all applications |
| Key Formula | See main text | Memorize the derivation | Direct problem solving |
| Special Case | See main text | Recognize when it applies | Simplifies complex problems |
| Edge Case | See main text | Know the limitations | Avoids errors |
Further Reading
For students who want to go deeper:
- Standard textbooks on the subject
- Research papers applying this concept
- Online courses with video explanations
- Practice problem collections with detailed solutions