• Tidak ada hasil yang ditemukan

Exact Equations and Integrating Factor

N/A
N/A
Protected

Academic year: 2023

Membagikan "Exact Equations and Integrating Factor"

Copied!
18
0
0

Teks penuh

(1)

Ordinary Differential Equations

Exact Equations and Integrating Factor Abadi

Universitas Negeri Surabaya

(2)

Exact Equations & Integrating Factors

ο‚΄ Consider a first order ODE of the form 𝑀 π‘₯, 𝑦 + 𝑁 π‘₯, 𝑦 𝑦′ = 0

ο‚΄ Suppose there is a function  such that πœ“π‘₯ π‘₯, 𝑦 = 𝑀 π‘₯, 𝑦 , πœ“π‘¦ π‘₯, 𝑦 = 𝑁(π‘₯, 𝑦)

and such that πœ“ π‘₯, 𝑦 = 𝑐 defines 𝑦 = πœ™(π‘₯) implicitly.

Then

𝑀 π‘₯, 𝑦 + 𝑁 π‘₯, 𝑦 𝑦′ = πœ•πœ“

πœ•π‘₯ + πœ•πœ“

πœ•π‘¦ 𝑑𝑦

𝑑π‘₯ = 𝑑

𝑑π‘₯ πœ“(π‘₯, πœ™ π‘₯ ) and hence the original ODE becomes

𝑑

𝑑π‘₯ πœ“ π‘₯, πœ™ π‘₯ = 0

ο‚΄ Thus πœ“ π‘₯, 𝑦 = 𝑐 defines a solution implicitly.

ο‚΄ In this case, the ODE is said to be exact.

(3)

Suppose an ODE can be written in the form

𝑀 π‘₯, 𝑦 + 𝑁 π‘₯, 𝑦 𝑦

β€²

= 0 (1)

where the functions 𝑀, 𝑁, 𝑀𝑦 and 𝑁π‘₯ are all continuous in the rectangular region β„›: π‘₯, 𝑦 ∈ 𝛼, 𝛽 Γ— (𝛾, 𝛿). Then Eq. (1) is an exact differential equation iff

𝑀

𝑦

π‘₯, 𝑦 = 𝑁

π‘₯

π‘₯, 𝑦 , βˆ€ π‘₯, 𝑦 ∈ β„› (2)

That is, there exists a function πœ“ satisfying the conditions

πœ“

π‘₯

π‘₯, 𝑦 = 𝑀 π‘₯, 𝑦 , πœ“

𝑦

π‘₯, 𝑦 = 𝑁 π‘₯, 𝑦 (3)

iff 𝑀 and 𝑁 satisfy Eq. (2).

Theorem 1

(4)

Example 1: Exact Equation

(1 of 4)

Consider the following differential equation.

𝑑𝑦

𝑑π‘₯ = βˆ’ π‘₯ + 4𝑦 4π‘₯ βˆ’ 𝑦 Then 𝑀 π‘₯, 𝑦 = π‘₯ + 4𝑦, 𝑁 π‘₯, 𝑦 = 4π‘₯ βˆ’ 𝑦 and hence

𝑀𝑦 π‘₯, 𝑦 = 4 = 𝑁π‘₯ π‘₯, 𝑦 β‡’ ODE is exact From Theorem 1, there exist πœ“ π‘₯, 𝑦 such that

πœ“π‘₯ π‘₯, 𝑦 = π‘₯ + 4𝑦, πœ“π‘¦ π‘₯, 𝑦 = 4π‘₯ βˆ’ 𝑦 Thus

πœ“ π‘₯, 𝑦 = ∫ πœ“π‘₯ π‘₯, 𝑦 𝑑π‘₯ = ∫ π‘₯ + 4𝑦 𝑑π‘₯ = 1

2 π‘₯2 + 4π‘₯𝑦 + 𝐢(𝑦)

(5)

Example 1: Solution

(2 of 4)

We have πœ“π‘₯ π‘₯, 𝑦 = π‘₯ + 4𝑦, πœ“π‘¦ π‘₯, 𝑦 = 4π‘₯ βˆ’ 𝑦 and

πœ“ π‘₯, 𝑦 = ∫ πœ“π‘₯ π‘₯, 𝑦 𝑑π‘₯ = ∫ π‘₯ + 4𝑦 𝑑π‘₯ = 1

2π‘₯2 + 4π‘₯𝑦 + 𝐢(𝑦) It follows that

