4.3.2.13 Solved By transformation on B(x) for ODE Ay(x)+By(x)+C(x)y(x)=0
4.3.2.13.1 Example 1

ode internal name "second_order_ode_non_constant_coeff_transformation_on_B"

This method is tried to reduce the order ode the ODE by one, by doing direct transformation on B(x) for the ode

A(x)y(x)+B(x)y(x)+C(x)y(x)=0

Let

y=Bv

Then y=Bv+vB and y=Bv+Bv+vB+vB=vB+2vB+Bv then the original ode becomes

A(vB+2vB+Bv)+B(Bv+vB)+CBv=0ABv+(2AB+B2)v+(AB+BB+CB)v=0

Now we check if AB+BB+CB=0 or not. If it is zero, then this method works and we can now solve

ABv+(2AB+B2)v=0

Using u=v which reduces the order to one.

ABu+(2AB+B2)u=0

This is first order ode now. Solved for u gives v which is solved for v as first order ode. Then y=Bv and we are done. This method only works of course if AB+BB+CB=0 comes out to be zero. Here is an example

4.3.2.13.1 Example 1

xy+(1x)y+y=0

Here A=x,B=(1x) and C=1, hence B=1,B=0 and therefore

AB+BB+CB=0+(1x)(1)+(1x)=1+x1x=0

It works. Hence the reduces ode becomes

ABv+(2AB+B2)v=0

Let u=v then

ABu+(2AB+B2)u=0x((1x))u+(2x+(1x)2)u=0uxu+ux2x2u=0u(xx2)+u(1+x2)=0u(1+x2)(x+x2)u=0

This is linear first order ode solved using integrating factor which gives

u=c1xex(1+x)2

Hence since v=u then

v=c1xex(1+x)2

This is quadrature. Solving gives

v=c2+c1ex1+x

Therefore

y=Bv=(1x)(c2+c1ex1+x)=c2(1+x)+c1ex

Note that this method is sensitive to the ODE is written. If we divide the ode by A is becomes

y+(1x)x+1xy=0

And now A=1,B=(1x)x and C=1x, hence B=1x+1+xx2 and B=2x22x3(1+x) then

AB+BB+CB=(2x22x3(1+x))+((1x)x)(1x+1+xx2)+1x((1x)x)=1x3(x2+2x+3)0

So this method now fails to reduce the ode order by one. So in practice, I try first on the ode as given, and then try again by normalizing it so that B is not rational function and try again. In other words, given an ode y+(1x)x+1xy=0 then try with B=(1x)x and if this fails, try again after multiplying the ode by x so now B=(1x) and A=x and C=1 and see if this works or not. This method of course only works when B is not zero.