0% found this document useful (0 votes)
13 views8 pages

Problem Set 2 (2) 2

The document contains a problem set for EEF 210E Differential Equations, detailing solutions for various types of differential equations, including Bernoulli, Riccati, and second order linear homogeneous equations. Each problem is solved step-by-step, demonstrating methods such as substitution, integrating factors, and characteristic equations. The final solutions are provided for each differential equation presented.

Uploaded by

İlay Öztürk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views8 pages

Problem Set 2 (2) 2

The document contains a problem set for EEF 210E Differential Equations, detailing solutions for various types of differential equations, including Bernoulli, Riccati, and second order linear homogeneous equations. Each problem is solved step-by-step, demonstrating methods such as substitution, integrating factors, and characteristic equations. The final solutions are provided for each differential equation presented.

Uploaded by

İlay Öztürk
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

EEF 210E DIFFERENTIAL EQUATIONS

PROBLEM SET 2

1. Solve the differential equation 𝒚′ + 𝒙−𝟏 𝒚 = 𝒙𝟓 𝒚𝟐 .

Recall: The differential equations in the form of 𝒚′ + 𝒑(𝒙)𝒚 = 𝒈(𝒙)𝒚𝒏 are called as Bernoulli equations.
Bernoulli equations can be reduced to linear differential equations via 𝒖 = 𝒚𝟏−𝒏 substitution.

Let 𝑢 = 𝑦1−2 ⇒ 𝑢 = 𝑦 −1 ⇒ 𝑦 = 𝑢−1 and 𝑢′ = −𝑦 −2 𝑦 ′ ⇒ 𝑦 ′ = −𝑦 2 𝑢′ .

Substitute 𝑦 ′ = −𝑦 2 𝑢′ and 𝑦 = 𝑢−1 into the equation.


𝑦 ′ =−𝑦 2 𝑢′
𝑦 ′ + 𝑥 −1 𝑦 = 𝑥 5 𝑦 2 ⇒ −𝑦 2 𝑢′ = −𝑥 −1 𝑦 + 𝑥 5 𝑦 2
×𝑦 −1 𝑦=𝑢−1 𝑢′ 𝑥 5 ×−𝑢 ′
⇒ −𝑦𝑢′ = −𝑥 −1 + 𝑥 5 𝑦 ⇒ − = −𝑥 −1 + ⇒ 𝑢 = 𝑥 −1 𝑢 − 𝑥 5
𝑢 𝑢
⇒ 𝒖′ − 𝒙−𝟏 𝒖 = −𝒙𝟓

The linear differential equation 𝑢′ − 𝑥 −1 𝑢 = −𝑥 5 can be solved by integrating factor method.


−1 𝑑𝑥 1 1
𝜇 = 𝑒 ∫ −𝑥 = 𝑒 − ln|𝑥| = = ⇒ 𝝁 = 𝒙−𝟏
𝑒 ln|𝑥| 𝑥
×𝜇𝑑𝑥 −1 𝑢
⇒ = −𝑥 −1 𝑥 5 = −𝑥 4 ⇒ 𝑑𝑥 −1 𝑢 = −𝑥 4 𝑑𝑥
𝑑𝑥
1
⇒ ∫ 𝑑𝑥 −1 𝑢 = − ∫ 𝑥 4 𝑑𝑥 ⇒ 𝑥 −1 𝑢 = − 𝑥 5 + 𝑐
5
𝟏
⇒ 𝒖 = − 𝒙𝟒 + 𝒙−𝟏 𝒄
𝟓

To obtain the solution, resubstitute 𝑦 = 𝑢−1 as 𝑢 = 𝑦 −1.


1 4 −1
𝑢=𝑦 −1 1
𝑢 =− 𝑥 +𝑥 𝑐 ⇒ 𝑦 −1 = − 𝑥 4 + 𝑥 −1 𝑐
5 5
1
⇒ 𝑦=
1
− 𝑥 4 + 𝑥 −1 𝑐
5
𝟓𝒙
⇒ 𝒚=− 𝟓
𝒙 + 𝟓𝒄
2. Find the general solution for the differential equation 𝒚′ = 𝟐𝒙 − 𝒙−𝟏 𝒚 + 𝒙−𝟑 𝒚𝟐 where 𝒚𝟏 = 𝒙𝟐 is a solution.

