Slides: FP2 - Chapter 4 - First Order Differential Equations

advertisement

FP2

Chapter 4 – First Order

Differential Equations

Dr J Frost (jfrost@tiffin.kingston.sch.uk) www.drfrostmaths.com

Last modified: 19 th January 2016

Intro

Differential equations are equations which relate π‘₯ and 𝑦 with derivatives. e.g.

The rate of temperature loss is proportional to the current temperature.

𝑑𝑇 𝑑𝑑

= −π‘˜π‘‡

The rate of population change is

𝑃 proportional to 𝑃 1 − where 𝑃 is

𝑀 the current population and 𝑀 is the limiting size of the population

(the Verhulst-Pearl Model) 𝑑𝑃 𝑑𝑑

𝑃

= π‘˜π‘ƒ 1 −

𝑀

Suppose π‘₯ is GDP (Gross Domestic Product).

Rate of change of GDP is proportional to current GDP.

𝑑π‘₯

= π‘˜π‘₯ 𝑑𝑑

As you might imagine, they’re used a lot in physics and engineering, including modelling radioactive decay, mixing fluids, cooling materials and bodies falling under gravity against resistance.

A ‘first order’ differential equation means the equation contains the first derivative ( 𝑑𝑦 𝑑π‘₯ second derivative or beyond.

) but not the

C4 recap

π‘₯ and 𝑦 are said to be ‘separated’ because they are not mixed in the same expression.

𝑑𝑦 𝑑π‘₯

= 𝑓 π‘₯ 𝑔 𝑦

1 𝑑𝑦

= 𝑓 π‘₯ 𝑔 𝑦

1 𝑑π‘₯ 𝑔 𝑦

1 𝑑𝑦 = 𝑓 π‘₯ 𝑑π‘₯ 𝑔 𝑦 𝑑𝑦 = 𝑓 π‘₯ 𝑑π‘₯

Divide through by 𝑔(𝑦) and times through by 𝑑π‘₯ .

Slap and integral symbol on the front!

Examples

Find general solutions to 𝑑𝑦 𝑑π‘₯

= 2 𝑦 = 2π‘₯ + 𝐢

Find general solutions to 𝑑𝑦 𝑑π‘₯ π‘₯

= − 𝑦

𝑦 𝑑𝑦 = −π‘₯ 𝑑π‘₯

1

2 π‘₯ 2 𝑦 2 = −

+ 𝑦 2

?

1 π‘₯ 2

2

= 2𝐢

+ 𝐢

If we let π‘Ÿ 2 π‘₯ 2

= 2𝐢 , we get

+ 𝑦 2 = π‘Ÿ 2

Why is it called the general solution?

We have a ‘family’ of solutions as the

?

𝑦

So the ‘family of circles’ satisfies this differential equation.

π‘₯

Examples

Find general solutions to 𝑑𝑦 𝑑π‘₯

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

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

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

?

ln 𝑦 + 1 =

1

2 π‘₯

2

+ 𝐢

1 1 𝑦 + 1 = 𝑒 2π‘₯

2

+𝐢

= 𝑒 2π‘₯

2 𝑒

= 𝐴𝑒 where 𝐴 = 𝑒 𝐢

1

2π‘₯

2

𝐢

Find general solutions to 𝑑𝑦 𝑑π‘₯

= − 𝑦 π‘₯

1 𝑦 𝑑𝑦 = −

1 𝑑π‘₯ π‘₯ ln |𝑦| = − ln π‘₯ + 𝐢 ln π‘₯ + ln |𝑦| = 𝐢

?

|π‘₯𝑦| = 𝑒 𝐢 = 𝐴

𝐴 𝑦 = ± π‘₯

(a family of rectangular hyperbolae)

Particular solutions

Just like at the end of C1 integration, we can fix to one particular solution if we give some conditions.

Find the particular solutions for 𝑑π‘₯ 𝑑𝑑 π‘₯ = 9 when 𝑑 = 0 .

= π‘₯ which satisfy the initial conditions

π‘₯

1

2 𝑑π‘₯ = 1 𝑑𝑦

2π‘₯

1

2 = 𝑑 + 𝑐

2 π‘₯ = 𝑑 + 𝑐

2 3 = 0 + 𝑐 → 𝑐 = 6

2 π‘₯ = 𝑑 + 6

2 𝑑 + 6 π‘₯ =

2

= 𝑑 + 6

4

2

?

Some people (including myself) like to sub in as soon as possible before rearranging.

Exercise 4A

Using reverse product rule

We will see in a bit how to solve equations of the form 𝑑𝑦

+ 𝑃𝑦 = 𝑄 (where 𝑃 and 𝑄 𝑑π‘₯ are functions of π‘₯ ). We’ll practice a particular part of this method before going for the full whack.

Find general solutions of the equation π‘₯

3 𝑑𝑦 𝑑π‘₯

+ 3π‘₯

2 𝑦 = sin π‘₯

We can’t separate the variables. But do you notice anything about the LHS?

𝒅

It’s 𝒅𝒙

(𝒙 ?

πŸ‘ π’š) !

