Docsity

Differential Equations | Example Problem 1, Exercises of Differential Equations

Toggle sidebar
bg1
Example 1.
Solve the equation
(1 x)y0=y2
Solution:
The given equation can be written as
(1 x)dy
dx =y2
multiplying both sides by dx,
(1 x)dy =y2dx
Dividing the entire equation by (1 x)y2, yields to
dy
y2=dx
1x
Integrating both sides of the equation gives,
Zdy
y2=Zdx
1x
1
y=ln |1x|+c
1
y=ln |1x|+lnc
Simplifying gives the final result as
yln |c(1 x)|=1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Differential Equations | Example Problem 1 and more Exercises Differential Equations in PDF only on Docsity!

Solve the equation

(1 x)y

0 = y

2

Solution:

The given equation can be written as

(1 x)

dy

dx

= y

2

multiplying both sides by dx,

(1 x)dy = y

2 dx

Dividing the entire equation by (1 x)y

2 , yields to

dy

y

2

dx

1 x

Integrating both sides of the equation gives,

Z

dy

y 2

Z

dx

1 x

y

= ln | 1 x| + c

y

= ln | 1 x| + ln c

Simplifying gives the final result as

y ln |c(1 x)| = 1

Solve the equation

sin x sin ydx + cos x cos ydy = 0

Solution:

Using separation of variables,

sin x sin y dx = cos x cos y dy

sin x

cos x

dx =

cos y

sin y

dy

tan x dx = cot y dy

Integrating both sides

Z

tan x dx +

Z

cot y dy = c

ln | cos x| + ln | sin y| = ln |c|

Simplifying the results,

ln | cos x| + ln | sin y| = ln |c|

ln | sin y| + ln | cos x| = ln |c|

ln

sin y

cos x

= ln |c|

sin y

cos x

= c

sin y = c cos x

Solve the equation

2 y dx = 3x dy

Solution:

Multiply both sides of the equation by

xy

xy

(2y dx) = (3x dy)

xy

2 dx

x

3 dy

y

Integrating both sides,

2 dx

x

3 dy

y

Z

dx

x

Z

dy

y

  • c

2 ln |x| = 3 ln |y| + ln |c|

ln |x

2 | = ln |y

3 | + ln |c|

ln |x

2 | = ln |cy

3 |

x

2 = cy

3

Solve the equation

ye

2 x dx = (4 + e

2 x )dy

Solution:

Multiply both sides of the equation by

y(4 + e

2 x )

y(4 + e 2 x^ )

ye

2 x dx

(4 + e

2 x )dy

y(4 + e 2 x^ )

e

2 x dx

4 + e

2 x

dy

y

Integrating both sides, we have

Z

e

2 x dx

4 + e 2 x^

Z

dy

y

  • c

ln |4 + e

2 x | = ln |y| + ln |c|

ln |4 + e

2 x | = 2 ln |y| + 2 ln |c|

ln |4 + e

2 x | = ln |y

2 | + ln |c

2 |

ln |4 + e

2 x | = ln |c

2 y

2 |

4 + e

2 x = c

2 y

2

Notice that c

2 can be written as just c, since they are both arbitrary, but we should

note that the left side of the equation is always greater than 0. Therefore, if we just write c,

we will be restricted to values of c 0.

Solve the equation

xydx (x + 2)dy = 0

Solution:

Dividing the equation by y(x + 2)

x dx

x + 2

dy

y

Integrating both sides of the equation,

Z

x dx

x + 2

Z

dy

y

c

Z ✓

x + 2

dx

Z

dy

y

= c

x 2 ln |x + 2| ln |y| = ln |c|

x = ln |x + 2|

2

  • ln |y| + ln |c|

x = ln |cy(x + 2)

2 |

e

x = e

ln |cy(x+2) 2 |

e

x = cy(x + 2)

2

Solve the equation

xy

3 dx + (y + 1)e

x dy = 0

Solution:

Divide the equation by y

3 e

x ,

xdx

e

x

(y + 1)dy

y

3

xe

x dx y

3 (y + 1)dy = 0

Integrating both sides,

Z

xe

x dx

Z

y

3 (y + 1)dy = c

xe

x e

x

y

2 y

2

= c

e

x (x 1) =

y

2 y

2

  • c

Solve the equation

2(2x

2

  • y

2 )dx xydy = 0

Solution:

From M dx + N dy = 0, both M and N are homogeneous functions of degree 2, let us put

y = vx

dy = vdx + xdv

Substitute to the original equation,

2(2x

2

  • v

2 x

2 )dx x

2 v(vdx + xdv) = 0

(4x

2

  • 2v

2 x

2 v

2 x

2 )dx vx

3 dv = 0

(4x

2

  • v

2 x

2 )dx vx

3 dv = 0

x

2 (4 + v

2 )dx vx

3 dv = 0

By separation of variables, divide the equation by (4 + v

2 )x

3 ,

dx

x

vdv

4 + v 2

Z

dx

x

Z

vdv

4 + v 2

= c

ln |x|

ln (4 + v

2 ) = ln |c|

