Leaving Certificate Applied Mathematics8.7 Solving separable differential equations

All books

8.7 Solving separable differential equations — Learn

Prerequisites: Section 3.5, integration reverses differentiation; Section 8.2, exponential growth and decay.

Objectives: recognise a separable differential equation; separate the variables; integrate both sides; find a general solution and a particular solution.

By the end of this section you can solve the growth and decay equations of the chapter from first principles, rather than reading the answer off a formula.

Separable equations

A differential equation is separable when it can be rearranged so that all the yy terms are on one side and all the xx terms are on the other:

dydx=f(x)g(y).\frac{dy}{dx} = f(x)g(y).

Here ff is a function of xx alone and gg is a function of yy alone.

The equation dydx=xy\dfrac{dy}{dx} = xy is separable, because it is xx times yy. So is dydx=xy\dfrac{dy}{dx} = \dfrac{x}{y}, and so is every equation in this chapter.

To solve a separable equation, divide both sides by g(y)g(y) and integrate with respect to xx:

∫1g(y) dydx dx=∫f(x) dx,\int \frac{1}{g(y)}\,\frac{dy}{dx}\,dx = \int f(x)\,dx,

which is usually written in the shorter form

∫1g(y) dy=∫f(x) dx.\int \frac{1}{g(y)}\,dy = \int f(x)\,dx.

Two standard integrals

Chapter 3 integrated powers of tt. Two more standard results are needed here, and both come from reversing a derivative you already know.

∫1y dy=ln⁡∣y∣+C\int \frac{1}{y}\,dy = \ln|y| + C

because the derivative of ln⁡y\ln y is 1y\dfrac{1}{y}.

∫ekt dt=ektk+C\int e^{kt}\,dt = \frac{e^{kt}}{k} + C

because the derivative of ektk\dfrac{e^{kt}}{k} is ekte^{kt}.

The first of these is why the solutions in this chapter contain logarithms before they contain exponentials. The two operations undo each other.

The general solution

Integrate each side, then tidy the constant. The constant from the left and the constant from the right combine into one.

Example 1. Solve dydx=xy\dfrac{dy}{dx} = xy.

Divide by yy and integrate:

∫1y dy=∫x dx,ln⁡∣y∣=x22+C.\int \frac{1}{y}\,dy = \int x\,dx, \qquad \ln|y| = \frac{x^2}{2} + C.

Raise ee to both sides. The constant becomes a multiplier, written A=eCA = e^C:

y=Aex2/2.y = Ae^{x^2/2}.

This is the general solution. Different values of AA give different curves, and every one of them obeys the equation.

Figure 1

The short segments show the gradient the equation gives at each point. Choose the starting point and the curve through it appears, so you can see that the constant is nothing more than which point you started from.

Example 2. Solve dydx=xy\dfrac{dy}{dx} = \dfrac{x}{y}.

Multiply both sides by yy:

y dy=x dx,y22=x22+C.y\,dy = x\,dx, \qquad \frac{y^2}{2} = \frac{x^2}{2} + C.

Multiply by 22 and rename the constant, K=2CK = 2C:

y2=x2+K,y=±x2+K.y^2 = x^2 + K, \qquad y = \pm\sqrt{x^2 + K}.

The sign is fixed later by an initial condition.

Example 3. Solve dydx=ex−y\dfrac{dy}{dx} = e^{x-y}.

Use the index law ex−y=exe−ye^{x-y} = e^xe^{-y}, then separate:

ey dy=ex dx,ey=ex+C.e^y\,dy = e^x\,dx, \qquad e^y = e^x + C.

Take logarithms:

y=ln⁡(ex+C).y = \ln(e^x + C).

The constant stays inside the logarithm, because eye^y is the quantity that was integrated.

Particular solutions

An initial condition gives the value of yy at one value of xx. It fixes the constant and turns the general solution into a particular solution.

Example 4. Find the particular solution of dydx=2xy\dfrac{dy}{dx} = 2xy for which y=3y = 3 when x=0x = 0.

The general solution is y=Aex2y = Ae^{x^2}. Substitute x=0x = 0, y=3y = 3:

3=Ae0=A,y=3ex2.3 = Ae^0 = A, \qquad y = 3e^{x^2}.

Example 5. A body falls through a fluid so that dvdt=9.8−2v\dfrac{dv}{dt} = 9.8 - 2v, with v=0v = 0 when t=0t = 0. Find vv in terms of tt.

Separate. Divide by 9.8−2v9.8 - 2v:

∫19.8−2v dv=∫dt,−12ln⁡∣9.8−2v∣=t+C.\int \frac{1}{9.8 - 2v}\,dv = \int dt, \qquad -\frac{1}{2}\ln|9.8 - 2v| = t + C.

Rearrange:

ln⁡∣9.8−2v∣=−2t+C′,9.8−2v=Ae−2t.\ln|9.8 - 2v| = -2t + C', \qquad 9.8 - 2v = Ae^{-2t}.

The condition v=0v = 0 at t=0t = 0 gives 9.8=A9.8 = A, so

v=4.9(1−e−2t).v = 4.9\left(1 - e^{-2t}\right).

The velocity approaches 4.94.9 m/s, the terminal velocity, where the drag balances gravity.

Progress check

Back to the chapter problem. The lake clears according to

dPdt=−0.05P,P=400 kg when t=0.\frac{dP}{dt} = -0.05P, \qquad P = 400\ \text{kg when } t = 0.
  1. Separate the equation and integrate both sides to find the general solution.
  2. Use the initial condition to find the particular solution.
  3. Set P=50P = 50 and solve for tt, the time to reach the safe level.

This is the same answer that Section 8.5 found from the equilibrium formula. The separation method shows where the exponential comes from.

You should now be able to

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.