πœ“π‘¦ π‘₯, 𝑦 = 4π‘₯ βˆ’ 𝑦 = 4π‘₯ βˆ’ 𝐢′ 𝑦 β‡’ 𝐢′ 𝑦 = βˆ’π‘¦ β‡’ 𝐢 𝑦 = βˆ’ 1

2 𝑦2 + π‘˜ Thus

πœ“ π‘₯, 𝑦 = 1

2 π‘₯2 + 4π‘₯𝑦 βˆ’ 1

2 𝑦2 + π‘˜ By Theorem 1, the solution is given implicitly by

π‘₯2 + 8π‘₯𝑦 βˆ’ 𝑦2 = 𝑐

(6)

Example 1:

Direction Field and Solution Curves

Our differential equation and solutions are given by 𝑑𝑦

𝑑π‘₯ = βˆ’π‘₯ + 4𝑦

4π‘₯ βˆ’ 𝑦 ⟺ π‘₯ + 4𝑦 + 4π‘₯ βˆ’ 𝑦 𝑦′ = 0 β‡’ π‘₯2 + 8π‘₯𝑦 βˆ’ 𝑦2 = 0 A graph of the direction field for this differential equation,

along with several solution curves, is given below.

(7)

Example 2: Exact Equation

(1 of 3)

Consider the following differential equation.

(𝑦 cos π‘₯ + 2π‘₯𝑒𝑦) + (sin π‘₯ + π‘₯2𝑒𝑦 βˆ’ 1)𝑦′ = 0.

Then 𝑀 π‘₯, 𝑦 = 𝑦 cos π‘₯ + 2π‘₯𝑒𝑦, 𝑁 π‘₯, 𝑦 = sin π‘₯ + π‘₯2𝑒𝑦 βˆ’ 1 and hence

𝑀𝑦 π‘₯, 𝑦 = cos π‘₯ + 2π‘₯𝑒𝑦 = 𝑁π‘₯ π‘₯, 𝑦 β‡’ ODE is Exact From Theorem 1,

πœ“π‘₯ π‘₯, 𝑦 = 𝑀 = 𝑦 cos π‘₯ + 2π‘₯𝑒𝑦, πœ“π‘¦ π‘₯, 𝑦 = 𝑁 = sin π‘₯ + π‘₯2𝑒𝑦 βˆ’ 1 Thus

πœ“ π‘₯, 𝑦 = ∫ πœ“π‘₯ π‘₯, 𝑦 𝑑π‘₯ = ∫ 𝑦 cos π‘₯ + 2π‘₯𝑒𝑦 𝑑π‘₯ = 𝑦 sin π‘₯ + π‘₯2𝑒𝑦 + 𝐢(𝑦)

(8)

Example 2: Solution

(2 of 3)

From this

πœ“ π‘₯, 𝑦 = ∫ πœ“π‘₯ π‘₯, 𝑦 𝑑π‘₯ = ∫ 𝑦 cos π‘₯ + 2π‘₯𝑒𝑦 𝑑π‘₯ = 𝑦 sin π‘₯ + π‘₯2𝑒𝑦 + 𝐢(𝑦) It follows that

πœ“π‘¦ π‘₯, 𝑦 = sin π‘₯ + π‘₯2𝑒𝑦 βˆ’ 1 = sin π‘₯ + π‘₯2𝑒𝑦 + 𝐢′(𝑦)

β‡’ 𝐢′ 𝑦 = βˆ’1 β‡’ 𝐢 𝑦 = βˆ’π‘¦ + π‘˜ Thus

πœ“ π‘₯, 𝑦 = 𝑦 sin π‘₯ + π‘₯2𝑒𝑦 βˆ’ 𝑦 + π‘˜ Theorem 1, the solution is given implicitly by

𝑦 sin π‘₯ + π‘₯2𝑒𝑦 βˆ’ 𝑦 = 𝑐.

(9)

Example 2:

Direction Field and Solution Curves

Our differential equation and solutions are given by (𝑦 cos π‘₯ + 2π‘₯𝑒𝑦) + (sin π‘₯ + π‘₯2𝑒𝑦 βˆ’ 1)𝑦′ = 0

𝑦 sin π‘₯ + π‘₯2𝑒𝑦 βˆ’ 𝑦 = 𝑐.

A graph of the direction field for this differential

equation, along with several solution curves, is given below.

(10)

Example 3: Non-Exact Equation

(1 of 3)

Consider the following differential equation.

3π‘₯𝑦 + 𝑦2 + 2π‘₯𝑦 + π‘₯3 𝑦′ = 0 Then

