Solving separable differential equations
A separable differential equation is a first-order equation whose variables can be rearranged so that every expression involving is with and every expression involving is with . Integration then gives a family of solution curves.
The standard form is
Where , rearrange it as
and integrate both sides:
This lesson is about solving the equation. For what a differential equation says about a real situation, continue to interpreting differential-equation models.
Prerequisites
Section titled “Prerequisites”You should be able to:
- integrate powers, exponentials and reciprocal functions using integration basics
- use integration by substitution
- rearrange equations involving logarithms and exponentials
- apply an initial condition to find a constant
- differentiate with the chain rule to check a solution
What does solving mean?
Section titled “What does solving mean?”An equation such as
does not ask for one number. It asks for functions whose gradient at each point equals . There is usually a family of such functions, distinguished by an arbitrary constant.
An initial condition, such as when , selects one member of the family. It is often written .
The method
Section titled “The method”For :
- Separate the variables, putting the terms with and the terms with .
- Integrate both sides.
- Write just one arbitrary constant, usually on the right.
- Rearrange for if an explicit solution is required and possible.
- Use any initial condition to find the constant.
- Check by differentiating and substituting into the original equation.
The rearrangement with and is a compact way to perform a valid chain-rule substitution. It is not simply cancelling decorative symbols.
Worked example 1: separate and integrate
Section titled “Worked example 1: separate and integrate”Solve
For , divide by and multiply by :
Integrate:
Exponentiating gives
Rather than carrying the positive quantity and a separate sign, absorb both into a new non-zero constant :
The division by excluded , but also satisfies the original equation. Including it amounts to allowing . Thus the complete family is
Check:
Worked example 2: use an initial condition
Section titled “Worked example 2: use an initial condition”Solve
Separate the variables:
Integrate both sides:
It is convenient to multiply through by and rename the arbitrary constant:
Apply :
so . Hence
Taking a square root creates two algebraic branches, but the initial condition selects the positive branch:
Check by implicit differentiation:
Implicit and explicit solutions
Section titled “Implicit and explicit solutions”An explicit solution has isolated, such as
An implicit solution gives a relationship between and , such as
Both forms can be valid. Do not force an implicit equation into an awkward or impossible explicit form unless the question asks for in terms of .
Worked example 3: an implicit solution
Section titled “Worked example 3: an implicit solution”Find the solution of
that passes through . Give your answer implicitly.
Separate:
Integrate:
Use :
so . Multiplying by gives the cleaner implicit answer
There is no benefit in trying to solve this cubic for .
Worked example 4: logarithms and algebra
Section titled “Worked example 4: logarithms and algebra”Solve
For ,
Therefore
Using the initial condition before exponentiating is efficient:
Thus
Since at , the relevant branch is positive:
Hence
The excluded constant function also solves the differential equation, but it cannot satisfy .
Worked example 5: a less obvious separation
Section titled “Worked example 5: a less obvious separation”Solve
First isolate the derivative:
For , separate:
Integrate. The right side uses the reverse chain rule:
Use , :
so . Therefore
Rearranging,
This formula is valid only where its denominator is non-zero. The interval containing the initial point ends when
So the solution through is defined on
This is a useful A* detail: a solution formula and its interval of validity are not always the same thing.
Do not lose constant solutions
Section titled “Do not lose constant solutions”Dividing by an expression involving may discard solutions for which that expression is zero.
For example, consider
Separating by division gives
but this assumes . Before dividing, test its zeros in the original equation:
are constant solutions because each makes both sides zero. They must be recorded separately if the complete solution set is required.
The same warning applies when cancelling a factor. Always ask: what values made the factor zero?
Common misconceptions
Section titled “Common misconceptions”Integrating term by term
Section titled “Integrating dydx\frac{dy}{dx}dxdy term by term”From
it is wrong to write . The variables must first be separated:
Adding two independent constants
Section titled “Adding two independent constants”Writing
is not incorrect, but only the difference matters. Replace it with one constant:
Forgetting the absolute value
Section titled “Forgetting the absolute value”The integral is
not automatically . An initial condition may later determine whether the relevant branch is positive or negative.
Choosing both square-root branches
Section titled “Choosing both square-root branches”If , then describes two branches. A non-zero initial value selects one branch. Do not leave when the condition determines the sign.
Applying the condition too early
Section titled “Applying the condition too early”First integrate to obtain the family, then substitute the given and values. Never put the initial values into the differential equation and expect to determine the integration constant, because the constant has not appeared yet.
Self-check
Section titled “Self-check”1. Recognise separable equations
Section titled “1. Recognise separable equations”Which equations are separable?
Answer
(a) and (c) are separable:
Equation (b) is not separable in its given form because cannot be written as a product of a function of and a function of .
2. Find a general solution
Section titled “2. Find a general solution”Solve
Answer
For ,
Hence
and
Allowing includes the constant solution .
3. Apply an initial condition
Section titled “3. Apply an initial condition”Given
find explicitly.
Answer
Separate and integrate:
Using gives . Therefore
so
4. Spot the missing solutions
Section titled “4. Spot the missing solutions”Which solutions could be lost when separating
Answer
Division by excludes and . Both are constant solutions of the original equation:
5. Verify a solution
Section titled “5. Verify a solution”Show that
satisfies wherever it is defined.
Answer
Differentiate using the chain rule:
Also,
The expressions agree. The solution is not defined at .
Exam checklist
Section titled “Exam checklist”- Confirm that the equation can be written as .
- Separate completely before integrating.
- Use one arbitrary constant.
- Check values excluded by division for constant solutions.
- Apply the initial condition to the integrated equation.
- Select the correct branch after taking roots or exponentiating.
- Give an implicit answer unless an explicit form is requested.
- Differentiate your result to check it against the original equation.
Next steps
Section titled “Next steps”Use interpreting differential-equation models to connect solution families and initial conditions to growth, decay and other real processes. Revisit integration by substitution if either side of a separated equation is difficult to integrate, and use checking answers to strengthen substitution, differentiation and domain checks.