Linear inhomogeneous differential equations of the 1st order Step-By-Step
For example, you have entered (calculator here):
7y(x)+dxdy(x)=sin(x)
Detail solution
Given the equation:
7y(x)+dxdy(x)=sin(x)
This differential equation has the form:
y' + P(x)y = Q(x)
where
P(x)=7
and
Q(x)=sin(x)
and it is called linear homogeneous
differential first-order equation:
First of all, we should solve the correspondent linear homogeneous equation
y' + P(x)y = 0
with multiple variables
The equation is solved using following steps:
From y' + P(x)y = 0 you get
ydy=−P(x)dx, if y is not equal to 0
∫y1dy=−∫P(x)dx
log(∣y∣)=−∫P(x)dx
Or,
∣y∣=e−∫P(x)dx
Therefore,
y1=e−∫P(x)dx
y2=−e−∫P(x)dx
The expression indicates that it is necessary to find the integral:
∫P(x)dx
Because
P(x)=7, then
∫P(x)dx =
= ∫7dx=7x+Const
Detailed solution of the integral
So, solution of the homogeneous linear equation:
y1=eC1−7x
y2=−eC2−7x
that leads to the correspondent solution
for any constant C, not equal to zero:
y=Ce−7x
We get a solution for the correspondent homogeneous equation
Now we should solve the inhomogeneous equation
y' + P(x)y = Q(x)
Use variation of parameters method
Now, consider C a function of x
y=C(x)e−7x
And apply it in the original equation.
Using the rules
- for product differentiation;
- of composite functions derivative,
we find that
dxdC(x)=Q(x)e∫P(x)dx
Let use Q(x) and P(x) for this equation.
We get the first-order differential equation for C(x):
dxdC(x)=e7xsin(x)
So, C(x) =
∫e7xsin(x)dx=(507e7xsin(x)−50e7xcos(x))+Const
Detailed solution of the integral
use C(x) at
y=C(x)e−7x
and we get a definitive solution for y(x):
e−7x(507e7xsin(x)−50e7xcos(x)+Const)