𝑀 π‘₯, 𝑦 = 3π‘₯𝑦 + 𝑦2, 𝑁 π‘₯, 𝑦 = 2π‘₯𝑦 + π‘₯3 and hence

𝑀𝑦 π‘₯, 𝑦 = 3π‘₯ + 2𝑦 β‰  2𝑦 + 3π‘₯2 = 𝑁π‘₯ π‘₯, 𝑦 β‡’ ODE is not exact To show that our differential equation cannot be solved by this method, let us seek a function πœ“ such that

πœ“π‘₯ π‘₯, 𝑦 = 𝑀 = 3π‘₯𝑦 + 𝑦2, πœ“π‘¦ π‘₯, 𝑦 = 𝑁 = 2π‘₯𝑦 + π‘₯3 Thus

πœ“ π‘₯, 𝑦 = ∫ πœ“π‘₯ π‘₯, 𝑦 𝑑π‘₯ = ∫ 3π‘₯𝑦 + 𝑦2 𝑑π‘₯ = 3

2 π‘₯2𝑦 + π‘₯𝑦2 + 𝐢(𝑦)

(11)

Example 3: Non-Exact Equation

(2 of 3)

It follows that

πœ“π‘¦ π‘₯, 𝑦 = 2π‘₯𝑦 + π‘₯3 = 3

2π‘₯2 + 2π‘₯𝑦 + 𝐢′(𝑦)

β‡’ 𝐢′ 𝑦 = π‘₯3 βˆ’ 3

2 π‘₯2 β‡’ 𝐢 𝑦 = π‘₯3𝑦 βˆ’ 3

2π‘₯2𝑦 + π‘˜ Thus there is no such function πœ“. However, if we (incorrectly) proceed as before, we obtain

π‘₯3𝑦 + π‘₯𝑦2 = 𝑐

as our implicitly defined y, which is not a solution of ODE.

? ??

(12)

It is sometimes possible to convert a differential equation that is not exact into an exact equation by multiplying the equation by a

suitable integrating factor πœ‡ π‘₯, 𝑦 :

𝑀 π‘₯, 𝑦 + 𝑁 π‘₯, 𝑦 𝑦′ = 0

πœ‡ π‘₯, 𝑦 𝑀 π‘₯, 𝑦 + πœ‡ π‘₯, 𝑦 𝑁 π‘₯, 𝑦 𝑦′ = 0 For this equation to be exact, we need

πœ‡π‘€ 𝑦 = πœ‡π‘ π‘₯ ⟺ π‘€πœ‡π‘¦ βˆ’ π‘πœ‡π‘₯ + 𝑀𝑦 βˆ’ 𝑁π‘₯ πœ‡ = 0

This partial differential equation may be difficult to solve. If πœ‡ is a function of π‘₯ alone, then πœ‡π‘¦ = 0 and hence we solve

π‘‘πœ‡

𝑑π‘₯ = 𝑀𝑦 βˆ’ 𝑁π‘₯

𝑁 πœ‡

provided right side is a function of x only.

Similarly if πœ‡ is a function of 𝑦 alone.

β‡’

π‘‘πœ‡

𝑑𝑦

= βˆ’

π‘€π‘¦βˆ’π‘π‘₯

𝑀

πœ‡

Integrating Factors

(13)

Example 4: Non-Exact Equation

Consider the following non-exact differential equation.

3π‘₯𝑦 + 𝑦2 + π‘₯2 + π‘₯𝑦 𝑦′ = 0

Seeking an integrating factor, we solve the linear equation π‘‘πœ‡

𝑑π‘₯ = 𝑀𝑦 βˆ’ 𝑁π‘₯

𝑁 πœ‡ ⟺ π‘‘πœ‡

𝑑π‘₯ = πœ‡

π‘₯ β‡’ πœ‡ π‘₯ = π‘₯

Multiplying our differential equation by , we obtain the exact equation

3π‘₯2𝑦 + π‘₯𝑦2 + π‘₯3 + π‘₯2𝑦 𝑦′ = 0, which has its solutions given implicitly by

π‘₯3𝑦 + 1

2 π‘₯2𝑦2 = 𝑐.

(14)

Integrating Factor

For πœ‡ = 𝑓(𝑒), where 𝑒 = 𝑔(π‘₯, 𝑦) we have

πœ‡π‘€ 𝑦 = πœ‡π‘ π‘₯ ⟺ π‘€πœ‡π‘¦ βˆ’ π‘πœ‡π‘₯ + 𝑀𝑦 βˆ’ 𝑁π‘₯ πœ‡ = 0 That becomes

𝑀 π‘‘πœ‡