Recall: The differential equations in the form of 𝒚′ = 𝒒𝟎 (𝒙) + 𝒒𝟏 (𝒙)𝒚 + 𝒒𝟐 (𝒙)𝒚𝟐 are called as Riccati equations.
For Riccati equations, general solution is obtained via 𝒚 = 𝒚𝟏 + 𝒖 substitution.

Substitute 𝑦 = 𝑦1 + 𝑢 = 𝑥 2 + 𝑢 into the equation.


𝑦=𝑥 2 +𝑢
𝑦 ′ = 2𝑥 − 𝑥 −1 𝑦 + 𝑥 −3 𝑦 2 ⇒ 𝑦1′ + 𝑢′ = 2𝑥 − 𝑥 −1 (𝑦1 + 𝑢) + 𝑥 −3 (𝑦1 + 𝑢)2
2
⇒ 2𝑥 + 𝑢′ = 2𝑥 − 𝑥 −1 𝑥 2 − 𝑥 −1 𝑢 + 𝑥 −3 𝑥 2 + 2𝑥 −3 𝑥 2 𝑢 + 𝑥 −3 𝑢2
⇒ 2𝑥 + 𝑢′ = 2𝑥 − 𝑥 − 𝑥 −1 𝑢 + 𝑥 + 2𝑥 −1 𝑢 + 𝑥 −3 𝑢2
⇒ 2𝑥 + 𝑢′ = 2𝑥 − 𝑥 − 𝑥 −1 𝑢 + 𝑥 + 2𝑥 −1 𝑢 + 𝑥 −3 𝑢2
⇒ 𝒖′ = 𝒙−𝟏 𝒖 + 𝒙−𝟑 𝒖𝟐

The obtained differential equation 𝑢′ = 𝑥 −1 𝑢 + 𝑥 −3 𝑢2 is a Bernoulli equation. Therefore, the 𝑧 = 𝑢1−2 = 𝑢−1
substitution can be used to convert the equation into a linear differential equation.
𝑧 = 𝑢−1 ⇒ 𝑧 ′ = (𝑢−1 )′ = −𝑢−2 𝑢′
⇒ 𝑧 ′ = −𝑢−2 (𝑥 −1 𝑢 + 𝑥 −3 𝑢2 ) = −𝑥 −1 𝑢−1 − 𝑥 −3
𝑧=𝑢−1
⇒ 𝒛′ + 𝒙−𝟏 𝒛 = −𝒙−𝟑

The linear differential equation 𝑧 ′ + 𝑥 −1 𝑧 = −𝑥 −3 can be solved by integrating factor method.


−1 𝑑𝑥
𝜇 = 𝑒∫ 𝑥 = 𝑒 ln|𝑥| ⇒ 𝝁 = 𝒙
×𝜇𝑑𝑥𝑧
⇒ = −𝑥 −3 𝑥 = −𝑥 −2
𝑑𝑥
⇒ 𝑑𝑥𝑧 = −𝑥 −2 𝑑𝑥

⇒ ∫ 𝑑𝑥𝑧 = − ∫ 𝑥 −2 𝑑𝑥 ⇒ 𝑥𝑧 = 𝑥 −1 + 𝑐

⇒ 𝒛 = 𝒙−𝟐 + 𝒙−𝟏 𝒄
𝑢=𝑧 −1
⇒ 𝑢−1 = 𝑥 −2 + 𝑥 −1 𝑐
1
⇒ 𝑢=
𝑥 −2 + 𝑥 −1 𝑐
𝒙𝟐
⇒ 𝒖=
𝟏 + 𝒙𝒄

The general solution of the Riccati equation is written below.


𝑥22
𝑦 = 𝑦1 + 𝑢 = 𝑥 +
1 + 𝑥𝑐
𝟐𝒙𝟐 + 𝒙𝟑 𝒄
⇒𝒚=
𝟏 + 𝒙𝒄
3. Solve the differential equation 𝒚′′ − 𝟔𝒚′ + 𝟓𝒚 = 𝟎.

Recall: The differential equations in the form of 𝒚′′ + 𝒑𝒚′ + 𝒒𝒚 = 𝟎 are called second order linear homogeneous
equations with constant coefficients. The general solution for these equations is obtained based on the roots of
characteristic (auxiliary) quadratic equation 𝒌𝟐 + 𝒑𝒌 + 𝒒 = 𝟎.

