Separable first order differential equations

Separable first order differential equations

Spec 6.4 · Edexcel International A Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • An equation is separable if dydx=f(x)g(y)\dfrac{dy}{dx}=f(x)g(y): a function of xx times a function of yy.
  • Move all yy terms to one side with dydy and all xx terms to the other with dxdx, then integrate both sides.
  • Put one +c+c on one side only; the result is the general solution.
  • An initial condition fixes cc and gives the particular solution.
  • Rate-of-change problems (growth, decay, cooling, draining) give separable equations: use one condition for cc, a second for kk.

Recognising a separable equation

If dydx\dfrac{dy}{dx} is a product of a function of xx and a function of yy, you can separate the variables and integrate.

A first order equation is separable if it can be written dydx=f(x)g(y)\dfrac{dy}{dx}=f(x)g(y).

Then you start separating the variables: divide by g(y)g(y) and multiply by dxdx, so that no xx is left on the yy side.

Sums such as x+yx+y or sin⁡(x+y)\sin(x+y) cannot be written as a product, so those equations are not separable.

−2−1.5−1−0.50.511.52−6−4−2246xyy = A e^(x²/2)
dy/dx = xy is separable: dividing by y and integrating gives y = A e^(x²/2). Each value of A (slider) is a different solution curve.
  • dydx=f(x)g(y)\dfrac{dy}{dx}=f(x)g(y)∫1g(y) dy=∫f(x) dx\displaystyle\int\dfrac{1}{g(y)}\,dy=\int f(x)\,dx

Worked example

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

Which equation is separable?

General solutions and the constant

Integrating gives a general solution with one arbitrary constant. It describes a whole family of curves, one for each value of the constant.

The general solution contains an arbitrary constant. Put a single +c+c on one side only; two constants merge into one.

For dydx=2xy\dfrac{dy}{dx}=2xy: ∫1y dy=∫2x dx\int\dfrac1y\,dy=\int2x\,dx gives ln⁡∣y∣=x2+c\ln|y|=x^2+c, so y=Aex2y=Ae^{x^2} where A=±ecA=\pm e^c.

For dydx=ex−y\dfrac{dy}{dx}=e^{x-y}, write ex−y=exe−ye^{x-y}=e^xe^{-y}, so ∫ey dy=∫ex dx\int e^y\,dy=\int e^x\,dx and ey=ex+ce^y=e^x+c.

−1.5−1−0.50.511.52468xyy = Ae^(x²)
The general solution y=Aex2y=Ae^{x^2} is a family of curves. Drag the slider to change AA.
  • ∫1y dy\displaystyle\int\dfrac1y\,dyln⁡∣y∣\ln|y|
  • ∫yn dy\displaystyle\int y^n\,dyyn+1n+1\dfrac{y^{n+1}}{n+1}
  • ∫eay dy\displaystyle\int e^{ay}\,dy1aeay\dfrac1a e^{ay}

How many arbitrary constants should the general solution of a first order equation contain?

Particular solutions

Substitute the given point into the general solution to find the constant, then rearrange to the form asked for.

A particular solution is the member of the family that passes through a given point, called an initial condition.

Substitute the values to find cc, then rearrange.

Write the constant as a logarithm when it helps, so that you can use the log laws before exponentiating.

0.20.40.60.811.21.41.61.82246810xy(1, 2)y = (5x² − 1)/2
The particular solution passes through the given point (1,2)(1,2).

Worked example

Solve dydx=2y+1x\dfrac{dy}{dx}=\dfrac{2y+1}{x}, x>0x>0, given that the curve passes through (1,2)(1,2).

After integrating you have ln⁡∣y∣=x+c\ln|y|=x+c and y=3y=3 when x=0x=0. What is cc?

Modelling with separable equations

Rates of change in context give separable equations. Use the first condition to find the constant and the second to find kk.

In exponential change, dNdt=kN\dfrac{dN}{dt}=kN gives N=AektN=Ae^{kt}.

In Newton's law of cooling, dθdt=−k(θ−θ0)\dfrac{d\theta}{dt}=-k(\theta-\theta_0) gives θ=θ0+Ae−kt\theta=\theta_0+Ae^{-kt}, and θ→θ0\theta\to\theta_0 as t→∞t\to\infty.

For any model, use the data in order: first the initial condition for the constant, then the second condition for kk.

24681012141618202212345xy(0, 4)(10, 1)(20, 0)h = (2 − 0.1t)²
Water height: h=(2−0.1t)2h=(2-0.1t)^2 falls to zero at t=20t=20.

Exponential change

Equation:
dNdt=kN\frac{dN}{dt}=kN
Solution:
N=AektN=Ae^{kt}
Long-term behaviour:
Grows if k>0k>0, decays if k<0k<0

Newton cooling

Equation:
dθdt=−k(θ−θ0)\frac{d\theta}{dt}=-k(\theta-\theta_0)
Solution:
θ=θ0+Ae−kt\theta=\theta_0+Ae^{-kt}
Long-term behaviour:
Tends to θ0\theta_0

Worked example: a draining tank

The height hh of water satisfies dhdt=−kh\dfrac{dh}{dt}=-k\sqrt h. Given h=4h=4 at t=0t=0 and h=1h=1 at t=10t=10, find when the tank empties.

dNdt=−0.3N\dfrac{dN}{dt}=-0.3N. Does NN grow or decay?

Try an exam question

Given that y=0y=0 when x=1x=1, solve the differential equation dydx=6xe−2y\dfrac{dy}{dx}=6xe^{-2y}, giving yy in terms of xx.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which of the following is the general solution of the differential equation?

1 mark, marked against the mark scheme

Revision notes