3.4.10.3 Example y=yx+x

This is linear first order which can be easily solved using integrating factor. But this is just to illustrate Lie symmetry method.

(1)y=yx+xy=ω(x,y)

The first step is to find ξ and η. Using lookup method, since this is linear ode of form y=f(x)y+g(x) then

ξ=0η=efdx=e1xdx=x

The end of this problem shows also how to find these from the symmetry conditions. Therefore we write

x¯=x+ξϵ=xy¯=y+ηϵ(2)=y+ηx

The integrating factor is therefore

μ(x,y)=1ηξω=1x

Before solving this, let us first verify that transformation (2) is invariant which means it leaves the ode in same form but using x¯,y¯. We do the same as in the above introduction.

dy¯dx¯=dy¯dxdx¯dx=y¯x+y¯ydydxx¯x+x¯ydydx

But y¯x=s,y¯y=1,x¯x=1,x¯y=0 and the above becomes

dy¯dx¯=ϵ+dydx1=ϵ+dydx

Substituting x¯,y¯,dy¯dx¯ in the original ode gives

dy¯dx¯=y¯x¯+x¯ϵ+dydx=y+ϵxx+xϵ+dydx=yx+ϵ+xdydx=yx+x

Which is the original ODE. Therefore (2) are indeed an invariant Lie group transformation as it leaves the ODE unchanged. The next step is to determine what is called the canonical coordinates R,S. Where R is the independent variable and S is the dependent variable. So we are looking for S(R) function. This is done by using the standard characteristic equation by writing

dxξ=dyη=dS(1)dx0=dyx=dS

The above comes from the requirements that (ξx+ηy)S(x,y)=1. Which is a first order PDE.  This is solved for S, which gives (1) using the method of characteristic to solve first order PDE which is standard method.  In the special case when ξ=0 and η0 these give

R=xS=1ηdy=1xdy=yx+c

We are free to set c=0, hence S=yx. Therefore the transformation to canonical coordinates is

(x,y)(R,S)=(x,yx)

The derivative in (R,S) is found same as with dy¯dx¯ giving

dSdR=Sx+SydydxRx+Rydydx

But Sx=yx2,Sy=1x,Rx=1,Ry=0 and the above becomes

dSdR=yx2+1xdydx1=yx2+1xdydx

But dydx=yx+x hence the above becomes

dSdR=yx2+1x(yx+x)=1

Solving this gives

S=R+c1

But S=yx,R=x. Therefore the above becomes

yx=x+c1y=x2+c1x

Which is the solution to the original ode. Of course this was just an example showing how to use Lie symmetry method. The original ode is linear and can be easily solved using an integrating factor

yyx=xI=e1xdx=elnx=1x

Multiplying the ode by I gives

ddx(yI)=Ixyx=xxdx=x+c1

Hence

y=x2+xc1

Which is same solution. But Lie symmetry method works the same way for any given ode. And this is where it powers are. It can solve much more complicated odes than this using the same procedure. The main difficulty is in finding the infinitesimals for the group, which are ξ,η that leaves the ode invariant.

Finding Lie symmetries for this example

y=yx+x=ω(x,y)

The condition of symmetry is a the linearized PDE given above in equation (14) as

(14)ηx+ω(ηyξx)ω2ξyωxξωyη=0

We first find the determining equation before solving for ξ,η. Since ω=yx+x then ωy=1x,ωx=yx2+1. Hence the above becomes

ηx+(yx+x)(ηyξx)(yx+x)2ξy(yx2+1)ξ1xη=0ηx+(yx+x)(ηyξx)(y2x2+x2+2y)ξy(yx2+1)ξ1xη=0ηx+(yx+x)ηyξx(yx+x)(y2x2+x2+2y)ξy(yx2+1)ξ1xη=0

Multiplying by x2 to normalize gives

(A)x2ηx+(yx+x3)ηyξx(yx+x3)(y2+x4+2yx2)ξy(y+x2)ξxη=0

Equation (A) is called the determining equation. Using different ansatz can result in more solutions.

Trying ansatz

ξ=0η=b0x

Plugging these into (A) and comparing coefficients to solve for the unknown gives

x2(b0)xη=0b0x2x(b0x)=0b0x2b0x2=0b0(0)=0

So any b0 will work. Let b0=1. Hence

ξ=0η=x

Now Trying ansatz as

ξ=a0+a1xη=b0+b1y

Then ξx=a1,ξy=0,ηx=0,ηy=b1 and the determining equation (A) becomes

(b0+b1y)x+(a0+a1x)(x2y)+b1(yxx3)+a1(yx+x3)=0(b0+b1y)x+(a0+a1x)(x2y)+(b1a1)(yxx3)=0xb0ya0+x2a0+x3(2a1b1)=0

Setting each coefficient to zero gives

b0=0a0=0a0=02a1b1=0

Hence the solution is a0=0,b0=0,a1=b12. Using b1=2 gives a1=1 and therefore

ξ=xη=2y

And Trying ansatz as

ξ=a0+a1x+a2yη=b0+b1y+b2x

Hence ξx=a1,ξy=a2,ηx=b2,ηy=b1 and the determining equation (A) becomes

(b0+b1y+b2x)x+(a0+a1x+a2y)(x2y)+b1(yxx3)+a2(y2+x4+2yx2)+b2(x2)+a1(yx+x3)=0x4(a2)+x3(2a1)+x2y(3a2)+x3(b1)+x2(a0)+y(a0)x(b0)=0

Setting each coefficient to zero gives

b0=0a0=0a1=0b1=0a2=0b2=0

This shows there is no solution for this ansatz. There are more solutions depending on what ansatz we used. We just need one to obtain the final solution. In Maple, these solutions can be found as follows

ode:=diff(y(x),x)= y(x)/x+x; 
DEtools:-symgen(ode,y(x),way=all) 
[_xi = 0, _eta = x], 
[_xi = 0, _eta = x], 
[_xi = 0, _eta = x^2 - y], 
[_xi = x, _eta = 2*y], 
[_xi = 1, _eta = y/x], 
[_xi = x^2 + y, _eta = 4*y*x], 
[_xi = x^2 - 3*y, _eta = -4*y^2/x]
 

Trying ansatz using functional form. Let ξ=0,η=f(x) then ξx=0,ξy=0,ηx=f(x),ηy=0 and the determining equation (A) becomes

x2ηx+(yx+x3)ηyξx(yx+x3)(y2+x4+2yx2)ξy(y+x2)ξxη=0x2f(x)xf(x)=0xf(x)f(x)=0

This is easily solved to give f=cx. Hence ξ=0,η=x by choosing c=1. We see that this choice of ansatz was the easiest in this case, as the ode generated was linear. Let us try another and see what happens.

Trying ansatz as ξ=0,η=f(y) then ξx=0,ξy=0,ηx=0,ηy=f(y) and the determining equation (A) becomes

(yx+x3)f(y)xf(y)=0(y+x2)f(y)f(y)=0

This is separable and its solution is f=c1(x2+y). Hence ξ=0,η=(x2+y) by using c1=1. But this is not function of y only. So this choice did not work. Trying [ξ=f(x),η=0],[ξ=f(y),η=0] shows these also do not work.

ξ,η can be checked for validity by substituting them in the PDE. Maple’s symtest command does this. These functional ansatz’s lead to an ode which have to be solved.