Sometimes, there are differential equations that arent exact, but they can be made exact by multiplying the function by something known as an integrating factor.
Example of what integrating factors can do
Here is an example of a function that isn't exact.
(3x+2y2)dx+(2xy)dy=0.
When you take the partial derivatives My and Nx, you get My=4y and Nx=2y. And since My=Nx, this is not a exact equation. That means the equation can't be solved.
However, by multiplying the equation by x, yields (3x2+2xy2)dx+(2x2y)dy=0. Taking the partial derivatives we get My=Nx=4xy. This is an exact equation and can be easily solved.
A function μ(x,y) is an integrating factor if μ(x,y)M(x,y)dx+μ(x,y)N(x,y)dy=0 (eq 1)
Finding Integrating factors
By taking the concept discussed in the Exact Equations section, eq 1 is an exact equation and that means
∂y∂(μM)=∂x∂(μN)
Solving this yields the following equation.
μyM+Myμ=μxN+Nxμ
This can be rewritten as the following equation below
μ(My−Nx)=μxN−μyN
If My=Nx, then μ=1, making the equation exact.
If μ(x,y)=P(x)Q(y), then μx(x,y)=P′(x)Q(y) and μy(x,y)=P(x)Q′(y). Replace this into the equation to get.
P(x)Q(y)My−Nx)=P′(x)Q(y)N−P(x)Q′(y)N
This simplifies into the following equation below.
My−Nx=P(x)P′(x)N−Q(y)Q′(y)M
Replace P(x)P′(x)=p(x) and Q(y)Q′(y)=q(y) and the equation now becomes the following equation down below.
My−Nx=p(x)N−q(y)M
We can use this to obtain the following idea below.
Theorem
If p(x)=NMy−Nx, then μ(x)=±e∫p(x)dx
If q(y)=MNx−My, then μ(y)=±e∫q(y)dy
Examples
Example 1: Find the integrating factor and solve the following Differential equation
(2xy3−2x3y3−4xy2+2x)dx+(3x2y2+4y)dy=0
Solution: We need to find a integrating factor to turn this into an easily solvable exact equation.
- M(x,y)=2xy3−2x3y3−4xy2+2x
- N(x,y)=3x2y2+4y
- My=6xy2−6x3y2−8xy
- Nx=6xy2
- My−Nx=−6x3y2−8xy
You can see My=Nx, therefore this is not an exact equation.
To find the integrating factor, we use the theorem mentioned above.
p(x)=NMy−Nx=3x2y2+4y−6x3y2−8xy=−2x
We can find μ our integrating factor from p(x).
μ(x)=e∫−2xdx=e−x2
Multiply this into our original equation to get an exact equation
e−x2(2xy3−2x3y3−4xy2+2x)dx+e−x2(3x2y2+4y)dy=0
To solve the equation, we had to find a function F(x,y) where it satisfied the following conditions
- Fx=e−x2(2xy3−2x3y3−4xy2+2x)
- Fy=e−x2(3x2y2+4y)
We can integrate either equation to find F, we will integrate the Fy with respect to y since it is simpler
∫e−x2(3x2y2+4y)dy=e−x2∫(3x2y2+4y)dy=e−x2(x2y3+2y2)+Ψ(x)
So, F(x,y)=−e−x2(x2y3+2y2)+Ψ(x). To find Ψ(x), we just take Fx
Fx=−e−x2(2xy3−2x3y3−4xy2)+Ψ′(x). Setting this equal to e−x2(2xy3−2x3y3−4xy2+2x) we find that Ψ′(x)=2xe−x2 and Ψ(x)=−e−x2
Our final answer then is C=e−x2(x2y3+2y2−1)
Example 2: Coming soon...
Solution: Coming soon...