The characteristic equation for 𝑦 ′′ − 6𝑦 ′ + 5𝑦 = 0 is written below.


𝑘 2 − 6𝑘 + 5 = 0
The roots of the characteristic equation can be obtained via factorization method (discriminant method can also
be used) as follows.
𝑘 2 − 6𝑘 + 5 = (𝑘 − 1) ⋅ (𝑘 − 5) = 0
⇒ 𝒌𝟏 = 𝟏, 𝒌𝟐 = 𝟓

The roots of the characteristic equation 𝑘1 and 𝑘2 are real and distinct (where the discriminant of the equation
Δ > 0). In this case, the general solution will be directly written as follows.
𝑦 = 𝑐1 𝑒 𝑘1𝑥 + 𝑐2 𝑒 𝑘2𝑥
⇒ 𝒚 = 𝒄𝟏 𝒆𝒙 + 𝒄𝟐 𝒆𝟓𝒙

4. Solve the differential equation 𝒚′′ − 𝟔𝒚′ + 𝟗𝒚 = 𝟎.

Recall: The differential equations in the form of 𝒚′′ + 𝒑𝒚′ + 𝒒𝒚 = 𝟎 are called second order linear homogeneous
equations with constant coefficients. The general solution for these equations is obtained based on the roots of
characteristic (auxiliary) quadratic equation 𝒌𝟐 + 𝒑𝒌 + 𝒒 = 𝟎.

The characteristic equation for 𝑦 ′′ − 6𝑦 ′ + 9𝑦 = 0 is written below.


𝑘 2 − 6𝑘 + 9 = 0
The roots of the characteristic equation can be obtained via factorization method (discriminant method can also
be used) as follows.
𝑘 2 − 6𝑘 + 9 = (𝑘 − 3) ⋅ (𝑘 − 3) = 0
⇒ 𝒌𝟏,𝟐 = 𝟑

The characteristic equation has one real second order (repeated) root 𝑘1,2 (where the discriminant of the equation
Δ = 0). In this case, the general solution will be written as follows.
𝑦 = 𝑐1 𝑒 𝑘1,2𝑥 + 𝑐2 𝑥𝑒 𝑘1,2 𝑥
⇒ 𝒚 = 𝒄𝟏 𝒆𝟑𝒙 + 𝒄𝟐 𝒙𝒆𝟑𝒙
5. Solve the differential equation 𝒚′′ − 𝟒𝒚′ + 𝟓𝒚 = 𝟎.

Recall: The differential equations in the form of 𝒚′′ + 𝒑𝒚′ + 𝒒𝒚 = 𝟎 are called second order linear homogeneous
equations with constant coefficients. The general solution for these equations is obtained based on the roots of
characteristic (auxiliary) quadratic equation 𝒌𝟐 + 𝒑𝒌 + 𝒒 = 𝟎.

The characteristic equation for 𝑦 ′′ − 4𝑦 ′ + 5𝑦 = 0 is written below.


𝑘 2 − 4𝑘 + 5 = 0

The roots of the characteristic equation can be obtained via discriminant method as follows.
Δ = (−4)2 − 4 ⋅ 1 ⋅ 5 = 16 − 20
⇒ 𝚫 = −𝟒

−(−4) ± √Δ 4 ± √−4 4 ± 2√−1


⇒ 𝑘1,2 = = =
2⋅1 2 2
⇒ 𝑘1,2 = 2 ± √−1 where √−1 = 𝑖

⇒ 𝒌𝟏 = 𝟐 + 𝒊, 𝒌𝟐 = 𝟐 − 𝒊

The roots of the characteristic equation 𝑘1 and 𝑘2 are complex conjugate (where the discriminant of the equation
Δ < 0). In this case, the general solution will be written as follows.
𝑦 = 𝑐1 𝑒 𝑘1𝑥 + 𝑐2 𝑒 𝑘2𝑥

⇒ 𝑦 = 𝑐1 𝑒 (2+𝑖)𝑥 + 𝑐2 𝑒 (2−𝑖)𝑥 = 𝑐1 𝑒 2𝑥 𝑒 𝑖𝑥 + 𝑐2 𝑒 2𝑥 𝑒 −𝑖𝑥

