🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Separation of Variables

CBSE Class 12 MathsDifferential EquationsđŸŸĸ Free Lesson

Method of Separation of Variables

  1. Separate variables:
  2. Integrate both sides:
  3. Add constant of integration
  4. 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

FormWhat to doResulting integral
divide by
cross-multiply
set , separable in and
shift origin to the intersection pointhomogeneous 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.

python
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)])
python
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:

python
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

  1. Misidentifying the problem type — Always start by categorizing the problem
  2. Incorrect formula application — Verify the formula applies to your specific case
  3. Unit errors — Always check units are consistent throughout
  4. Sign errors — Pay careful attention to positive and negative values
  5. Rounding too early — Keep full precision until the final answer
  6. 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

  1. Basic: Solve 5 problems of increasing difficulty using the core concept.
  2. Intermediate: Apply the concept to word problems with multiple steps.
  3. Advanced: Combine this concept with 2-3 other topics in a comprehensive problem.
  4. 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

Quick Reference Card

ConceptFormula/RuleKey InsightCommon Use
Core DefinitionSee main textUnderstand the intuitionFoundation for all applications
Key FormulaSee main textMemorize the derivationDirect problem solving
Special CaseSee main textRecognize when it appliesSimplifies complex problems
Edge CaseSee main textKnow the limitationsAvoids 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
CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-11-14

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Need Expert CBSE Class 12 Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement