4 Linear DEs, Order 1
4 Linear DEs, Order 1
4 Linear DEs, Order 1
dy
+ Py = Q
dx
e∫ P dx
The solution for the DE is given by multiplying y by the integrating factor (on the left) and multiplying Q by the
integrating factor (on the right) and integrating the right side with respect to x, as follows:
ye∫ P dx = ∫ (Qe∫ P dx ) dx + K
Example 1
dy 3
Solve − y=7
dx x
Answer
dy 3
− y=7
dx x
3
Here, P (x) = − and Q(x) = 7.
x
[If you are not sure what just happened, check out Integration: Basic Logarithm Form and Logarithms to Base e.]
ye∫ P dx = yx−3
For the right hand of the formula, Q = 7 and the IF = x -3, so:
Qe∫ P dx = 7x−3
Applying the outer integral:
7
∫ (Qe∫ P dx ) dx = ∫ 7x−3 dx = − x−2 + K
2
7
https://www.intmath.com/differential-equations/4-linear-des-order-1.php 1/6
23.10.22, 19:56 4 Linear DEs, Order 1
7
yx−3 = − x−2 + K
2
7
y = − x + Kx3
2
Is it correct? Differentiate this answer to make sure it produces the differential equation in the question.
Here is the solution graph of our answer for Example 1 (I've used K = 0.5).
Example 2
dy
Solve + (cot x)y = cos x
dx
Answer
dy
+ (cot x)y = cos x
dx
sin2 x
y sin x = +K
2
Divide throughout by sin x to get the required general solution of the DE:
https://www.intmath.com/differential-equations/4-linear-des-order-1.php 2/6
23.10.22, 19:56 4 Linear DEs, Order 1
sin x
y= + K csc x
2
Here is the solution graph of our answer for Example 2 (I've used K = 0.1) .
It is a composite trigonometric curve, where the main shape is the cosecant curve, and the "wiggles" are due to the
addition of the (sin x)/2 part:
Example 3
−3x
Solve dy + 3y dx = e dx
Answer
Dividing throughout by dx to get the equation in the required form, we get:
dy
+ 3y = e−3x
dx
e∫ P dx = e∫ 3 dx = e3x
and
= ∫ 1 dx
=x
https://www.intmath.com/differential-equations/4-linear-des-order-1.php 3/6
23.10.22, 19:56 4 Linear DEs, Order 1
ye 3x = x + K
or we could write it as:
x+K
y=
e3x
It was necessary to zoom out (a lot) to see what is going on in this graph.
Example 4
Solve 2(y − 4x2 ) dx + x dy = 0
Answer
dy
2y − 8x2 + x =0
dx
Rearrange:
dy
x + 2y = 8x2
dx
dy 2
+ y = 8x
dx x
2
Here, P (x) = and Q(x) = 8x.
x
2
ln x2
IF = e∫ P dx = e∫ x
dx
= e
2 ln x
= e
2
= x
Now
https://www.intmath.com/differential-equations/4-linear-des-order-1.php 4/6
23.10.22, 19:56 4 Linear DEs, Order 1
ye∫ P dx = ∫ Qe∫ P dx dx + K
gives:
K
y = 2x2 +
x2
2(y − 4x2 ) dx + x dy = 0
dy
We have to rearrange it in terms of and then solve it using
dx
Example 5
dy
Solve x − 4y = x6 ex
dx
Answer
dy 4
− y = x5 ex
dx x
Here,
4
P (x) = − and Q(x) = x5 ex .
x
4 −4
IF = e∫ P dx = e∫ − x dx = e−4 ln x = eln x = x−4
Now
∫
https://www.intmath.com/differential-equations/4-linear-des-order-1.php 5/6
23.10.22, 19:56 4 Linear DEs, Order 1
∫ P dx 5 x −4 x
Qe = (x e )x = xe
∫ P dx
Applying the formula: ye = ∫ Qe∫ P dx dx + K gives
y x−4 = ∫ xex dx + K
u = x, and dv = ex dx
This gives us
du = dx , and v = ex .
So
y x−4 = xex − ex + K
y = x5 ex − x4 ex + Kx4
https://www.intmath.com/differential-equations/4-linear-des-order-1.php 6/6