Lesson 5: Separation of variables

Solve dydx=2y−6\frac{dy}{dx} = 2y - 6 with y(0)=5y(0) = 5

SkillSeparation of variables

Worked example

  • Simple familiar
  • Technology free

Solve the differential equation dydx=2y−6\frac{dy}{dx} = 2y - 6, given that y(0)=5y(0) = 5. Express yy in terms of xx.

1 of 5 steps
  1. Step 1: Separate the variables

    ∫12y−6 dy=∫1 dx\int \frac{1}{2y - 6}\,dy = \int 1\,dx

Try a similar one

A fresh question of the same kind, checked as you answer, with hints and a full solution.

Method

  1. Divide by g(y)g(y) and integrate both sides.

  2. Exponentiate, absorbing ±ec\pm e^{c} into one constant AA.

  3. Use the initial condition, then check by substitution.

Watch out for

  • Forgetting the 12\frac{1}{2} from ∫12y−6 dy\int \frac{1}{2y - 6}\,dy.

  • Writing y=3+e2x+cy = 3 + e^{2x} + c: the constant multiplies the exponential.

Save your progress with a free account