2. First-Order Linear0%

Differential Equations · Topic 2 of 5

2. First-Order Linear

Video coming soon2 worked examples

Theory

A first-order linear equation has the standard form dydx+P(x)y=Q(x)\frac{dy}{dx} + P(x)\,y = Q(x). Multiply through by the integrating factor:

I=ePdxI = e^{\int P\,dx}

The left side then becomes an exact derivative, ddx(Iy)\frac{d}{dx}(Iy), so integrating gives Iy=IQdxIy = \int IQ\,dx.

The Golden Rule: put the equation in standard form (coefficient of dydx\frac{dy}{dx} equal to 1) before reading off PP, then multiply by ePdxe^{\int P\,dx} and recognise the left side as ddx(Iy)\frac{d}{dx}(Iy).

⚠️ Common Examiner Traps

  • Not in standard form: divide through so the dydx\frac{dy}{dx} coefficient is 1 before identifying PP.
  • Integrating factor: use ePdxe^{\int P\,dx} with no separate constant.
  • The left side: after multiplying, it collapses to ddx(Iy)\frac{d}{dx}(Iy) — use that directly.

Worked examples

Example 1

Solve dydx+1xy=3x\dfrac{dy}{dx} + \dfrac{1}{x}y = 3x for x>0x > 0.

Step 1: Here P=1xP = \frac{1}{x}, so the integrating factor is:

I=e1xdx=elnx=xI = e^{\int \frac{1}{x}\,dx} = e^{\ln x} = x

Step 2: Multiply through; the left side becomes ddx(xy)\frac{d}{dx}(xy):

ddx(xy)=3x2\frac{d}{dx}(xy) = 3x^2

Step 3: Integrate and solve for yy:

xy=x3+c    y=x2+cxxy = x^3 + c \implies y = x^2 + \frac{c}{x}

Example 2

Solve dydxy=e2x\dfrac{dy}{dx} - y = e^{2x}.

Step 1: Here P=1P = -1, so the integrating factor is I=e1dx=exI = e^{\int -1\,dx} = e^{-x}.

Step 2: Multiply through; the left side becomes ddx(exy)\frac{d}{dx}(e^{-x}y):

ddx(exy)=exe2x=ex\frac{d}{dx}\bigl(e^{-x}y\bigr) = e^{-x}e^{2x} = e^{x}

Step 3: Integrate and solve:

exy=ex+c    y=e2x+cexe^{-x}y = e^{x} + c \implies y = e^{2x} + ce^{x}