2.6 - Substitutions in differential equations

2.6 - Substitutions in differential equations

A given substitution can turn variable coefficients into constant coefficients, or turn a first-order equation into one with separable variables. You will derive the transformed derivatives, preserve solutions that division might lose, and transfer initial conditions back to the original variables.

Changing x to exponential t

Why do the combinations x2y′′x^2y'' and xy′xy' often appear together? Under the substitution x=etx=e^t, multiplication by xx cancels the chain-rule denominator in the first derivative.

Write Y(t)=y(et)Y(t)=y(e^t) to distinguish the transformed function from y(x)y(x). Since dx/dt=x\mathrm{d}x/\mathrm{d}t=x, the chain rule gives

Yt=xy′,Ytt=xddx(xy′)=xy′+x2y′′.Y_t=xy',\qquad Y_{tt}=x\frac{\mathrm{d}}{\mathrm{d}x}(xy')=xy'+x^2y''.

The subscripts here mean derivatives with respect to tt, while primes still mean derivatives with respect to xx.

Derivatives under the given substitution

For x=etx=e^t, so x>0x>0 and t=ln⁡xt=\ln x,

xy′=Yt,x2y′′=Ytt−Yt.xy'=Y_t,\qquad x^2y''=Y_{tt}-Y_t.

Consequently

ax2y′′+bxy′+cy=aYtt+(b−a)Yt+cY.ax^2y''+bxy'+cy=aY_{tt}+(b-a)Y_t+cY.

These transformation formulae are not in the formula booklet: derive them by the chain rule.

The subtraction of YtY_t in the second derivative is essential. It is produced by differentiating the extra xx, not by a change in the equation's order.

Worked example 1: real roots after substitution

Question. Use x=etx=e^t to solve x2y′′+xy′−4y=0x^2y''+xy'-4y=0, for x>0x>0.

Plan. Transform both derivative terms, solve the constant-coefficient equation and replace tt by ln⁡x\ln x.

(Ytt−Yt)+Yt−4Y=0,(Y_{tt}-Y_t)+Y_t-4Y=0,

so Ytt−4Y=0Y_{tt}-4Y=0. Its auxiliary roots are 2,−22,-2, giving Y=Ae2t+Be−2tY=Ae^{2t}+Be^{-2t}.

Answer. y=Ax2+Bx−2y=Ax^2+Bx^{-2}, for x>0x>0.

Check. For y=xry=x^r, direct differentiation gives the original left-hand side as (r2−4)xr(r^2-4)x^r. Both r=2r=2 and r=−2r=-2 make it zero, confirming the powers without using the transformed equation.

Change only the sign of the term in yy. The transformed roots become complex, so the logarithm appears inside trigonometric functions.

Worked example 2: oscillations in logarithmic x

Question. Use x=etx=e^t to solve x2y′′+xy′+4y=0x^2y''+xy'+4y=0, for x>0x>0.

Plan. Use the same derivative transformation, then return the trigonometric complementary function to xx.

The transformed equation is Ytt+4Y=0Y_{tt}+4Y=0, so Y=Acos⁡2t+Bsin⁡2tY=A\cos2t+B\sin2t.

Answer. y=Acos⁡(2ln⁡x)+Bsin⁡(2ln⁡x)y=A\cos(2\ln x)+B\sin(2\ln x), for x>0x>0.

Check. For z=cos⁡(2ln⁡x)z=\cos(2\ln x),

z′=−2sin⁡(2ln⁡x)x,z′′=2sin⁡(2ln⁡x)−4cos⁡(2ln⁡x)x2.z'=-\frac{2\sin(2\ln x)}x,\qquad z''=\frac{2\sin(2\ln x)-4\cos(2\ln x)}{x^2}.

Thus x2z′′+xz′+4z=0x^2z''+xz'+4z=0. Differentiating the sine term gives the same cancellation, with sine and cosine interchanged.

The substitution x=etx=e^t covers positive xx only. Do not claim a negative-domain solution from it without a separately valid change of variable.

Watch out

x2y′′x^2y'' becomes Ytt−YtY_{tt}-Y_t, not YttY_{tt}. Derive this line before substituting into the equation.

Use the same cancellation at a new frequency.

Substituting y equals ux

When a first-order equation depends on the ratio y/xy/x, the given substitution y=uxy=ux makes that ratio simply uu.

Here uu is a function of xx, not a constant. The product rule gives y′=u+xu′y'=u+xu'. For y′=F(y/x)y'=F(y/x), this reduces the equation to

xdudx=F(u)−u.x\frac{\mathrm{d}u}{\mathrm{d}x}=F(u)-u.

It is separable where x≠0x\ne0 and F(u)−u≠0F(u)-u\ne0. Before dividing by the latter expression, check its zeros: a constant value of uu may give an additional straight-line solution y=uxy=ux.

Such ratio equations are often called homogeneous first-order equations. That use of “homogeneous” differs from the zero-right-hand-side linear equation used to find a complementary function.

Worked example 3: a logarithmic ratio

Question. Use y=uxy=ux to solve y′=1+y/xy'=1+y/x, for x>0x>0.

Plan. Differentiate the product, cancel the repeated uu term, then integrate.

u+xu′=1+uu′=1xu=ln⁡x+C.\begin{aligned} u+xu'&=1+u \\ u'&=\frac1x \\ u&=\ln x+C. \end{aligned}

Multiply by xx to return to the original dependent variable.

Answer. y=x(ln⁡x+C)y=x(\ln x+C), for x>0x>0.

Check. Direct differentiation gives y′=ln⁡x+C+1y'=\ln x+C+1, while 1+y/x=1+ln⁡x+C1+y/x=1+\ln x+C. The two sides agree for every constant.

Replace the added constant by the square of the ratio. Division now risks losing a solution.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account