Docsity

Solution to Linear First-Order Differential Equation Exam Question - Prof. Wojciech Czaja, Exams of Calculus

Toggle sidebar
bg1
141 Exam 2 Fall 08 Dr. Czaja answer key number 1
1) Solve the differential equation
()
xy
xdx
dy cos
1
1+
−
=.
This is a linear first-order differential equation. Two paths to the integrating factor are shown below.
points
1
2
3
standard form:
()
xy
xdx
dy cos
1
1=
−
−
thus
()
x
xP −
−= 1
1 and Q = cos(x)
u = 1 – x, du = – dx
() ()
[]
xdx
x
xS −−−=
−
−= ∫1ln
1
1
integrating factor =
()
xe x−=
−1
1ln
standard form:
()
xy
xdx
dy cos
1
1=
−
+
thus
()
1
1
−
=x
xP and Q = cos (x)
u = x – 1, du = dx
() ()
1ln
1
1−=
−
=∫xdx
x
xS
integrating factor =
()
1
1ln −=
−xe x
There are also two ways to approach the integration. On the left the multiplication has been distributed and
two integrals evaluated. On the right, one integration by parts has been performed.
() ()()
()
[]
() ()
() ()
[]
∫∫
∫∫∫
−
−
=
−=−
−=−−
dxxxdxx
x
y
dxxxdxxdxyx
dx
d
xxy
dx
dy
x
coscos
1
1
coscos1
cos11
for the 2nd integral, using integration by parts:
u = x, du = 1 dx; dv = cos (x), v = sin (x)
() () ()
[
]
() () ()
x
Cxxxx
y
x
dxxxxx
y
−
+−−
=
−
−−
=∫
1
cossinsin 1
sinsinsin
Note “+ C” also must be “over (1 – x)”.
() ()()
()
[]
()()
()()
∫
∫∫
−
−
=
−=−
−=+−
dxxx
x
y
dxxxdxyx
dx
d
xxy
dx
dy
x
cos1
1
1
cos11
cos11
points
5
1
2
3
3
for the 1st integral, using integration by parts:
u = x – 1, du = 1 dx; dv = cos (x), v = sin (x)
(
)
(
)()
() () ()
1
cossinsin 1
sinsin1
−
++−
=
−
−−
=∫
x
Cxxxx
y
x
dxxxx
y
Note “+ C” also must be “over (x – 1)”.
1st note: The two answers are equal. These solutions check out when y
′
is found and inserted into the DE.
2nd note: alternate simplified version:
(
)
(
)
1
cos
sin
1
cos
sin −
+
+=
−
+
−= x
Cx
x
x
Cx
xy

Partial preview of the text

Download Solution to Linear First-Order Differential Equation Exam Question - Prof. Wojciech Czaja and more Exams Calculus in PDF only on Docsity!

141 Exam 2 Fall 08 Dr. Czaja answer key number 1

1) Solve the differential equation y ( ) x

dx x

dy cos 1

This is a linear first-order differential equation. Two paths to the integrating factor are shown below.

points

standard form: y ( ) x

dx x

dy cos 1

thus ( )

x

P x −

and Q = cos( x )

u = 1 – x , du = – dx

( ) dx [ ( x )]

x

S x =−− − −

= ∫ − ln 1

integrating factor =

e x

x = −

− 1

ln 1

standard form: y ( ) x

dx x

dy cos 1

thus ( )

x

P x and Q = cos ( x )

u = x – 1, du = dx

( ) ln( 1 )

= ∫ dx x

x

Sx

integrating factor =

ln 1 = −

− e x

x

There are also two ways to approach the integration. On the left the multiplication has been distributed and

two integrals evaluated. On the right, one integration by parts has been performed.

[ ( ) ] ( ) ( )

[∫ ( ) ∫ ( ) ]

x dx x x dx x

y

xy dx x dx x x dx dx

d

y x x dx

dy x

cos cos 1

1 cos cos

1 1 cos

for the 2nd integral, using integration by parts:

u = x , du = 1 dx ; dv = cos ( x ), v = sin ( x )

( ) [ ( ) ( ) ]

x

x x x x C y

x

x x x x dx y

sin sin cos

sin sin sin

Note “+ C ” also must be “over (1 – x )”.

[ ( ) ] ( ) ( )

∫^ (^ )^ ( )

x x dx x

y

x y dx x x dx dx

d

y x x dx

dy x

1 cos 1

1 1 cos

points 1 1 cos

for the 1st integral, using integration by parts:

u = x – 1, du = 1 dx ; dv = cos ( x ), v = sin ( x )

sin sin cos

1 sin sin

x

x x x x C y

x

x x x dx y

Note “+ C ” also must be “over ( x – 1)”.

1st note: The two answers are equal. These solutions check out when y ′ is found and inserted into the DE.

2nd note: alternate simplified version:

cos sin 1

cos sin −

x

x C x x

x C y x