mathcentre-odescxcxvcxep

2
mathcentre community project encouraging academics to share maths support resources All mccp resources are released under an Attribution Non-commerical Share Alike licence community project Solving Differential Equations by Separating Variables mccp-dobson-1111 Introduction Suppose we have the first order differential equation P (y ) dy dx = Q(x) where Q(x) and P (y ) are functions involving x and y only respectively. For example y 2 dy dx = 1 x 3 or 1 y 2 dy dx = x - 3 x 3 . We can solve these differential equations using the technique of separating variables. General Solution By taking the original differential equation P (y ) dy dx = Q(x) we can solve this by separating the equation into two parts. We move all of the equation involving the y variable to one side and all of the equation involving the x variable to the other side, then we can integrate both sides. Although dy dx is not a fraction, we can intuitively treat it like one to move the ”dx” to the right hand side. So P (y ) dy dx = Q(x) P (y ) dy = Q(x) dx. Example Let us find the general solution of the differential equation y 2 dy dx = 1 x 3 . y 2 dy dx = 1 x 3 y 2 dy = 1 x 3 dx y 2 dy = x -3 dx y 3 3 = -x -2 2 + c where c is a constant y 3 = -3 2x 2 +3c y = 3 -3 2x 2 +3c www.mathcentre.ac.uk c Katy Dobson University of Leeds Alan Slomson University of Leeds

Upload: anonymous-2xjdjacz

Post on 07-Dec-2015

212 views

Category:

Documents


0 download

DESCRIPTION

cxv

TRANSCRIPT

Page 1: mathcentre-odescxcxvcxep

mathcentre community projectencouraging academics to share maths support resourcesAll mccp resources are released under an Attribution Non-commerical Share Alike licence

community project

Solving Differential Equations by Separating Variablesmccp-dobson-1111

Introduction

Suppose we have the first order differential equation

P (y)dy

dx= Q(x)

where Q(x) and P (y) are functions involving x and y only respectively. For example

y2dy

dx=

1

x3or

1

y2

dy

dx=

x − 3

x3.

We can solve these differential equations using the technique of separating variables.

General Solution

By taking the original differential equation

P (y)dy

dx= Q(x)

we can solve this by separating the equation into two parts. We move all of the equation involving

the y variable to one side and all of the equation involving the x variable to the other side, then we

can integrate both sides. Although dy

dxis not a fraction, we can intuitively treat it like one to move

the ”dx” to the right hand side. So

P (y)dy

dx= Q(x) ⇔

P (y) dy =

Q(x) dx.

Example

Let us find the general solution of the differential equation

y2dy

dx=

1

x3.

y2dy

dx=

1

x3⇔

y2 dy =

1

x3dx

⇔∫

y2 dy =

x−3 dx

⇔ y3

3=

−x−2

2+ c where c is a constant

⇔ y3 =−3

2x2+ 3c

⇔ y =3

−3

2x2+ 3c

www.mathcentre.ac.uk

c©Katy Dobson

University of Leeds

Alan Slomson

University of Leeds

Page 2: mathcentre-odescxcxvcxep

mathcentre community projectencouraging academics to share maths support resourcesAll mccp resources are released under an Attribution Non-commerical Share Alike licence

Example

To find the general solution of the differential equation

dy

dx=

y2(x − 3)

x3

we first need to move the y2 to the left hand side of the equation. Then we move the dx to the

right hand side of the equation and integrate both sides.

dy

dx=

y2(x − 3)

x3⇔ 1

y2

dy

dx=

x − 3

x3

⇔∫

1

y2dy =

x − 3

x3dx

⇔∫

1

y2dy =

x

x3− 3

x3dx

⇔∫

y−2 dy =

1

x2− 3

x3dx

⇔∫

y−2 dy =

x−2 − 3x−3 dx

⇔ −y−1 = −x−1 +3x−2

2+ c where c is a constant

⇔ −1

y= −1

x+

3

2x2+ c

⇔ 1

y=

1

x− 3

2x2− c

⇔ 1

y=

2x

2x2− 3

2x2− 2cx2

2x2

⇔ 1

y=

2x − 3 − 2cx2

2x2

⇔ y =2x2

2x − 3 − 2cx2

Exercises

Find the general solution of

1.dy

dx= y(1 + ex) 2.

dy

dx=

x

y3.

dy

dx= 9x2y 4.

4

y3

dy

dx=

1

x

Answers

1. y = ex+ex+c 2. y = ±√

x2 + 2c 3. y = e3x3+c 4. y = ±√

−2

ln |x| + c

Note that the ± symbol like in Exercise 2 means that the differential equation has two sets ofsolutions, y =

√x2 + 2c and y = −

√x2 + 2c.

www.mathcentre.ac.uk

c©Katy Dobson

University of Leeds

Alan Slomson

University of Leeds