⇒ 𝑦 = 𝑒 2𝑥 (𝑐1 𝑒 𝑖𝑥 + 𝑐2 𝑒 −𝑖𝑥 )

The complex exponentials can be handled using the Euler’s formula 𝑒 𝑖𝜃 = cos(𝜃) + sin(𝜃) (and its variant
𝑒 −𝑖𝜃 = cos(𝜃) − sin(𝜃)) below.

𝑦 = 𝑒 2𝑥 (𝑐1 𝑒 𝑖𝑥 + 𝑐2 𝑒 −𝑖𝑥 ) = 𝑒 2𝑥 (𝑐1 (cos(𝑥) + sin(𝑥)) + 𝑐2 (cos(𝑥) − sin(𝑥)))

⇒ 𝑦 = 𝑒 2𝑥 ((𝑐1 + 𝑐2 ) cos(𝑥) + (𝑐1 − 𝑐2 ) sin(𝑥))

⇒ 𝑦 = (𝑐1 + 𝑐2 )𝑒 2𝑥 cos(𝑥) + (𝑐1 − 𝑐2 )𝑒 2𝑥 sin(𝑥)

Where 𝐴 = (𝑐1 + 𝑐2 ) and 𝐵 = (𝑐1 − 𝑐2 ), the general solution is written below.


𝒚 = 𝑨𝒆𝟐𝒙 𝐜𝐨𝐬(𝒙) + 𝑩𝒆𝟐𝒙 𝐬𝐢𝐧(𝒙)
6. Find the general solution for the differential equation 𝟐𝒙𝟐 𝒚′′ + 𝒙𝒚′ − 𝟑𝒚 = 𝟎 where 𝒚𝟏 = 𝒙−𝟏 is a solution.

Recall: The differential equations in the form of 𝒑(𝒙)𝒚′′ + 𝒒(𝒙)𝒚′ + 𝒓(𝒙)𝒚 = 𝟎 are called second order linear
homogeneous differential equations with nonconstant coefficients. The general solution for these equations can
be obtained by reduction of order method (if there is already a known solution).

Since 𝑦1 = 𝑥 −1 is one given solution, the second solution can be written in form of 𝒚𝟐 = 𝒗(𝒙)𝒚𝟏 . So, the second
solution and its derivatives are written below.
𝑦2 = 𝑣𝑦1 = 𝑣𝑥 −1
𝑦2′ = 𝑣 ′ 𝑥 −1 − 𝑣𝑥 −2
𝑦2′′ = 𝑣 ′′ 𝑥 −1 − 𝑣 ′ 𝑥 −2 − 𝑣 ′ 𝑥 −2 + 2𝑣𝑥 −3 = 𝑣 ′′ 𝑥 −1 − 2𝑣 ′ 𝑥 −2 + 2𝑣𝑥 −3

After plugging these terms into the equation, it is written below.


2𝑥 2 𝑦2′′ + 𝑥𝑦2′ − 3𝑦2 = 0
⇒ 2𝑥 2 (𝑣 ′′ 𝑥 −1 − 2𝑣 ′ 𝑥 −2 + 2𝑣𝑥 −3 ) + 𝑥(𝑣 ′ 𝑥 −1 − 𝑣𝑥 −2 ) − 3(𝑣𝑥 −1 ) = 0
⇒ 2𝑥𝑣 ′′ + (−4 + 1)𝑣 ′ + (4 − 1 − 3)𝑥 −1 𝑣 = 0
⇒ 2𝑥𝑣 ′′ − 3𝑣 ′ = 0

Substitutions 𝑣 ′ = 𝑤 and 𝑣 ′′ = 𝑤′ will reduce the obtained linear equation into the first order.
3
2𝑥𝑣 ′′ − 3𝑣 ′ = 0 ⇒ 2𝑥𝑤 ′ − 3𝑤 = 0 ⇒ 𝑤 ′ = 𝑥 −1 𝑤
2
𝑑𝑤 3 −1 𝑑𝑤 3 𝑑𝑥 3 𝟑
⇒ = 𝑥 𝑤 ⇒ ∫ = ∫ ⇒ ln|𝑤| = ln|𝑥| ⇒ 𝒘 = 𝒌𝟏 𝒙𝟐
𝑑𝑥 2 𝑤 2 𝑥 2
3 3 𝟐 𝟓
⇒ 𝑣 ′ = 𝑘1 𝑥 2 ⇒ ∫ 𝑑𝑣 = 𝑘1 ∫ 𝑥 2 𝑑𝑥 ⇒ 𝒗 = 𝒌𝟏 𝒙𝟐 + 𝒌𝟐
𝟓

