All revision notes topics

5.18 Differential equationsIB Maths: Analysis and Approaches HL: Revision notes

Section 1

First order differential equations

A differential equation links a function with its derivatives. A first order equation involves only dydx\frac{dy}{dx}, for example dydx=x+y\frac{dy}{dx}=x+y.

  • The general solution contains an arbitrary constant: a whole family of curves.
  • A particular solution uses an initial condition (e.g. y=2y=2 when x=0x=0) to fix the constant.

You can always check a solution by differentiating it and substituting back into the equation.

Key termsdifferential equationfirst ordergeneral solutionparticular solution
Exam tip

Always put the constant in as soon as you integrate, and use the initial condition before rearranging if that is easier.

Section 2

Euler's method

When a differential equation dydx=f(x,y)\frac{dy}{dx}=f(x,y) cannot be solved exactly, Euler's method steps along tangent lines with a fixed step length hh: yn+1=yn+h f(xn,yn),xn+1=xn+h.y_{n+1}=y_n+h\,f(x_n,y_n),\qquad x_{n+1}=x_n+h. For dydx=x+y\frac{dy}{dx}=x+y, y(0)=1y(0)=1, h=0.1h=0.1: y1=1+0.1(1)=1.1y_1=1+0.1(1)=1.1, then y2=1.1+0.1(0.1+1.1)=1.22y_2=1.1+0.1(0.1+1.1)=1.22. The exact value is f(0.2)=2e0.2−1.2≈1.243f(0.2)=2e^{0.2}-1.2\approx1.243.

If the solution curve is concave up (d2ydx2>0\frac{d^{2}y}{dx^{2}}>0), tangents lie below it and Euler underestimates; concave down gives an overestimate. A smaller hh usually gives a better approximation but needs more steps.

Key termsEuler's methodstep length
Common mistake

Using the new xx-value with the old yy-value in the gradient. Both must come from the same point (xn,yn)(x_n,y_n).

Exam tip

Set out a table of nn, xnx_n, yny_n, f(xn,yn)f(x_n,y_n) and use your GDC's recursion or table features in Paper 2.

Section 3

Separating the variables

If dydx=g(x)h(y)\frac{dy}{dx}=g(x)h(y), rearrange and integrate each side: ∫1h(y) dy=∫g(x) dx.\int\frac{1}{h(y)}\,dy=\int g(x)\,dx. Example: dydx=3x2y⇒ln⁡∣y∣=x3+c⇒y=Aex3\frac{dy}{dx}=3x^{2}y\Rightarrow\ln|y|=x^{3}+c\Rightarrow y=Ae^{x^{3}}.

The logistic equation dndt=kn(a−n)\frac{dn}{dt}=kn(a-n) is separable. Use partial fractions: 1n(a−n)=1a(1n+1a−n)\frac{1}{n(a-n)}=\frac1a\left(\frac1n+\frac{1}{a-n}\right). The solution has the form n=a1+Be−aktn=\frac{a}{1+Be^{-akt}}, which levels off at the carrying capacity aa. Growth is fastest when n=a2n=\frac a2.

Key termsseparablelogistic equationcarrying capacity
Common mistake

Writing y=ex3+cy=e^{x^{3}}+c. The constant is added before exponentiating, so it becomes a multiplier: ex3+c=Aex3e^{x^{3}+c}=Ae^{x^{3}}.

Exam tip

For logistic questions, ln⁡na−n\ln\frac{n}{a-n} appears; combine the logs before using the initial condition.

Section 4

Homogeneous equations: y=vxy=vx

A homogeneous differential equation can be written dydx=f(yx)\frac{dy}{dx}=f\left(\frac yx\right), e.g. dydx=x2+y2xy=xy+yx\frac{dy}{dx}=\frac{x^{2}+y^{2}}{xy}=\frac xy+\frac yx.

Substitute y=vxy=vx, so dydx=v+xdvdx\frac{dy}{dx}=v+x\frac{dv}{dx} (product rule). The equation becomes separable in vv and xx: v+xdvdx=f(v)  ⇒  ∫1f(v)−v dv=∫1x dx.v+x\frac{dv}{dx}=f(v)\;\Rightarrow\;\int\frac{1}{f(v)-v}\,dv=\int\frac1x\,dx. Finally replace vv by yx\frac yx. For the example with y(1)=2y(1)=2: v22=ln⁡x+2\frac{v^{2}}{2}=\ln x+2, so y=x2ln⁡x+4y=x\sqrt{2\ln x+4}.

Key termshomogeneous differential equationsubstitution y = vx
Common mistake

Writing dydx=dvdx\frac{dy}{dx}=\frac{dv}{dx} or vdvdxv\frac{dv}{dx}. Differentiate vxvx with the product rule.

Exam tip

Test for homogeneity: divide the top and bottom by the highest power of xx and check only yx\frac yx is left.

Section 5

Linear equations: the integrating factor

A linear first order equation has the form dydx+P(x)y=Q(x)\frac{dy}{dx}+P(x)y=Q(x). Multiply through by the integrating factor I(x)=e∫P(x) dx.I(x)=e^{\int P(x)\,dx}. The left-hand side then becomes the derivative of a product: ddx(yI)=QI\frac{d}{dx}\left(yI\right)=QI, so yI=∫QI dxyI=\int QI\,dx.

Example: dhdt+ht+1=6\frac{dh}{dt}+\frac{h}{t+1}=6. I=eln⁡(t+1)=t+1I=e^{\ln(t+1)}=t+1, so ddt(h(t+1))=6(t+1)\frac{d}{dt}\left(h(t+1)\right)=6(t+1), h(t+1)=3(t+1)2+Ch(t+1)=3(t+1)^{2}+C. With h(0)=5h(0)=5, C=2C=2 and h=3(t+1)+2t+1h=3(t+1)+\frac{2}{t+1}.

Key termslinear differential equationintegrating factor
Common mistake

Forgetting to put the equation in standard form first. For xdydx+2y=x3x\frac{dy}{dx}+2y=x^{3}, divide by xx to get P=2xP=\frac2x.

Common mistake

Adding +C+C only after dividing by II: yI=∫QI dx+CyI=\int QI\,dx+C, so the constant is also divided by II.

Must know

  • Euler: yn+1=yn+hf(xn,yn)y_{n+1}=y_n+hf(x_n,y_n); concave up means underestimate.
  • Separable: ∫1h(y)dy=∫g(x)dx\int\frac{1}{h(y)}dy=\int g(x)dx; include +c+c immediately.
  • Logistic dndt=kn(a−n)\frac{dn}{dt}=kn(a-n): partial fractions, limit aa, fastest growth at n=a2n=\frac a2.
  • Homogeneous: y=vxy=vx, dydx=v+xdvdx\frac{dy}{dx}=v+x\frac{dv}{dx}, then separate.
  • Linear: integrating factor e∫P dxe^{\int P\,dx}, then ddx(yI)=QI\frac{d}{dx}(yI)=QI.
  • Check any solution by differentiating and substituting back.

That's the notes covered.

Carry on to the next subtopic.