Skip to main content
ScotlandMathsSyllabus dot point

How do you solve a first-order differential equation that is separable or linear?

Solve first-order differential equations by separating the variables and by the integrating-factor method for linear equations, find particular solutions from initial conditions, and apply differential equations to growth and decay models.

A focused answer to the SQA Advanced Higher Mathematics first-order differential equations content, covering separable equations, the integrating-factor method for linear first-order equations, finding particular solutions from initial conditions, and applications to growth and decay.

Generated by Claude Opus 4.811 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Separable equations
  3. Linear equations and the integrating factor
  4. Particular solutions and modelling
  5. Choosing between the two methods
  6. Try this

What this dot point is asking

The SQA wants you to solve first-order differential equations of two kinds: those you can solve by separating the variables, and linear equations you solve with an integrating factor. You also need to find a particular solution from an initial condition and apply the method to real growth and decay problems.

Separable equations

An equation is separable when you can get all the yy terms (with dydy) on one side and all the xx terms (with dxdx) on the other. Once separated, you integrate each side independently and add a single constant.

Linear equations and the integrating factor

A first-order equation is linear when it is written as dydx+P(x)y=Q(x)\dfrac{dy}{dx} + P(x)y = Q(x), with yy and its derivative appearing to the first power only. The integrating factor turns the left-hand side into a single derivative you can integrate.

Particular solutions and modelling

The general solution carries an arbitrary constant; an initial or boundary condition fixes it, giving the particular solution that fits the situation. Growth and decay problems are the classic application: the statement "the rate of change is proportional to the amount present" becomes dNdt=kN\dfrac{dN}{dt} = kN, a separable equation whose solution is N=N0ektN = N_0 e^{kt}.

Choosing between the two methods

Before solving, decide which method fits. If you can split the equation so that every yy sits with dydy and every xx with dxdx, it is separable and direct integration finishes it. If the yy term cannot be detached from an xx term but the equation is linear in yy, write it in the standard form dydx+P(x)y=Q(x)\dfrac{dy}{dx} + P(x)y = Q(x) and use the integrating factor. Some equations are both, and either route works; many are only one. Always rearrange into the standard linear form first, because the coefficient of dydx\dfrac{dy}{dx} must be 11 before you read off P(x)P(x).

A useful check on any solution is to differentiate it and substitute back: a correct general solution must satisfy the original equation for every value of the arbitrary constant. This catches sign slips and missing factors, and it is worth the few seconds in an exam where method marks ride on a clean final line.

Try this

Q1. Solve dydx=3y\dfrac{dy}{dx} = 3y. [2 marks]

  • Cue. Separable: 1ydy=3dx\dfrac{1}{y}\,dy = 3\,dx, so lny=3x+C\ln y = 3x + C and y=Ae3xy = Ae^{3x}.

Q2. Find the integrating factor for dydx+1xy=1\dfrac{dy}{dx} + \dfrac{1}{x}y = 1, x>0x > 0. [2 marks]

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

Exam-style practice questions

Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AH style: separable4 marksSolve dydx=xy\dfrac{dy}{dx} = xy given that y=2y = 2 when x=0x = 0.
Show worked answer →

Separate the variables: 1ydy=xdx\dfrac{1}{y}\,dy = x\,dx (1 mark).

Integrate both sides: lny=12x2+C\ln|y| = \dfrac{1}{2}x^2 + C (1 mark).

Apply the condition y=2y = 2 at x=0x = 0: ln2=C\ln 2 = C (1 mark).

So lny=12x2+ln2\ln y = \dfrac{1}{2}x^2 + \ln 2, giving y=2ex2/2y = 2e^{x^2/2} (1 mark). Markers reward separation, integration of both sides, finding CC, and the explicit particular solution.

AH style: integrating factor5 marksSolve dydx+2xy=x\dfrac{dy}{dx} + \dfrac{2}{x}y = x, for x>0x > 0.
Show worked answer →

This is linear with P(x)=2xP(x) = \dfrac{2}{x}. Integrating factor I=e2xdx=e2lnx=x2I = e^{\int \frac{2}{x}\,dx} = e^{2\ln x} = x^2 (2 marks).

Multiply through: x2dydx+2xy=x3x^2\dfrac{dy}{dx} + 2xy = x^3, so ddx(x2y)=x3\dfrac{d}{dx}(x^2 y) = x^3 (1 mark).

Integrate: x2y=14x4+Cx^2 y = \dfrac{1}{4}x^4 + C (1 mark).

Divide by x2x^2: y=14x2+Cx2y = \dfrac{1}{4}x^2 + \dfrac{C}{x^2} (1 mark). Markers reward the integrating factor, the product-rule recognition, the integration, and solving for yy.

Related dot points

Sources & how we know this