𝟓
5
The constants can be chosen arbitrarily as 𝑘1 = 2 and 𝑘2 = 0 for simplification as 𝒗 = 𝒙𝟐 . Then, by plugging 𝑣
and 𝑦1 terms into 𝑦2 = 𝑣𝑦1 equation, the second solution is obtained below.
5 𝟑
𝑦2 = 𝑣𝑦1 = 𝑥 2 𝑥 −1 ⇒ 𝒚𝟐 = 𝒙𝟐

Finally, the general solution for the original differential equation can be written as follows.
𝑦 = 𝑐1 𝑦1 + 𝑐2 𝑦2
⇒ 𝒚 = 𝒄𝟏 𝒙−𝟏 + 𝒄𝟐 𝒙𝟑/𝟐
7. Find general solution for the differential equation 𝒚′′ − 𝟓𝒚′ + 𝟒𝒚 = 𝒆𝟒𝒙 + 𝐬𝐢𝐧(𝒙).

Recall: The differential equations in the form of 𝒚′′ + 𝒑𝒚′ + 𝒒𝒚 = 𝒈(𝒙) are called second order linear
nonhomogeneous differential equations with constant coefficients. For these equations, the general solution can
be obtained via undetermined coefficients method.

Note: Where the general solution 𝑦 is the superposition of complementary solution 𝑦𝑐 (for homogeneous part)
and particular solution 𝑦𝑝 (for nonhomogeneous part) as 𝒚 = 𝒚𝒄 + 𝒚𝒑 .

First, the complementary solution can be found easily by factorization of the characteristic equation.
𝑦 ′′ − 5𝑦 ′ + 4𝑦 = 0 ⇒ 𝑘 2 − 5𝑘 + 4 = (𝑘 − 1) ⋅ (𝑘 − 4) = 0 ⇒ 𝒌𝟏 = 𝟏, 𝒌𝟐 = 𝟒 (distinct real roots)
⇒ 𝒚𝒄 = 𝒄𝟏 𝒆𝒙 + 𝒄𝟐 𝒆𝟒𝒙

Then, the particular solution should be calculated as superposition of two parts as


𝒚𝒑 = 𝒚𝒑𝟏 + 𝒚𝒑𝟐 where the right-hand side of the equation consists of two different type functions.

