ASCENTLEARNING
Join a weekly class
Skip to learning content
YEAR 12 · RATES OF CHANGE AND DIFFERENTIAL EQUATIONS · 22 MIN

Separation of variables

Solve separable differential equations while retaining equilibrium solutions and domain restrictions.

In this lesson

Before you start
  • Integration
  • Logarithm laws
  • Initial-value problems
01 / LEARN

Understand the idea.

Separate variables with care

A separable equation has the form y′=f⁡(x)⁢g⁡(y). Where g⁡(y)≠0, rearrange it to 1g⁡(y)d⁢y=f⁡(x)d⁢x and integrate each side in its own variable. Combine the two arbitrary constants into one.

Before dividing, inspect g⁡(y)=0. Its roots may give constant solutions that division would remove. Check those functions in the original equation and retain them when finding all solutions, even if the given initial condition later rules them out.

Choose a branch and verify

After integration, solve for y if possible and apply the initial condition. From ln∣⁢y⁢∣=H⁢(x)+C, exponentiation permits a signed multiplier in y=AeH⁢(x); replacing it automatically with a positive constant would lose negative solutions.

Choose the maximal interval containing the initial point where the original equation and the solution formula make sense. A denominator zero may stop continuation at a finite input. Differentiate the explicit solution and verify both the equation and initial value.

02 / WORKED EXAMPLES

See the method in action.

EXAMPLE 01

Worked example

Solve y′=2⁢x⁢y with y⁢(0)=3.

Worked solution

  1. 1

    Check the divided-out solution.

    y=0⇒y′=0=2⁢x⋅0

    The zero function is an equilibrium, but it fails the specified initial value 3.

  2. 2

    Separate and integrate the nonzero branch.

    d⁢yy=2⁢xd⁢x,ln∣⁢y⁢∣=x2+C

    On a nonzero solution branch, dividing by y separates the variables.

  3. 3

    Exponentiate and use the initial value.

    y=Aex2,3=Ae0⇒A=3

    A signed multiplier represents the branches before the initial condition selects the positive one.

  4. 4

    Verify the solution.

    y=3ex2,y′=6⁢xex2=2⁢x⁢yy⁢(0)=3

    The formula is defined for every real x and satisfies both requirements.

Answer

y=3ex2

EXAMPLE 02

Worked example

Solve y′=y2 with y⁢(0)=2.

Worked solution

  1. 1

    Separate the nonzero solution.

    y−2d⁢y=d⁢x,−1y=x+C

    The initial value is nonzero; the equilibrium y equals zero does not meet it.

  2. 2

    Apply the initial condition.

    −12=0+C,−1y=x−12

    Substituting y(0) equals 2 determines the integration constant.

  3. 3

    Solve and select the initial interval.

    y=21−2⁢x,x<12

    The denominator vanishes at one half; the connected interval containing zero lies to its left.

  4. 4

    Check the derivative.

    y′=4(1−2⁢x)2=y2,y⁢(0)=2

    The rational function satisfies the differential equation and initial value on the stated interval.

Answer

y=2⁢/⁢(1−2⁢x) on x<1⁢/2.

03 / YOUR TURN

Try it yourself.

Check your understanding

Solve y′=−3⁢y, y⁢(0)=5.

Show answer & reasoning

y=5e−3⁢x

Separating gives d⁢yy=−3d⁢x, hence ln∣⁢y⁢∣=−3⁢x+C and y=Ae−3⁢x. The condition y⁢(0)=5 fixes A=5.

Keep practising

6 worksheet questions · 12 marks

Read the questions online
  1. Solve y′=4⁢x⁢y with y⁢(0)=2.
    2 marks
  2. Solve y′=xy with y⁢(0)=3.
    2 marks
  3. Solve y′=(1+y2) with y⁢(0)=0. State the interval around zero.
    2 marks
  4. Find all constant solutions of y′=x⁢(y−2)⁢(y+1).
    2 marks
  5. Solve y′=−y2 with y⁢(0)=1.
    2 marks
  6. Solve y′=yx with y⁢(1)=−2, on x>0.
    2 marks
Read the worked solutions

Equivalent correct methods earn the corresponding marks. Include units where asked.

  1. Solve y′=4⁢x⁢y with y⁢(0)=2.
    2 marks

    d⁢yy=4⁢xd⁢x gives ln∣⁢y⁢∣=2x2+C.

    Initial data gives multiplier 2.

    y=2e2x2
  2. Solve y′=xy with y⁢(0)=3.
    2 marks

    yd⁢y=xd⁢x gives y2=x2+C.

    C=9; the positive branch matches y⁢(0)=3.

    y=x2+9
  3. Solve y′=(1+y2) with y⁢(0)=0. State the interval around zero.
    2 marks

    d⁢y1+y2=d⁢x gives arctany=x+C.

    C=0 and tangent is finite only between its adjacent poles.

    y=tanx, −π2<x<π2.
  4. Find all constant solutions of y′=x⁢(y−2)⁢(y+1).
    2 marks

    A constant solution has zero derivative.

    Both factors give values making the right side zero for every x.

    y=2 and y=−1.
  5. Solve y′=−y2 with y⁢(0)=1.
    2 marks

    y−2d⁢y=−d⁢x gives −1y=−x+C.

    C=−1, giving the result and domain.

    y=1x+1 on x>−1.
  6. Solve y′=yx with y⁢(1)=−2, on x>0.
    2 marks

    d⁢yy=d⁢xx gives ln∣⁢y⁢∣=lnx+C.

    y=A⁢x and A=−2; retaining a signed multiplier is essential.

    y=−2⁢x
Checking saved progress…
Curriculum reference & lesson scope

SACE Board of South Australia

Stage 2 Specialist Mathematics topic 6.1–6.2, with the approved school-level rates, differential-equation and motion applications.

Official curriculum source ↗

Save your next step.

Create a free account to save your learning progress. Lessons and downloads stay free, with or without an account.

Create free account