𝑑𝑒 𝑒𝑦 βˆ’ 𝑁 π‘‘πœ‡

𝑑𝑒 𝑒π‘₯ + 𝑀𝑦 βˆ’ 𝑁π‘₯ πœ‡ = 0 or

π‘‘πœ‡

πœ‡ = 𝑁π‘₯ βˆ’ 𝑀𝑦

𝑀𝑒𝑦 βˆ’ 𝑁𝑒π‘₯ 𝑑𝑒

(15)

Solve the equation 𝑦 𝑑π‘₯ + π‘₯2 + 𝑦2 βˆ’ π‘₯ 𝑑𝑦 = 0 using the integrating factor as a function of π‘₯2 + 𝑦2

Solution :

First of all we check this equation for exactness:

πœ•π‘€

πœ•π‘¦ = 𝑀𝑦 = 1, πœ•π‘

πœ•π‘₯ = 𝑁π‘₯ = 2π‘₯ βˆ’ 1

The partial derivatives of 𝑀𝑦 β‰  𝑁π‘₯ are not equal to each other.

Therefore, this equation is not exact.

Now we try to use the integrating factor in the form 𝑒 = π‘₯2 + 𝑦2. Here we have πœ•π‘’

πœ•π‘₯ = 2π‘₯, and πœ•π‘’

πœ•π‘¦ = 2𝑦

EXAMPLE 4: INTEGRATING FACTOR 𝝁 = 𝒇(𝒖)

(16)

Then 1

πœ‡ π‘‘πœ‡ 𝑑𝑒 =

πœ•π‘€

πœ•π‘¦βˆ’πœ•π‘

πœ•π‘₯

π‘πœ•π‘’

πœ•π‘₯βˆ’π‘€πœ•π‘’

πœ•π‘¦

= 1βˆ’(2π‘₯βˆ’1)

(π‘₯2+𝑦2βˆ’π‘₯)2π‘₯βˆ’ 𝑦 2𝑦

= 2 βˆ’ 2π‘₯

π‘₯2 + 𝑦2 2π‘₯ βˆ’ 2 = 1

βˆ’ π‘₯2 + 𝑦2 = βˆ’1 𝑒 1

πœ‡ π‘‘πœ‡ = βˆ’1 𝑒 𝑑𝑒 πœ‡ = π‘’βˆ’1 = 1

π‘₯2 + 𝑦2

By the function πœ‡(π‘₯, 𝑦) we can convert the original differential equation into exact 𝑦

π‘₯2 + 𝑦2 𝑑π‘₯ + π‘₯2 + 𝑦2 βˆ’ π‘₯

π‘₯2 + 𝑦2 𝑑𝑦 = 0 where 𝑀 π‘₯, 𝑦 = 𝑦

π‘₯2+𝑦2 and 𝑁 π‘₯, 𝑦 = π‘₯2+𝑦2βˆ’π‘₯

π‘₯2+𝑦2 = 1 βˆ’ π‘₯

π‘₯2+𝑦2

Integrate the first equation with respect to the variable π‘₯ (considering 𝑦 as a constant):

πœ“ π‘₯, 𝑦 = ΰΆ± 𝑀 π‘₯, 𝑦 𝑑π‘₯ = ΰΆ± 𝑦

π‘₯2 + 𝑦2 𝑑π‘₯ = arctanπ‘₯

𝑦 + 𝐢(𝑦)

(17)

Substitute this in the first equation system to get:

πœ•π‘’(π‘₯, 𝑦)

πœ•π‘¦ = βˆ’π‘₯

π‘₯

2

+ 𝑦

2

+ 𝐢

β€²

𝑦 = 𝑁(π‘₯, 𝑦)

We have 𝐢

β€²

𝑦 = 1 then C 𝑦 = 𝑦 + π‘˜

Hence, the general solution of the given differential equation is written in the form:

arctan π‘₯

𝑦 + 𝑦 + π‘˜ = 0

where π‘˜ is any real number.

(18)

Exercises

Find the integrating factor, then solve the following ODEs:

1. π‘₯ + 𝑦 𝑑π‘₯ + 𝑑𝑦 = 0

2. 2π‘₯𝑦 1 + 𝑦2 𝑑π‘₯ βˆ’ 1 + π‘₯2 + π‘₯2𝑦2 𝑑𝑦 = 0

3. 𝑦 + π‘₯𝑦2 + π‘₯ βˆ’ π‘₯2𝑦 𝑦′ = 0 using an integrating factor as a function of π‘₯𝑦.

Referensi

Dokumen terkait