This is linear first order which can be easily solved using integrating factor. But this is just to illustrate Lie symmetry method.
The first step is to find \(\xi \) and \(\eta \). Using lookup method, since this is linear ode of form \(y^{\prime }=f\left ( x\right ) y+g\left ( x\right ) \) then
The end of this problem shows also how to find these from the symmetry conditions. Therefore we write
The integrating factor is therefore
Before solving this, let us first verify that transformation (2) is invariant which means it leaves the ode in same form but using \(\bar {x},\bar {y}\). We do the same as in the above introduction.
But \(\bar {y}_{x}=s,\bar {y}_{y}=1,\bar {x}_{x}=1,\bar {x}_{y}=0\) and the above becomes
Substituting \(\bar {x},\bar {y},\frac {d\bar {y}}{d\bar {x}}\) in the original ode gives
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\left ( R\right ) \) function. This is done by using the standard characteristic equation by writing
The above comes from the requirements that \(\left ( \xi \frac {\partial }{\partial x}+\eta \frac {\partial }{\partial y}\right ) S\left ( x,y\right ) =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 \(\xi =0\) and \(\eta \neq 0\) these give
We are free to set \(c=0\), hence \(S=\frac {y}{x}\). Therefore the transformation to canonical coordinates is
The derivative in \(\left ( R,S\right ) \) is found same as with \(\frac {d\bar {y}}{d\bar {x}}\) giving
But \(S_{x}=-\frac {y}{x^{2}},S_{y}=\frac {1}{x},R_{x}=1,R_{y}=0\) and the above becomes
But \(\frac {dy}{dx}=\frac {y}{x}+x\) hence the above becomes
Solving this gives
But \(S=\frac {y}{x},R=x\). Therefore the above becomes
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
Multiplying the ode by \(I\) gives
Hence
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 \(\xi ,\eta \) that leaves the ode invariant.
Finding Lie symmetries for this example
The condition of symmetry is a the linearized PDE given above in equation (14) as
We first find the determining equation before solving for \(\xi ,\eta \). Since \(\omega =\frac {y}{x}+x\) then \(\omega _{y}=\frac {1}{x},\omega _{x}=-\frac {y}{x^{2}}+1\). Hence the above becomes
Multiplying by \(x^{2}\) to normalize gives
Equation (A) is called the determining equation. Using different ansatz can result in more solutions.
Trying ansatz
Plugging these into (A) and comparing coefficients to solve for the unknown gives
So any \(b_{0}\) will work. Let \(b_{0}=1\). Hence
Now Trying ansatz as
Then \(\xi _{x}=a_{1},\xi _{y}=0,\eta _{x}=0,\eta _{y}=b_{1}\) and the determining equation (A) becomes
Setting each coefficient to zero gives
Hence the solution is \(a_{0}=0,b_{0}=0,a_{1}=\frac {b_{1}}{2}\). Using \(b_{1}=2\) gives \(a_{1}=1\) and therefore
And Trying ansatz as
Hence \(\xi _{x}=a_{1},\xi _{y}=a_{2},\eta _{x}=b_{2},\eta _{y}=b_{1}\) and the determining equation (A) becomes
Setting each coefficient to zero gives
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 \(\xi =0,\eta =f\left ( x\right ) \) then \(\xi _{x}=0,\xi _{y}=0,\eta _{x}=f^{\prime }\left ( x\right ) ,\eta _{y}=0\) and the determining equation (A) becomes
This is easily solved to give \(f=cx\). Hence \(\xi =0,\eta =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 \(\xi =0,\eta =f\left ( y\right ) \) then \(\xi _{x}=0,\xi _{y}=0,\eta _{x}=0,\eta _{y}=f^{\prime }\left ( y\right ) \) and the determining equation (A) becomes
This is separable and its solution is \(f=c_{1}\left ( x^{2}+y\right ) \). Hence \(\xi =0,\eta =\left ( x^{2}+y\right ) \) by using \(c_{1}=1\). But this is not function of \(y\) only. So this choice did not work. Trying \(\left [ \xi =f\left ( x\right ) ,\eta =0\right ] ,\left [ \xi =f\left ( y\right ) ,\eta =0\right ] \) shows these also do not work.
\(\xi ,\eta \) 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.