Skip to main content
Examonaut

Topic 3 · Lesson 3 of 4

Second order equations: x = e^u

Equations with x and x^2 coefficients

An equation of the form

ax2d2ydx2+bxdydx+cy=f(x)ax^2\frac{d^2y}{dx^2} + bx\frac{dy}{dx} + cy = f(x)

(an Euler equation) has variable coefficients, so the auxiliary equation method does not apply directly. The substitution x=eux = e^u (so u=ln⁡xu = \ln x, for x>0x > 0) turns it into an equation with constant coefficients.

Deriving the key results

With u=ln⁡xu = \ln x, dudx=1x\frac{du}{dx} = \frac{1}{x}, so by the chain rule

dydx=dydududx=1xdydu,that isxdydx=dydu\frac{dy}{dx} = \frac{dy}{du}\frac{du}{dx} = \frac{1}{x}\frac{dy}{du}, \quad \text{that is} \quad x\frac{dy}{dx} = \frac{dy}{du}

Differentiate dydx=1xdydu\frac{dy}{dx} = \frac{1}{x}\frac{dy}{du} again with respect to xx, using the product rule and the chain rule on dydu\frac{dy}{du}:

d2ydx2=−1x2dydu+1xd2ydu2dudx=1x2(d2ydu2−dydu)\frac{d^2y}{dx^2} = -\frac{1}{x^2}\frac{dy}{du} + \frac{1}{x}\frac{d^2y}{du^2}\frac{du}{dx} = \frac{1}{x^2}\left(\frac{d^2y}{du^2} - \frac{dy}{du}\right)

so

x2d2ydx2=d2ydu2−dydux^2\frac{d^2y}{dx^2} = \frac{d^2y}{du^2} - \frac{dy}{du}

Questions often ask you to show these, so learn the derivation, not only the results. Any xx on the right-hand side becomes eue^u, and ln⁡x\ln x becomes uu.

Worked example

X = e^u

Solve x2d2ydx2−4xdydx+6y=x4x^2\frac{d^2y}{dx^2} - 4x\frac{dy}{dx} + 6y = x^4, x>0x > 0.

Show solution
  1. Substitute: (d2ydu2−dydu)−4dydu+6y=e4u\left(\frac{d^2y}{du^2} - \frac{dy}{du}\right) - 4\frac{dy}{du} + 6y = e^{4u}, that is d2ydu2−5dydu+6y=e4u\frac{d^2y}{du^2} - 5\frac{dy}{du} + 6y = e^{4u}.
  2. Auxiliary equation m2−5m+6=0m^2 - 5m + 6 = 0: m=2m = 2 or 33. Complementary function Ae2u+Be3uAe^{2u} + Be^{3u}.
  3. Particular integral: try y=λe4uy = \lambda e^{4u}. Then 16λ−20λ+6λ=116\lambda - 20\lambda + 6\lambda = 1, so λ=12\lambda = \frac{1}{2}.
  4. y=Ae2u+Be3u+12e4uy = Ae^{2u} + Be^{3u} + \frac{1}{2}e^{4u}, and with eu=xe^u = x: y=Ax2+Bx3+12x4y = Ax^2 + Bx^3 + \frac{1}{2}x^4.

Converting back

Remember eku=xke^{ku} = x^k, u=ln⁡xu = \ln x, cos⁡(qu)=cos⁡(qln⁡x)\cos(qu) = \cos(q\ln x). A repeated root mm gives (A+Bu)emu=xm(A+Bln⁡x)(A + Bu)e^{mu} = x^m(A + B\ln x). Boundary conditions given in terms of xx and dydx\frac{dy}{dx} are easiest to apply after converting back to xx.

Other second order substitutions

The same idea works whenever a combination of derivatives is the derivative of something simpler. With z=y2z = y^2:

dzdx=2ydydx,d2zdx2=2(dydx)2+2yd2ydx2\frac{dz}{dx} = 2y\frac{dy}{dx}, \qquad \frac{d^2z}{dx^2} = 2\left(\frac{dy}{dx}\right)^2 + 2y\frac{d^2y}{dx^2}

so an equation containing yd2ydx2+(dydx)2y\frac{d^2y}{dx^2} + \left(\frac{dy}{dx}\right)^2 and ydydxy\frac{dy}{dx} becomes linear in zz. Convert any conditions too: if y=2y = 2 and dydx=1\frac{dy}{dx} = 1 at x=0x = 0, then z=4z = 4 and dzdx=2ydydx=4\frac{dz}{dx} = 2y\frac{dy}{dx} = 4 there.

Practise this topic

Both are part of Premium.