Quickfire Questions: 𝑑 𝑑π‘₯ 𝑑 𝑑π‘₯ π‘₯ 2 𝑦 = 𝒙 𝟐 π’…π’š 𝒅𝒙 𝑦 sin π‘₯ = 𝐬𝐒𝐧 𝒙 π’…π’š 𝒅𝒙

?

+ π’š 𝐜𝐨𝐬 𝒙

So it appears whatever term ends up on front of the 𝑑𝑦 𝑑π‘₯ in the integral.

will be on the front of the 𝑦 π‘₯ 𝑒

4 π‘₯ 𝑑𝑦 𝑑π‘₯ 𝑑𝑦 𝑑π‘₯ ln π‘₯

+ 4π‘₯ 3 𝑦 → 𝒅 𝒅𝒙 𝒅

+ 𝑒 𝑑𝑦 𝑑π‘₯ π‘₯

+ 𝑦 → 𝑦 π‘₯

→ 𝒅𝒙 𝒅 𝒅𝒙 𝒙

?

πŸ’ 𝒆 𝒙 ?

π’š π’š

Using reverse product rule

Find general solutions of the equation π‘₯

3 𝑑𝑦 𝑑π‘₯

+ 3π‘₯

2 𝑦 = sin π‘₯ 𝑑 𝑑π‘₯ π‘₯ 3 π‘₯ 3 𝑦 = sin π‘₯ 𝑦 =

𝐢 − cos π‘₯ π‘₯ 3

Test Your Understanding

Find general solutions of the equation

4π‘₯𝑦 𝑑𝑦

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

Find general solutions of the equation

1 𝑑𝑦

1 𝑦 = 𝑒 π‘₯ π‘₯ 𝑑π‘₯ π‘₯ 2 𝑑 𝑦

?

= 𝑒 π‘₯ 𝑑π‘₯ 𝑦 π‘₯

= 𝑒 π‘₯ π‘₯ 𝑦 = π‘₯(𝑒

+ 𝐢 π‘₯ + 𝐢) 𝑑 𝑑π‘₯

2π‘₯𝑦

2

2π‘₯𝑦 2

=

1

3 π‘₯

?

= π‘₯

3

2

+ 𝐢

𝑑𝑦/𝑑π‘₯ + 𝑃𝑦 = 𝑄

But what if we can’t use the product rule backwards?

Find the general solution of 𝑑𝑦 𝑑π‘₯

− 4𝑦 = 𝑒 π‘₯

We can multiply through by the integrating factor 𝒆 𝑷 𝒅𝒙

. This then produces an equation where we can use the previous reverse-product-rule trick (we’ll prove this in a sec).

𝐼. 𝐹. = 𝑒 −4 𝑑π‘₯ −4π‘₯

Then multiplying through by the integrating factor: 𝑒 −4π‘₯ 𝑑𝑦

− 4𝑒 −4π‘₯ ?

𝑦 = 𝑒 −3π‘₯ 𝑑π‘₯

Then we can solve in the usual way: 𝑑 𝑦𝑒 𝑑π‘₯

−4π‘₯ 𝑦𝑒

−4π‘₯ 𝑦 = −

1

3 𝑒 π‘₯

= 𝑒

−3π‘₯

= −

1

3 𝑒

?

−3π‘₯

+ 𝐢𝑒

4π‘₯

+ 𝑐

Proof that Integrating Factor works

Solve the general equation 𝑑𝑦 𝑑π‘₯ functions of π‘₯ .

+ 𝑃𝑦 = 𝑄 , where 𝑃, 𝑄 are

Suppose 𝑓(π‘₯) is the Integrating Factor. As usual we’d multiply by it: 𝑑𝑦 𝑓 π‘₯ + 𝑓 π‘₯ 𝑃𝑦 = 𝑓 π‘₯ 𝑄 𝑑π‘₯

If we can use the reverse product rule trick on the LHS, then it would be of the form: 𝑓 π‘₯ 𝑓 ′ 𝑑𝑦 ?

𝑑π‘₯

Thus comparing the coefficients of the two LHSs:

?

′ π‘₯ 𝑦 π‘₯ = 𝑓 π‘₯ 𝑃

Dividing by 𝑓(π‘₯) and integrating: 𝑓 ′ π‘₯ 𝑓 π‘₯ 𝑑π‘₯ = 𝑃 𝑑π‘₯ ln 𝑓 π‘₯

?

𝑓 π‘₯ = 𝑒

𝑃 𝑑π‘₯

When there’s something on front of the 𝑑𝑦/𝑑π‘₯

Find the general solution of cos π‘₯ 𝑑𝑦 𝑑π‘₯

+ 2𝑦 sin π‘₯ = cos 4 π‘₯

What shall we do first so that we have an equation like before?

𝑑𝑦

+ 2𝑦 tan π‘₯ = cos

3 π‘₯ 𝑑π‘₯

?

𝐼𝐹 = 𝑒

2tan π‘₯ 𝑑π‘₯

= 𝑒 = 𝑒 ln sec