𝑦𝑝1 is the particular solution for 𝒚′′ − 𝟓𝒚′ + 𝟒𝒚 = 𝒆𝟒𝒙 . So, 𝑦𝑝1 will be in exponential form; however, 𝐴𝑒 4𝑥 is
already in the complementary solution. Thus, 𝒚𝒑𝟏 = 𝑨𝒙𝒆𝟒𝒙 is chosen. Then, 𝐴 can be calculated by plugging 𝑦𝑝1
and its derivatives into the equation.
𝑦𝑝1 = 𝐴𝑥𝑒 4𝑥 ⇒ 𝑦𝑝′ 1 = 𝐴𝑒 4𝑥 + 4𝐴𝑥𝑒 4𝑥 ⇒ 𝑦𝑝′′1 = 8𝐴𝑒 4𝑥 + 16𝐴𝑥𝑒 4𝑥
𝑦𝑝′′1 − 5𝑦𝑝′ 1 + 4𝑦𝑝1 = 8𝐴𝑒 4𝑥 + 16𝐴𝑥𝑒 4𝑥 − 5 ⋅ (𝐴𝑒 4𝑥 + 4𝐴𝑥𝑒 4𝑥 ) + 4𝐴𝑥𝑒 4𝑥 = 𝑒 4𝑥
𝟏
⇒ (8 − 5) ⋅ 𝐴𝑒 4𝑥 + (16 − 20 + 4) ⋅ 𝐴𝑥𝑒 4𝑥 = 𝑒 4𝑥 ⇒ 3𝐴𝑒 4𝑥 = 𝑒 4𝑥 ⇒ 3𝐴 = 1 ⇒ 𝑨 =
𝟑
𝟏 𝟒𝒙
𝒚𝒑𝟏 = 𝒙𝒆
𝟑
𝑦𝑝2 is the particular solution for 𝒚′′ − 𝟓𝒚′ + 𝟒𝒚 = 𝐬𝐢𝐧(𝒙) . So, 𝒚𝒑𝟐 = 𝑨 𝐜𝐨𝐬(𝒙) + 𝑩 𝐬𝐢𝐧(𝒙) is chosen. Then, 𝐴
and B can be calculated by plugging 𝑦𝑝2 and its derivatives into the equation.
𝑦𝑝2 = 𝐴 cos(𝑥) + 𝐵 sin(𝑥) ⇒ 𝑦𝑝′ 2 = −𝐴 sin(𝑥) + 𝐵 cos(𝑥) ⇒ 𝑦𝑝′′2 = −𝐴 cos(𝑥) − 𝐵 sin(𝑥)
𝑦𝑝′′2 − 5𝑦𝑝′ 2 + 4𝑦𝑝2 = sin(𝑥)
⇒ −𝐴 cos(𝑥) − 𝐵 sin(𝑥) − 5 ⋅ (−𝐴 sin(𝑥) + 𝐵 cos(𝑥)) + 4 ⋅ (𝐴 cos(𝑥) + 𝐵 sin(𝑥)) = sin(𝑥)
3𝐴 − 5𝐵 = 0
⇒ (3𝐴 − 5𝐵) ⋅ cos(𝑥) + (5𝐴 + 3𝐵) ⋅ sin(𝑥) = sin(𝑥) ⇒ {
5𝐴 + 3𝐵 = 1
3 3 34 𝟓 𝟑
⇒ 𝐵 = 𝐴 ⇒ 5𝐴 + 3𝐵 = 5𝐴 + 3 ⋅ 𝐴 = 𝐴=1 ⇒ 𝑨= ,𝑩 =
5 5 5 𝟑𝟒 𝟑𝟒
𝟓 𝟑
𝒚𝒑𝟐 = 𝐜𝐨𝐬(𝒙) + 𝐬𝐢𝐧(𝒙)
𝟑𝟒 𝟑𝟒

Finally, the general solution can be written as 𝒚 = 𝒚𝒄 + 𝒚𝒑 = 𝒚𝒄 + 𝒚𝒑𝟏 + 𝒚𝒑𝟐 below.


𝟏 𝟓 𝟑
𝒚 = 𝒄𝟏 𝒆𝒙 + 𝒄𝟐 𝒆𝟒𝒙 + 𝒙𝒆𝟒𝒙 + 𝐜𝐨𝐬(𝒙) + 𝐬𝐢𝐧(𝒙)
𝟑 𝟑𝟒 𝟑𝟒
8. Find the general solution for the differential equation 𝒚′′ + 𝒚 = 𝐬𝐢𝐧(𝒙).

Recall: The differential equations in the form of 𝒚′′ + 𝒑𝒚′ + 𝒒𝒚 = 𝒈(𝒙) are called second order linear
nonhomogeneous differential equations with constant coefficients. The general solution for these equations can
also be obtained by variation of parameters method (if the complementary solution is already known).

First, the complementary solution of the equation can be calculated based on the characteristic equation.
𝑦 ′′ + 𝑦 = 0 ⇒ 𝑘 2 + 1 = 0 ⇒ 𝑘 2 = −1 ⇒ 𝒌𝟏 = 𝒊, 𝒌𝟐 = 𝒌∗𝟏 = −𝒊
𝑦𝑐 = 𝑐1 𝑦1 + 𝑐2 𝑦2 ⇒ 𝒚𝒄 = 𝒄𝟏 𝐜𝐨𝐬(𝒙) + 𝒄𝟐 𝐬𝐢𝐧(𝒙)

Solution can be written as 𝒚 = 𝒖𝟏 𝐜𝐨𝐬(𝒙) + 𝒖𝟐 𝐬𝐢𝐧(𝒙) and its derivative is given below.
𝑦 ′ = 𝑢1′ cos(𝑥) − 𝑢1 sin(𝑥) + 𝑢2′ sin(𝑥) + 𝑢2 cos (𝑥)

Then, assume 𝒖′𝟏 𝐜𝐨𝐬(𝒙) + 𝒖′𝟐 𝐬𝐢𝐧(𝒙) = 𝟎. So, the original differential equation can be rewritten as follows.
𝑦 ′ = −𝑢1 sin(𝑥) + 𝑢2 cos(𝑥)
𝑦 ′′ = −𝑢1′ sin(𝑥) − 𝑢1 cos(𝑥) + 𝑢2′ cos(𝑥) − 𝑢2 sin(𝑥)
𝑦 ′′ + 𝑦 = −𝑢1′ sin(𝑥) − 𝑢1 cos(𝑥) + 𝑢2′ cos(𝑥) − 𝑢2 sin(𝑥) + 𝑢1 cos(𝑥) + 𝑢2 sin(𝑥) = sin(𝑥)
𝒚′′ + 𝒚 = −𝒖′𝟏 𝐬𝐢𝐧(𝒙) + 𝒖′𝟐 𝐜𝐨𝐬(𝒙) = 𝐬𝐢𝐧(𝒙)

To obtain 𝒖𝟏 and 𝒖𝟐 , the set of two equations below should be solved.


𝒖′𝟏 𝐜𝐨𝐬(𝒙) + 𝒖′𝟐 𝐬𝐢𝐧(𝒙) = 𝟎 sin(𝑥)
′ ′ } ⇒ 𝑢1′ = −𝑢2′
−𝒖𝟏 𝐬𝐢𝐧(𝒙) + 𝒖𝟐 𝐜𝐨𝐬(𝒙) = 𝐬𝐢𝐧(𝒙) cos(𝑥)
sin(𝑥) sin2 (𝑥)
⇒ 𝑢2′ sin(𝑥) + 𝑢2′ cos(𝑥) = sin(𝑥) ⇒ 𝑢2′ ( + cos(𝑥)) = sin(𝑥)
cos(𝑥) cos(𝑥)
sin2 (𝑥) + cos 2 (𝑥) 1
⇒ 𝑢2′ ( ) = sin(𝑥) ⇒ 𝑢2′ ( ) = sin(𝑥) ⇒ 𝒖′𝟐 = 𝐜𝐨𝐬(𝒙) 𝐬𝐢𝐧(𝒙)
cos(𝑥) cos(𝑥)
sin(𝑥) sin(𝑥)
⇒ 𝑢1′ = −𝑢2′ ⇒ 𝑢1′ = − cos(𝑥) sin(𝑥) ⇒ 𝒖′𝟏 = − 𝐬𝐢𝐧𝟐 (𝒙)
cos(𝑥) cos(𝑥)
𝒙 𝟏
𝑢1 = ∫ − sin2 (𝑥) 𝑑𝑥 ⇒ 𝒖𝟏 = − + 𝐬𝐢𝐧(𝒙) 𝐜𝐨𝐬(𝒙) + 𝑨
𝟐 𝟐
𝟏
𝑢2 = ∫ cos(𝑥) sin(𝑥) 𝑑𝑥 ⇒ 𝒖𝟐 = − 𝐜𝐨𝐬𝟐 (𝒙) + 𝑩
𝟐

