In this theoretical article we will try to solve as easier as possible a generic first order differential equation.
This equation is always there to ruin our days 😆
If you try to solve a simple RC circuit is there and waiting for you.
It is quite annoying how many times you will find it at your way so we decided to solve this equation even for people who does not have a lot mathematical knowledge.
This is a generic First Order Linear Differential Equation
Another way to remember it is
So as you can see it is a first order differential equation since the y function is only derivated once.
The first step to solve this equation is to multiply all members with a function called u(x)
Let's remember the product rule of the derivative :
So in our case we can see that the product derivative rule between u(x)*y gives us
The second part of the formula (2) is extremely the same with the fisrt part of the formula (1)
In order to be equal the two parts we have to dimension correctly P(x)
So we have to dimension P(x) like this formula below :
P(x) is known , on the other hand u(x) is not. So we have to solve the equation (3) by integrating both parts
Time to remember that :
So integrating both parts we get
Knowing (4) and (5) we get
From the definition of the logarithm we know that
So using the logarithm definition from (6) and setting C=0 we get
we get from (1) and (2)
Integrating both parts we get
So the solution of the differential equation is :
In the next page we will se some particular cases of this generic solution.