2 sec 𝑑

2 π‘₯ 𝑑𝑦 𝑑π‘₯ 𝑦 sec 𝑑π‘₯ 𝑦 sec 2

2

+ 2𝑦 sec 2 π‘₯ = sin π‘₯ + 𝑐 π‘₯ tan π‘₯ = cos π‘₯ π‘₯ = cos π‘₯

?

𝑦 = cos π‘₯ sin π‘₯ + 𝑐

?

π‘₯

= sec

2 π‘₯

You could skip to here provided you don’t forget to multiply the

RHS by the IF.

STEP 1: Divide by anything on front of 𝑑𝑦/𝑑π‘₯

STEP 2: Determine IF

STEP 3: Multiply through by IF and use product rule backwards.

STEP 4: Integrate and simplify.

Test Your Understanding

FP2 June 2011 Q3

Find the general solution of the differential equation 𝑑𝑦 π‘₯ + 5𝑦 = ln π‘₯

, π‘₯ > 0 𝑑π‘₯ π‘₯

?

Exercise 4C

Making a substitution

Sometimes making a substitution will turn a more complex differential equation into one like we’ve seen before.

Use the substitution 𝑧 = 𝑦 π‘₯ to transform the differential equation 𝑑𝑦 𝑑π‘₯

= π‘₯

2

+3𝑦

2

2π‘₯𝑦

, π‘₯ > 0 into a differential equation in 𝑧 and π‘₯ . By first solving this new equation, find the general solution of the original equation, giving 𝑦

2 in terms of π‘₯ .

Make 𝑦 the subject so that we can find 𝑑𝑦 𝑑π‘₯ and sub 𝑦 out.

𝑧 = 𝑑𝑦 𝑑π‘₯ 𝑑𝑧 π‘₯ 𝑦 π‘₯

= π‘₯ 𝑑π‘₯ 𝑑𝑧 π‘₯ = 𝑑π‘₯

2𝑧

1 + 𝑧 2

→ 𝑦 = π‘₯𝑧 𝑑𝑧 𝑑π‘₯

+ 𝑧 =

1

2𝑧

+ 𝑧

+ π‘₯ 2

1

2

2π‘₯ 2

?

+ 3π‘₯ 𝑧 = 𝑑𝑧 =

1 π‘₯

?

?

2 𝑧

2𝑧 𝑑π‘₯

2 𝑧

1 + 𝑧

=

2

1 + 𝑧 𝑦

2

2

= π‘₯

2

= 𝐴π‘₯

𝐴π‘₯ − 1 ?

1

2𝑧

+

3

2 𝑧 Sub in 𝑦 and 𝑑𝑦 𝑑π‘₯

Simplify to either get 𝑑𝑧 𝑑π‘₯ 𝑑𝑧

= 𝑓 π‘₯ 𝑔 𝑧 or 𝑑π‘₯

+ 𝑃𝑧 = 𝑄

Sub back 𝑦 in at the end.

Another with an IF

Use the substitution 𝑧 = 𝑦 −1 to transform the differential equation 𝑑𝑦

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

, into 𝑑π‘₯ a differential equation in 𝑧 and π‘₯ . Find the general solution using an integrating factor.

𝑦 = 𝑑𝑦

1

− 𝑑𝑧 𝑧 2 𝑑π‘₯

+

− π‘₯𝑧 = −π‘₯ 𝑑π‘₯

1

, 𝑧 𝑑𝑧 π‘₯ 𝑑π‘₯

= 𝑧

𝐼𝐹 = 𝑒

−π‘₯ 𝑑π‘₯ 𝑑 𝑧𝑒 𝑧𝑒 𝑑π‘₯

1

2π‘₯

2

1

2π‘₯

2

= 𝑒

1

2π‘₯

2

= − π‘₯ 𝑧 2

+ 𝑐 𝑧

1

2

1

= 𝑒

?

2π‘₯

= −π‘₯𝑒

2

1

2π‘₯ 𝑑𝑧 𝑑π‘₯

2

1

2π‘₯

2 𝑧 = 1 + 𝑐𝑒

1 𝑦 =

1 + 𝑐𝑒

1

2 π‘₯ 2

The π‘₯ and 𝑧 are separable here

(but factorising out π‘₯ ), so we could have done without an IF.

Test Your Understanding

FP2 June 2012 Q7

(a) Show that the substitution 𝑦 = 𝑣π‘₯ transforms the differential equation

3π‘₯𝑦 2 𝑑𝑦

= π‘₯ 3 𝐼 𝑑π‘₯

+ 𝑦 3 into the differential equation

3𝑣 2 π‘₯ 𝑑𝑣

= 1 − 2𝑣 3 𝐼𝐼 𝑑π‘₯

(b) By solving differential equation (II), find a general solution of differential equation (I) in the form 𝑦 = 𝑓 π‘₯ .

(c) Given that 𝑦 = 2 at π‘₯ = 1 , find the value of 𝑑𝑦 𝑑π‘₯ at π‘₯ = 1 .

a ?

b ?

c ?

Exercise 4D/E

Download