Finally, plugging the obtained 𝒖𝟏 and 𝒖𝟐 into the solution 𝒚 = 𝒖𝟏 𝐜𝐨𝐬(𝒙) + 𝒖𝟐 𝐬𝐢𝐧(𝒙).
𝑥 1 1
𝑦 = (− + sin(𝑥) cos(𝑥) + 𝐴) cos(𝑥) + (− cos 2 (𝑥) + 𝐵) sin(𝑥)
2 2 2
𝑥 1 1
⇒ 𝑦 = − cos(𝑥) + sin(𝑥) cos2 (𝑥) + 𝐴 cos(𝑥) − cos2 (𝑥) sin(𝑥) + 𝐵 sin(𝑥)
2 2 2
𝟏
⇒ 𝒚 = 𝑨 𝐜𝐨𝐬(𝒙) + 𝑩 𝐬𝐢𝐧(𝒙) − 𝒙 𝐜𝐨𝐬(𝒙)
𝟐
9. Find the general solution for the differential equation below.
𝒆𝒙
𝒚′′ − 𝟐𝒚′ + 𝒚 =
𝒙𝟐 + 𝟏

Recall: The differential equations in the form of 𝒚′′ + 𝒑𝒚′ + 𝒒𝒚 = 𝒈(𝒙) are called second order linear
nonhomogeneous differential equations with constant coefficients. The general solution for these equations can
also be obtained by variation of parameters method using Wronskian (if the complementary solution is already
known).

