A-Level Further Maths 9231 / Topic 2.6 / AS & A Level
Change the variable, tame the equation.
Some differential equations look hopeless until you change a variable. Use \(y = ux\) to make an equation separable, \(x = e^{t}\) to turn an Euler equation into one with constant coefficients, and substitutions such as \(z = \frac{1}{y}\) or \(u = \frac{dy}{dx}\) to reach a first order linear equation. The substitution is always given: your job is the chain rule, the solving and the return to \(x\) and \(y\).
A given substitution swaps the hard equation for one you can already solve. With \(y = ux\): \(\frac{dy}{dx} = u + x\frac{du}{dx}\) (product rule), and the equation becomes separable in \(u\) and \(x\). With \(x = e^{t}\): \(x\frac{dy}{dx} = \frac{dy}{dt}\) and \(x^{2}\frac{d^{2}y}{dx^{2}} = \frac{d^{2}y}{dt^{2}} - \frac{dy}{dt}\), so \(ax^{2}y'' + bxy' + cy\) becomes an equation with constant coefficients in \(t\). With \(z = y^{n}\) or \(u = \frac{dy}{dx}\): differentiate the substitution, replace every term, and look for \(\frac{dz}{dx} + P(x)z = Q(x)\). Every time, finish by writing the answer in the ORIGINAL variables, and only then use the initial conditions (or convert them carefully).
Fig. 1: the three families of given substitution in this lesson. Each turns a new equation into a type you have already met: separable, constant coefficients, or first order linear
Section 01
y = ux: making an equation separable.
An equation such as \(\frac{dy}{dx} = \frac{x^{2} + y^{2}}{xy}\) cannot be separated as it stands. Every term on the right has the same total degree in \(x\) and \(y\), so the right side depends only on the ratio \(\frac{y}{x}\). Putting \(y = ux\), where \(u\) is a function of \(x\), turns that ratio into a single new variable.
The one derivative you need comes from the product rule, because \(u\) and \(x\) both vary:
\[y = ux \;\Rightarrow\; \frac{dy}{dx} = u + x\frac{du}{dx}.\]
The method is always the same: replace \(y\) by \(ux\) and \(\frac{dy}{dx}\) by \(u + x\frac{du}{dx}\), cancel the powers of \(x\), take \(u\) to the right so that \(x\frac{du}{dx}\) stands alone, separate, integrate, and finally replace \(u\) by \(\frac{y}{x}\). Use a given condition on \(y\) at the very end, or turn it into a condition on \(u\) first (\(u = \frac{y}{x}\)).
Worked example A ratio on the right
Use the substitution \(y = ux\) to solve \(\frac{dy}{dx} = \frac{x^{2} + y^{2}}{xy}\) for \(x \gt 0\), given that \(y = 2\) when \(x = 1\).
Use the substitution \(y = ux\) to solve \(x^{2}\frac{dy}{dx} = x^{2} + xy + y^{2}\) for \(x \gt 0\), given that \(y = 0\) when \(x = 1\). Give \(y\) in terms of \(x\).
Divide by \(x^{2}\): \(\frac{dy}{dx} = 1 + \frac{y}{x} + \frac{y^{2}}{x^{2}}\), so \[u + x\frac{du}{dx} = 1 + u + u^{2}.\]
The \(u\) terms cancel: \(x\frac{du}{dx} = 1 + u^{2}\).
Separate: \(\int \frac{1}{1 + u^{2}}\,du = \int \frac{1}{x}\,dx\), so \(\tan^{-1}u = \ln x + c\).
\(x = 1\), \(y = 0\) gives \(u = 0\), so \(0 = 0 + c\) and \(c = 0\).
\(u = \tan(\ln x)\), and \(y = ux\).
Answer: \(y = x\tan(\ln x)\)
Your turn
Use \(y = ux\) to find the general solution of \(x\frac{dy}{dx} = x + 2y\) for \(x \gt 0\).
\(u + x\frac{du}{dx} = 1 + 2u\), so \(x\frac{du}{dx} = 1 + u\) and \(\ln|1 + u| = \ln x + c\). Then \(1 + u = Ax\), so \(y = Ax^{2} - x\). Check: \(x(2Ax - 1) = 2Ax^{2} - x = x + 2(Ax^{2} - x)\).
Examiner trap
Writing \(\frac{dy}{dx} = \frac{du}{dx}\), or \(\frac{dy}{dx} = x\frac{du}{dx}\), forgets the product rule: \(y = ux\) is a product of two functions of \(x\), so \(\frac{dy}{dx} = u + x\frac{du}{dx}\). And an answer left in \(u\) is unfinished: the question asked for \(y\).
Section 02
x = et: Euler equations.
An equation of the form \(ax^{2}\frac{d^{2}y}{dx^{2}} + bx\frac{dy}{dx} + cy = f(x)\) has variable coefficients, so the auxiliary equation method does not apply directly. The substitution \(x = e^{t}\) (for \(x \gt 0\)) makes every coefficient constant, because each power of \(x\) is matched by a derivative of the same order.
Derive the two results with the chain rule, using \(\frac{dx}{dt} = e^{t} = x\). The first derivative:
Differentiate \(x\frac{dy}{dx}\) with respect to \(t\) by the product rule. The derivative of \(\frac{dy}{dx}\) with respect to \(t\) needs the chain rule again:
Solve the new equation in \(t\) with a complementary function and a particular integral, then put \(t = \ln x\): \(e^{t} = x\), \(e^{2t} = x^{2}\), \(e^{-t} = \frac{1}{x}\), \(\cos(kt) = \cos(k\ln x)\). Initial conditions given at \(x = 1\) belong to \(t = 0\), and \(\frac{dy}{dt} = x\frac{dy}{dx}\) there, so the two derivatives happen to be equal at \(x = 1\) only.
Worked example Transform, then solve
Show that the substitution \(x = e^{t}\) transforms \(x^{2}\frac{d^{2}y}{dx^{2}} + x\frac{dy}{dx} + 4y = 0\) into \(\frac{d^{2}y}{dt^{2}} + 4y = 0\). Hence find the general solution for \(y\) in terms of \(x\), for \(x \gt 0\).
From the chain rule (derived above), \(x\frac{dy}{dx} = \frac{dy}{dt}\) and \(x^{2}\frac{d^{2}y}{dx^{2}} = \frac{d^{2}y}{dt^{2}} - \frac{dy}{dt}\).
Substitute: \[\Big(\frac{d^{2}y}{dt^{2}} - \frac{dy}{dt}\Big) + \frac{dy}{dt} + 4y = 0,\] and the \(\frac{dy}{dt}\) terms cancel to give \(\frac{d^{2}y}{dt^{2}} + 4y = 0\).
Auxiliary equation \(m^{2} + 4 = 0\), so \(m = \pm 2i\) and \(y = A\cos 2t + B\sin 2t\).
Back-substitute \(t = \ln x\).
Answer: \(y = A\cos(2\ln x) + B\sin(2\ln x)\)
Worked example A particular solution with conditions
Use \(x = e^{t}\) to solve \(x^{2}\frac{d^{2}y}{dx^{2}} - 2x\frac{dy}{dx} + 2y = 6\ln x\) for \(x \gt 0\), given that \(y = \tfrac{5}{2}\) and \(\frac{dy}{dx} = 2\) when \(x = 1\).
Use \(x = e^{t}\) to find the general solution of \(x^{2}\frac{d^{2}y}{dx^{2}} + 3x\frac{dy}{dx} + y = x\) for \(x \gt 0\).
\(\frac{d^{2}y}{dt^{2}} + 2\frac{dy}{dt} + y = e^{t}\). CF: \(m = -1\) (repeated), \(y_{c} = (A + Bt)e^{-t}\). PI: \(ke^{t}\) with \(4k = 1\). So \(y = \dfrac{A + B\ln x}{x} + \dfrac{x}{4}\).
Examiner trap
Two slips cost the most marks. First, \(x^{2}\frac{d^{2}y}{dx^{2}}\) is NOT \(\frac{d^{2}y}{dt^{2}}\): the \(-\frac{dy}{dt}\) comes from the product rule and changes the auxiliary equation. Second, a right side such as \(6\ln x\) or \(x\) must also be rewritten in \(t\) (\(6t\), \(e^{t}\)) before you choose the particular integral; and the final answer goes back to \(x\).
Stage 1 · Learn
Check your understanding
Four quick checks. Each correct answer earns XP and records this skill on your profile.
Quick check+10 XP
With the substitution \(y = ux\), where \(u\) is a function of \(x\), \(\frac{dy}{dx}\) equals
Quick check+10 XP
With the substitution \(x = e^{t}\), the expression \(x\frac{dy}{dx}\) equals
Quick check+10 XP
With the substitution \(x = e^{t}\), the expression \(x^{2}\frac{d^{2}y}{dx^{2}}\) equals
Quick check+10 XP
The substitution \(x = e^{t}\) transforms \(x^{2}\frac{d^{2}y}{dx^{2}} + 4x\frac{dy}{dx} + 2y = 0\) into
Section 03
Other substitutions: reaching a linear equation.
Some given substitutions turn a non-linear equation into a first order linear one, \(\frac{dz}{dx} + P(x)z = Q(x)\), which an integrating factor then solves. Others change the dependent variable in a second order equation so that the coefficients become constant. The routine does not change: differentiate the substitution, replace every term, simplify, solve, return to \(y\).
Given substitution
What to replace
Typical result
\(z = \frac{1}{y}\)
\(\frac{dz}{dx} = -\frac{1}{y^{2}}\frac{dy}{dx}\)
first order linear in \(z\) (divide by \(y^{2}\) first)
\(z = y^{2}\)
\(\frac{dz}{dx} = 2y\frac{dy}{dx}\)
first order linear in \(z\)
\(u = \frac{dy}{dx}\)
\(\frac{du}{dx} = \frac{d^{2}y}{dx^{2}}\)
first order linear in \(u\), then integrate once more
\(y = \frac{z}{x}\)
\(\frac{dy}{dx}\) and \(\frac{d^{2}y}{dx^{2}}\) by the quotient or product rule
second order, constant coefficients in \(z\)
Each of these is the chain rule (or product rule) in disguise. Write the derivative of the substitution on its own line before you start replacing, so that no factor of \(y\) or \(x\) goes missing.
Worked example z = 1/y gives a linear equation
Use the substitution \(z = \frac{1}{y}\) to solve \(\frac{dy}{dx} + \frac{y}{x} = xy^{2}\) for \(x \gt 0\), given that \(y = 1\) when \(x = 1\).
Divide by \(y^{2}\): \(\frac{1}{y^{2}}\frac{dy}{dx} + \frac{1}{x}\cdot\frac{1}{y} = x\).
\(\frac{dz}{dx} = -\frac{1}{y^{2}}\frac{dy}{dx}\), so \(-\frac{dz}{dx} + \frac{z}{x} = x\), that is \[\frac{dz}{dx} - \frac{1}{x}z = -x.\]
\(x = 1\), \(y = 1\) means \(z = 1\): \(1 = c - 1\), so \(c = 2\).
\(z = 2x - x^{2}\) and \(y = \frac{1}{z}\).
Answer: \(y = \dfrac{1}{2x - x^{2}}\)
Worked example y = z/x gives constant coefficients
Show that the substitution \(y = \frac{z}{x}\) transforms \(x\frac{d^{2}y}{dx^{2}} + 2\frac{dy}{dx} + xy = 0\) into \(\frac{d^{2}z}{dx^{2}} + z = 0\), and hence find the general solution for \(y\).
\(y = zx^{-1}\), so by the product rule \[\frac{dy}{dx} = \frac{1}{x}\frac{dz}{dx} - \frac{z}{x^{2}}.\]
Then \(x\frac{d^{2}y}{dx^{2}} = \frac{d^{2}z}{dx^{2}} - \frac{2}{x}\frac{dz}{dx} + \frac{2z}{x^{2}}\) and \(2\frac{dy}{dx} = \frac{2}{x}\frac{dz}{dx} - \frac{2z}{x^{2}}\), while \(xy = z\).
Add: every term with \(\frac{1}{x}\) cancels, leaving \(\frac{d^{2}z}{dx^{2}} + z = 0\).
\(m^{2} + 1 = 0\) gives \(z = A\cos x + B\sin x\), and \(y = \frac{z}{x}\).
Answer: \(y = \dfrac{A\cos x + B\sin x}{x}\)
Your turn
Use \(u = \frac{dy}{dx}\) to find the general solution of \(x\frac{d^{2}y}{dx^{2}} + 2\frac{dy}{dx} = 12x^{2}\) for \(x \gt 0\).
\(x\frac{du}{dx} + 2u = 12x^{2}\), so \(\frac{du}{dx} + \frac{2}{x}u = 12x\). Integrating factor \(x^{2}\): \((x^{2}u)' = 12x^{3}\), \(x^{2}u = 3x^{4} + c\), \(u = 3x^{2} + \frac{c}{x^{2}}\). Integrate again: \(y = x^{3} - \frac{c}{x} + D\) (two arbitrary constants, as a second order equation needs).
Examiner trap
With \(z = \frac{1}{y}\), the minus sign in \(\frac{dz}{dx} = -\frac{1}{y^{2}}\frac{dy}{dx}\) is the mark-loser: drop it and the integrating factor is wrong from then on. With \(u = \frac{dy}{dx}\), solving for \(u\) is only halfway: you must integrate once more to reach \(y\), and the answer needs two constants.
Stage 2 · Exam
Exam-style questions
Unlocks once the four checks above are done. Worth more XP, written to AS & A Level Further Mathematics Paper 1 to 4 standard.
Finish the four checks above to unlock the exam questions
Exam style+20 XP
Using \(x = e^{t}\), the general solution of \(x^{2}\frac{d^{2}y}{dx^{2}} - 2x\frac{dy}{dx} + 2y = 0\), for \(x \gt 0\), is
Exam style+20 XP
Use \(y = ux\) to find the general solution of \(\frac{dy}{dx} = \frac{x^{2} + 3y^{2}}{2xy}\), for \(x \gt 0\).
Exam style+20 XP
The substitution \(z = \frac{1}{y}\) is applied to \(\frac{dy}{dx} + y = xy^{2}\). Which equation results?
Exam style+20 XP
An Euler equation is solved with \(x = e^{t}\). The condition \(\frac{dy}{dx} = 3\) when \(x = 2\) becomes
Skill unlocked
Further Pure 2 complete: substitutions made, equations reduced and solved, answers back in x and y.
This skill is now recorded on your profile. Keep the chain going.