Professional Documents
Culture Documents
2.4 - Linear
2.4 - Linear
Linear Equations
First order equations that do not contain products, powers, or other non-
𝑑𝑑𝑑𝑑
linear combinations of the dependent variable 𝑦𝑦 and its derivative �𝑑𝑑𝑑𝑑 are
considered linear in the dependent variable 𝑦𝑦.
𝑑𝑑𝑑𝑑
A differential equation 𝑑𝑑𝑑𝑑
= 𝑓𝑓(𝑥𝑥, 𝑦𝑦) is considered linear in 𝑦𝑦 if and only if it
can be written in the form
𝑑𝑑𝑑𝑑
+ 𝑃𝑃 𝑥𝑥 𝑦𝑦 = 𝑄𝑄(𝑥𝑥)
𝑑𝑑𝑑𝑑
where 𝑃𝑃(𝑥𝑥) and 𝑄𝑄(𝑥𝑥) are either constants or functions of 𝑥𝑥 only.
Examples:
𝑑𝑑𝑑𝑑 + 5𝑥𝑥 2 𝑦𝑦 𝑑𝑑𝑑𝑑 = 2𝑥𝑥 𝑑𝑑𝑑𝑑
3
𝑑𝑑𝑑𝑑 + 4𝑦𝑦 𝑑𝑑𝑑𝑑 = 𝑑𝑑𝑑𝑑
𝑥𝑥
ES 21: Differential Equations for Engineers | Engr. Zephaniah G. Silabay
4
Unit 2.4 - Linear
Standard Forms
Equations linear in 𝑥𝑥:
𝑑𝑑𝑑𝑑
+ 𝑆𝑆(𝑦𝑦) 𝑥𝑥 = 𝑅𝑅 𝑦𝑦
𝑑𝑑𝑑𝑑
Examples:
𝑑𝑑𝑑𝑑 + 2𝑦𝑦 3 𝑥𝑥 𝑑𝑑𝑑𝑑 = 3𝑦𝑦 4 𝑑𝑑𝑑𝑑
4𝑥𝑥
𝑑𝑑𝑑𝑑 + 𝑑𝑑𝑑𝑑 = 7 𝑑𝑑𝑑𝑑
𝑦𝑦
ES 21: Differential Equations for Engineers | Engr. Zephaniah G. Silabay
5
Unit 2.4 - Linear
Solution
For the linear differential equation
The left side of 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸 1 is almost equivalent to the total differential of the
product 𝐹𝐹 𝑥𝑥 � 𝑦𝑦 or, expanded,
𝑑𝑑 𝐹𝐹 𝑥𝑥 � 𝑦𝑦 = 𝐹𝐹 𝑥𝑥 𝑑𝑑𝑑𝑑 + 𝑦𝑦 𝑑𝑑𝑑𝑑 𝑥𝑥
ln 𝐹𝐹(𝑥𝑥) = � 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑
𝑭𝑭 𝒙𝒙 = 𝒆𝒆∫ 𝑷𝑷 𝒙𝒙 𝒅𝒅𝒅𝒅
𝑒𝑒 ∫ 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑
𝑑𝑑𝑑𝑑 + 𝑒𝑒 ∫ 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑
𝑃𝑃 𝑥𝑥 𝑦𝑦 𝑑𝑑𝑑𝑑 = 𝑒𝑒 ∫ 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑
𝑄𝑄 𝑥𝑥 𝑑𝑑𝑑𝑑, [𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸 2]
The left side of 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸 2 is simply the total differential of the product 𝑦𝑦 �
𝑒𝑒 ∫ 𝑃𝑃(𝑥𝑥)𝑑𝑑𝑑𝑑 (Product Rule):
𝑑𝑑 𝑦𝑦 � 𝑒𝑒 ∫ 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑 = 𝑒𝑒 ∫ 𝑃𝑃(𝑥𝑥)𝑑𝑑𝑑𝑑 � 𝑑𝑑𝑑𝑑 + 𝑦𝑦 � 𝑒𝑒 ∫ 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑 � 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑
Note that the left side of 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸 2 will always be the total differential of
the product of the dependent variable and the integrating factor.
ES 21: Differential Equations for Engineers | Engr. Zephaniah G. Silabay
9
Unit 2.4 - Linear
Solution
𝑒𝑒 ∫ 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 + 𝑒𝑒 ∫ 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑 𝑃𝑃 𝑥𝑥 𝑦𝑦 𝑑𝑑𝑑𝑑 = 𝑒𝑒 ∫ 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑
𝑄𝑄 𝑥𝑥 𝑑𝑑𝑑𝑑, [𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸 2]
We can therefore rewrite 𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸 2 as
𝑑𝑑 𝑦𝑦 � 𝑒𝑒 ∫ 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑
= 𝑒𝑒 ∫ 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑
𝑄𝑄 𝑥𝑥 𝑑𝑑𝑑𝑑, [𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸𝐸 3]
Integrating both sides,
� 𝑑𝑑 𝑦𝑦 � 𝑒𝑒 ∫ 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑
= � 𝑒𝑒 ∫ 𝑃𝑃 𝑥𝑥 𝑑𝑑𝑑𝑑
𝑄𝑄 𝑥𝑥 𝑑𝑑𝑑𝑑
𝒚𝒚 � 𝒆𝒆∫ 𝑷𝑷 𝒙𝒙 𝒅𝒅𝒅𝒅
= � 𝒆𝒆∫ 𝑷𝑷 𝒙𝒙 𝒅𝒅𝒅𝒅
𝑸𝑸 𝒙𝒙 𝒅𝒅𝒅𝒅
Linear in 𝒚𝒚 Linear in 𝒙𝒙
𝑑𝑑𝑑𝑑 + 𝑃𝑃 𝑥𝑥 𝑦𝑦 𝑑𝑑𝑑𝑑 = 𝑄𝑄 𝑥𝑥 𝑑𝑑𝑑𝑑 𝑑𝑑𝑑𝑑 + 𝑆𝑆 𝑦𝑦 𝑥𝑥 𝑑𝑑𝑑𝑑 = 𝑅𝑅 𝑦𝑦 𝑑𝑑𝑑𝑑
Pick out 𝑃𝑃(𝑥𝑥) or 𝑆𝑆(𝑦𝑦) to prepare you for the next step.
3. Determine the integrating factor.
Linear in 𝒚𝒚 Linear in 𝒙𝒙
𝐹𝐹 𝑥𝑥 = 𝑒𝑒 ∫ 𝑃𝑃(𝑥𝑥)𝑑𝑑𝑑𝑑 𝐹𝐹 𝑦𝑦 = 𝑒𝑒 ∫ 𝑆𝑆(𝑦𝑦)𝑑𝑑𝑑𝑑
ES 21: Differential Equations for Engineers | Engr. Zephaniah G. Silabay
11
Unit 2.4 - Linear
Steps to the Solution
4. Multiply the standard equation by the integrating factor.
5. Solve the resulting equation. Note that the integral of the left side of the
equation is always the product of the dependent variable and the
integrating factor.
1. Linear in 𝑦𝑦 or 𝑥𝑥?
The equation cannot be linear in 𝑥𝑥 since cot 2𝑥𝑥 is non-linear term.
The variable 𝑦𝑦 appears only in one term and in the first degree.
The equation must be linear in 𝑦𝑦.
ES 21: Differential Equations for Engineers | Engr. Zephaniah G. Silabay
13
Unit 2.4 - Linear
Linear: Example 1
Find the general solution for
𝑦𝑦 ′ = 𝑥𝑥 − 2𝑦𝑦 cot 2𝑥𝑥
2 cos 2𝑥𝑥
=� 𝑑𝑑𝑑𝑑
sin 2𝑥𝑥
Let 𝑢𝑢 = sin 2𝑥𝑥 , 𝑑𝑑𝑑𝑑 = 2 cos 2𝑥𝑥 𝑑𝑑𝑑𝑑. The integral becomes
1
= � 𝑑𝑑𝑑𝑑 = ln 𝑢𝑢 = ln sin 2𝑥𝑥
𝑢𝑢
Note that we didn’t add an integration constant at this point.
We then plug this value in to the integrating factor 𝐹𝐹(𝑥𝑥).
ES 21: Differential Equations for Engineers | Engr. Zephaniah G. Silabay
15
Unit 2.4 - Linear
Linear: Example 1
𝐹𝐹 𝑥𝑥 = 𝑒𝑒 ∫ 2 cot 2𝑥𝑥𝑑𝑑𝑑𝑑 = 𝑒𝑒 ln sin 2𝑥𝑥
𝐹𝐹 𝑥𝑥 = sin 2𝑥𝑥
4. Multiplying the integrating factor to the entire equation,
sin 2𝑥𝑥 𝑑𝑑𝑑𝑑 + sin 2𝑥𝑥 � 2 cot 2𝑥𝑥 � 𝑦𝑦 𝑑𝑑𝑑𝑑 = sin 2𝑥𝑥 � 𝑥𝑥 𝑑𝑑𝑑𝑑
The entire left side can be written as the total differential of the product of
the dependent variable and the integrating factor.
1 1
� 𝑥𝑥 sin 2𝑥𝑥 𝑑𝑑𝑑𝑑 = 𝑥𝑥 − cos 2𝑥𝑥 − � − cos 2𝑥𝑥 𝑑𝑑𝑑𝑑
2 2
1 1
� 𝑥𝑥 sin 2𝑥𝑥 𝑑𝑑𝑑𝑑 = − 𝑥𝑥 cos 2𝑥𝑥 + � cos 2𝑥𝑥 𝑑𝑑𝑑𝑑
2 2
1 1 1
� 𝑥𝑥 sin 2𝑥𝑥 𝑑𝑑𝑑𝑑 = − 𝑥𝑥 cos 2𝑥𝑥 + sin 2𝑥𝑥 + 𝑐𝑐
2 2 2
The general solution is now
1 1
𝑦𝑦 sin 2𝑥𝑥 = − 𝑥𝑥 cos 2𝑥𝑥 + sin 2𝑥𝑥 + 𝑐𝑐
2 4
ES 21: Differential Equations for Engineers | Engr. Zephaniah G. Silabay
18
Unit 2.4 - Linear
Linear: Example 1
1 1
𝑦𝑦 sin 2𝑥𝑥 = − 𝑥𝑥 cos 2𝑥𝑥 + sin 2𝑥𝑥 + 𝑐𝑐
2 4
𝟏𝟏 𝟏𝟏
𝒚𝒚 = − 𝒙𝒙 𝐜𝐜𝐜𝐜𝐜𝐜 𝟐𝟐𝟐𝟐 + + 𝒄𝒄 𝐜𝐜𝐜𝐜𝐜𝐜 𝟐𝟐𝟐𝟐
𝟐𝟐 𝟒𝟒
1. Linear in 𝑦𝑦 or 𝑥𝑥?
To check this, we expand the equation.
𝐹𝐹 𝑦𝑦 = 𝑒𝑒 ∫ 𝑆𝑆(𝑦𝑦)𝑑𝑑𝑑𝑑 = 𝑒𝑒 ∫ 2𝑦𝑦𝑑𝑑𝑑𝑑
To simplify the integrating factor, we solve for the integral
� 2𝑦𝑦 𝑑𝑑𝑑𝑑
Integrating, we get
� 2𝑦𝑦 𝑑𝑑𝑑𝑑 = 𝑦𝑦 2
𝑦𝑦 2 𝑦𝑦 2
𝑑𝑑 𝑥𝑥 � 𝑒𝑒 = 𝑒𝑒 � 2𝑦𝑦 3 𝑑𝑑𝑑𝑑
5. Integrating both sides,
𝑦𝑦 2 𝑦𝑦 2
� 𝑑𝑑 𝑥𝑥 � 𝑒𝑒 = � 𝑒𝑒 � 2𝑦𝑦 3 𝑑𝑑𝑑𝑑
𝑦𝑦 2 𝑦𝑦 2
𝑥𝑥 � 𝑒𝑒 = � 𝑒𝑒 � 2𝑦𝑦 3 𝑑𝑑𝑑𝑑
To integrate the right side, we use substitution, and then integration by parts.
ES 21: Differential Equations for Engineers | Engr. Zephaniah G. Silabay
23
Unit 2.4 - Linear
Linear: Example 2
𝑦𝑦 2 𝑦𝑦 2
𝑥𝑥 � 𝑒𝑒 = � 𝑒𝑒 � 2𝑦𝑦 3 𝑑𝑑𝑑𝑑
= 𝑤𝑤 𝑒𝑒 𝑤𝑤 − 𝑒𝑒 𝑤𝑤 + 𝑐𝑐
ES 21: Differential Equations for Engineers | Engr. Zephaniah G. Silabay
24
Unit 2.4 - Linear
Linear: Example 2
𝑦𝑦 2 𝑦𝑦2
𝑥𝑥 � 𝑒𝑒 = � 𝑒𝑒 � 2𝑦𝑦 3 𝑑𝑑𝑑𝑑
� 𝑒𝑒 𝑤𝑤 � 𝑤𝑤 𝑑𝑑𝑑𝑑 = 𝑤𝑤 𝑒𝑒 𝑤𝑤 − 𝑒𝑒 𝑤𝑤 + 𝑐𝑐
1. Linear in 𝑦𝑦 or 𝑥𝑥?
To check this, we expand the equation.
𝑑𝑑𝑑𝑑 + 𝑡𝑡 2 𝑑𝑑𝑑𝑑 + 2𝑠𝑠𝑡𝑡 3 𝑑𝑑𝑑𝑑 − 6𝑡𝑡 1 + 𝑡𝑡 2 2 𝑑𝑑𝑑𝑑 = 0
The equation cannot be linear in 𝑡𝑡 since 𝑡𝑡 2 and 𝑡𝑡 3 are a non-linear term.
The variable 𝑠𝑠 appears only in one term and in the first degree.
The equation must be linear in 𝑠𝑠.
Let us first simplify this before multiplying it to the entire equation by first solving for
the integral
2𝑡𝑡 3 2𝑡𝑡 � 𝑡𝑡 2 𝑢𝑢 − 1
� 2
𝑑𝑑𝑑𝑑 = � 2
𝑑𝑑𝑑𝑑 = � 𝑑𝑑𝑑𝑑
1 + 𝑡𝑡 1 + 𝑡𝑡 𝑢𝑢
Let’s try substituting 𝑢𝑢 = 1 + 𝑡𝑡 2 , giving us 𝑑𝑑𝑑𝑑 = 2𝑡𝑡 𝑑𝑑𝑑𝑑.
This also gives us 𝑡𝑡 2 = 𝑢𝑢 − 1.
ES 21: Differential Equations for Engineers | Engr. Zephaniah G. Silabay
28
Unit 2.4 - Linear
Linear: Example 3
𝑢𝑢 − 1
� 𝑑𝑑𝑑𝑑
𝑢𝑢
We can rewrite this integral as
𝑢𝑢 1 1
= � 𝑑𝑑𝑑𝑑 − � 𝑑𝑑𝑑𝑑 = � 1 𝑑𝑑𝑑𝑑 − � 𝑑𝑑𝑑𝑑
𝑢𝑢 𝑢𝑢 𝑢𝑢
= 𝑢𝑢 − ln 𝑢𝑢
Reverting to the original value of 𝑢𝑢 which is 𝑢𝑢 = 1 + 𝑡𝑡 2 ,
2𝑡𝑡 3 2 2
� 2
𝑑𝑑𝑑𝑑 = 1 + 𝑡𝑡 − ln(1 + 𝑡𝑡 )
1 + 𝑡𝑡
Substituting this to the integrating factor,
1+𝑡𝑡 2 −ln(1+𝑡𝑡 2 )
𝐹𝐹 𝑡𝑡 = 𝑒𝑒
ES 21: Differential Equations for Engineers | Engr. Zephaniah G. Silabay
29
Unit 2.4 - Linear
Linear: Example 3
1+𝑡𝑡 2 −ln(1+𝑡𝑡 2 )
𝐹𝐹 𝑡𝑡 = 𝑒𝑒
By the property of exponentials, we can rewrite this as
𝑡𝑡 2 − ln(1+𝑡𝑡 2)
𝐹𝐹 𝑡𝑡 = 𝑒𝑒 � 𝑒𝑒 � 𝑒𝑒
𝑡𝑡 2 ln 1+𝑡𝑡 2 −1
= 𝑒𝑒 � 𝑒𝑒 � 𝑒𝑒
𝑡𝑡 2
= 𝑒𝑒 � 𝑒𝑒 � 1 + 𝑡𝑡 2 −1
𝑡𝑡 2
𝑒𝑒 � 𝑒𝑒
𝐹𝐹(𝑡𝑡) =
1 + 𝑡𝑡 2
We now move on to Step 4.
= 3 � 𝑒𝑒 𝑢𝑢 𝑑𝑑𝑑𝑑 = 3𝑒𝑒 𝑢𝑢 + 𝑐𝑐
𝑐𝑐 = −1
This gives us a particular solution of
(𝟏𝟏 + 𝒕𝒕𝟐𝟐 )
𝒔𝒔 = 𝟑𝟑 𝟏𝟏 + 𝒕𝒕𝟐𝟐 − 𝟐𝟐
𝒆𝒆 𝒕𝒕
ES 21: Differential Equations for Engineers | Engr. Zephaniah G. Silabay
34
Unit 2.4 - Linear
Exercise
Find the general solution for
𝑑𝑑𝑑𝑑
1 + cos 𝑥𝑥 = sin 𝑥𝑥 (sin 𝑥𝑥 + sin 𝑥𝑥 cos 𝑥𝑥 − 𝑦𝑦)
𝑑𝑑𝑑𝑑