First, the complementary solution of the equation can be calculated based on the characteristic equation.
𝑦 ′′ − 2𝑦 ′ + 𝑦 = 0 ⇒ 𝑘 2 − 2𝑘 + 1 = (𝑘 − 1)2 ⇒ 𝒌𝟏,𝟐 = 𝟏 (a repeated root)

𝑦𝑐 = 𝑐1 𝑒 𝑘1,2 + 𝑐2 𝑥𝑒 𝑘1,2 ⇒ 𝒚𝒄 = 𝒄𝟏 𝒆𝒙 + 𝒄𝟐 𝒙𝒆𝒙

Second, the Wronskian for the solutions 𝒚𝟏 = 𝒆𝒙 , 𝒚𝟐 = 𝒙𝒆𝒙 is shown below.


𝑦1 𝑦2 𝑒𝑥 𝑥𝑒 𝑥
𝑊(𝑦1 , 𝑦2 ) = |𝑦 ′ 𝑦2 ′ | = | | = (𝑒 𝑥 (𝑒 𝑥 + 𝑥𝑒 𝑥 )) − (𝑒 𝑥 𝑥𝑒 𝑥 ) = 𝑒 2𝑥 + 𝑥𝑒 2𝑥 − 𝑥𝑒 2𝑥
1 𝑒𝑥 𝑒 + 𝑥𝑒 𝑥
𝑥

⇒ 𝑾(𝒚𝟏 , 𝒚𝟐 ) = 𝒆𝟐𝒙

Then, the particular solution of the equation is obtained as follows.


𝑦𝑝 = 𝑦1 𝑢1 + 𝑦2 𝑢2
𝑦2 𝑔(𝑥) 𝑦1 𝑔(𝑥)
for 𝑢1 = − ∫ 𝑑𝑥 , 𝑢2 = ∫ 𝑑𝑥
𝑊(𝑦1 , 𝑦2 ) 𝑊(𝑦1 , 𝑦2 )
𝑒𝑥
where 𝑦1 = 𝑒 𝑥 , 𝑦2 = 𝑥𝑒 𝑥 , 𝑔(𝑥) = , 𝑊(𝑦1 , 𝑦2 ) = 𝑒 2𝑥
𝑥2 + 1
𝑒𝑥 𝑒𝑥
𝑦2 𝑔(𝑥) 𝑦1 𝑔(𝑥) 𝑥𝑒 𝑥 𝑒𝑥 2
⇒ 𝑦𝑝 = −𝑦1 ∫ 𝑑𝑥 + 𝑦2 ∫ 𝑑𝑥 = −𝑒 𝑥 ∫ 𝑥2 + 1 𝑑𝑥 + 𝑥𝑒 𝑥 ∫ 𝑥 + 1 𝑑𝑥
𝑊(𝑦1 , 𝑦2 ) 𝑊(𝑦1 , 𝑦2 ) 𝑒 2𝑥 𝑒 2𝑥
𝑥𝑒 2𝑥 𝑒 2𝑥
2
⇒ 𝑦𝑝 = −𝑒 𝑥 ∫ 𝑥 + 1 𝑑𝑥 + 𝑥𝑒 𝑥 ∫ 𝑥 + 1 𝑑𝑥 = −𝑒 𝑥 ∫ 𝑥 𝑑𝑥 + 𝑥𝑒 𝑥 ∫ 1 𝑑𝑥
2

𝑒 2𝑥 𝑒 2𝑥 𝑥2 + 1 𝑥2 + 1
𝟏
⇒ 𝒚𝒑 = − 𝒆𝒙 𝐥𝐧|𝒙𝟐 + 𝟏| + 𝒙𝒆𝒙 𝐭𝐚𝐧−𝟏 (𝒙)
𝟐

Finally, the general solution for the differential equation is given per 𝑦 = 𝑦𝑐 + 𝑦𝑝 .
𝟏
𝒚 = 𝒄𝟏 𝒆𝒙 + 𝒄𝟐 𝒙𝒆𝒙 − 𝒆𝒙 𝐥𝐧|𝒙𝟐 + 𝟏| + 𝒙𝒆𝒙 𝐭𝐚𝐧−𝟏 (𝒙)
𝟐

You might also like