2 ln |x| ln (v

2

    1. = ln |c|

ln

x

2

v 2 + 4

= ln |c|

e

ln

x^2 4+v^2

= e

ln |c|

x

2

4 + v

2

= c

x

2 = c(4 + v

2 )

Since v =

y

x

x

2 = c

y

x

x

2 = c

y

2

x

2

x

2 = c

4 x

2

  • y

2

x

2

x

4 = c(4x

2

  • y

2 )

Solve the equation (^) 

x csc

y

x

y

dx + xdy = 0

Solution:

Since M and N are both homogeneous functions of degree 1, we let

y = vx; v =

y

x

dy = vdx + xdv

(x csc v vx)dx + x(vdx + xdv) = 0

(x csc v + vx vx)dx + x

2 dv = 0

x csc v dx + x

2 dv = 0

By separation of variables, divide x

2 csc v

dx

x

dv

csc v

dx

x

  • sin vdv = 0

Z dx

x

Z

sin vdv = c

ln |x| cos v = ln |c|

ln |x| ln |c| = cos v

cos v = ln

x

c

Since v =

y

x

, then

cos v = ln

x

c

cos

y

x

= ln

x

c

cos

y

x

= ln |cx|

Solve the equation

(x y ln |y| + y ln |x|)dx + x(ln |y| ln |x|)dy = 0

Solution:

Since M and N are homogeneous function of degree 1, then let

y = vx

dy = vdx + xdv

(x vx ln |vx| + vx ln |x|)dx + x(ln |vx| ln |x|)(vdx + xdv) = 0

xdx + x

2 (ln |vx| ln |x|)dx + x(ln |vx| ln |x|)(vdx + dv) = 0

xdx + x

2 ln |v|dv = 0

By separation of variables, divide the equation by x

2

xdx + x

2 ln |v|dv = 0

dx

x

  • ln |v| = 0

Z dx

x

Z

ln |v| = 0

ln |x| + v ln |v| v = ln |c|

Since v =

y

x

, then

ln |x| + v ln |v| v = ln |c|

ln |x| +

y

x

ln

y

x

y

x

= ln |c|

x ln |x| + y ln

y

x

y = cx

x ln |x| + y ln |y| y ln |x| y = cx

(x y) ln |x| + y ln |y| = cx + y

Solve the equation

xdx + sin

2

y

x

(ydx xdy) = 0

Solution:

Rewrite the given equation as

x + y sin

2

y

x

dx x sin

2

y

x

dy = 0

Let

y = vx; v =

y

x

dy = vdx + xdv

x + vx sin

2 v

dx x sin

2 v(vdx + xdv) = 0

[x + vx sin

2 v vx sin

2 vdx] x

2 sin

2 vdv = 0

xdx x

2 sin

2 vdv = 0

By separation of variables, divide the equation x

2

xdx x

2 sin

2 vdv = 0

dx

x

sin vdv = 0

Z dx

x

Z

sin vdv = 0

Z

dx

x

Z ✓

cos 2v

dv = c

ln |x|

v +

sin 2v = ln |c|

Since v =

y

x

, then

ln |x|

y

x

sin

y

x

= ln |c|

4 x ln |x| 2 y + x sin

y

x

= 4x ln |c|

4 x ln |x| + 4x ln |c| 2 y + x sin

y

x

4 x ln |cx| 2 y + x sin

y

x

Solve the equation

(x y)(4x + y)dx + x(x(5x y))dy = 0

Solution:

Rewrite the given equation as,

(4x

2 4 xy + xy y

2 )dx + (5x

2 xy)dy = 0

(4x

2 3 xy y

2 )dx + (5x

2 xy)dy = 0

Let

y = vx; v =

y

x

dy = vdx + xdv

(4x

2 3 xy y

2 )dx + (5x

2 xy)dy = 0

(4x

2 3 x

2 v v

2 x

2 )dx + (5x

2 x

2 v)(vdx + xdv) = 0

(4x

2

  • 2x

2 v 2 v

2 x

2 )dx + x

3 (5 v)dv = 0

x

2 (4 2 v 2 v

2 )dx + x

3 (5 v)dv = 0

By separation of variables, divide the equation by x

3 (4 + 2v 2 v

2 )

x

2 (4 2 v 2 v

2 )dx + x

3 (5 v)dv = 0

dx

x

5 v

4 + 2v 2 v

2

dv = 0

Z dx

x

Z

(5 v)dv

4 + 2v 2 v 2

= c

Z

dx

x

Z ✓

v + 1

v 2

dv = c

ln |x| +

(2 ln |v + 1| + ln |v 2 |) = ln |c|

2 ln |x| + 2 ln |v + 1| ln |v 2 | = ln |c|

ln

x

2 (v + 1)

2

v 2

= ln |c|

x

2 (v + 1)

2

v 2

= c

x

2 (v + 1)

2 = c(v 2)

Since v =

y

x

, then

x

2

y

x

= c

y

x

x(y + x)

2 = c(y 2 x)

Solve the equation

t(s

2

  • t

2 )ds s(s

2 t

2 )dt = 0

Solution:

Let

s = vt; v =

s

t

ds = vdt + tdv

t(v

2 t

2

  • t

2 )(vdt + tdv) vt(v

2 t

2 t

2 )dt = 0

[(v

3 t

3

  • vt

3 ) (v

3 t

3 vt

3 )]dt + t

2 (v

2 t

2

  • t

2 )dv = 0

2 vt

3 dt + t

4 (v

2

  • 1)dv = 0

Divide the equation by vt

4 to separate the variables.

2 vt

3 dt + t

4 (v

2

  • 1)dv = 0

dt

t

v

2

  • 1

v

dv = 0

dt

t

  • vdv +

dv

v

2 ln |t| +

v

2

  • ln |v| = ln |c|

Since v =

s

t

, then

2 ln |t| +

s

t

  • ln

s

t

= ln |c|

2 ln |t| +

s

2

t 2

  • ln |s| ln |t| = ln |c|

ln |s| + ln |t| ln |c| +

s

2

2 t 2

ln

st

c

s

2

2 t 2

2 t

2 ln

st

c

  • s

2 = 0

s

2 = 2 t

2 ln

st

c

s

2 = 2 t

2 ln |cst|