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
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
But
Substituting
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
The above comes from the requirements that
We are free to set
The derivative in
But
But
Solving this gives
But
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
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
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
Multiplying by
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
Now Trying ansatz as
Then
Setting each coefficient to zero gives
Hence the solution is
And Trying ansatz as
Hence
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
This is easily solved to give
Trying ansatz as
This is separable and its solution is