Math 315 Midterm Exam Winter 2014 Version 1 1. Solve (sinxcosx +

Math 315 Midterm Exam Winter 2014
Version 1
1. Solve (sin x cos x + y 3 )dx + 3xy 2 dy = 0.
Solution: The equation is of the form
a(x, y)dx + b(x, y)dy = 0,
where
a(x, y) = sin x cos x + y 3 ,
We have
∂a
= 0 + 3y 2 ,
∂y
b(x, y) = 3xy 2 .
and
and
∂b
= 3y 2 ,
∂x
so the equation is exact. This means that there is a function F (x, y) such that
∂F (x, y)
= a(x, y),
∂x
and
∂F (x, y)
= b(x, y).
∂y
The latter condition gives
Z
F (x, y) =
Z
b(x, y)dy =
3xy 2 dy = xy 3 + f (x),
and substituting this into the former, we get
∂F (x, y)
= y 3 + f 0 (x) = a(x, y) = sin x cos x + y 3 .
∂x
Now we need to find a function f (x) such that f 0 (x) = sin x cos x. It can be done by a
simple integration:
Z
Z
1
f (x) = sin x cos x dx = sin x d sin x = sin2 x + C.
2
Since we just need one function f (x) such that f 0 (x) = sin x cos x, we pick the simplest
choice f (x) = 12 sin2 x, which yields
F (x, y) =
1
sin2 x + xy 3 .
2
Finally, we can write the solution in implicit form as
1
sin2 x + xy 3 = A,
2
with A an arbitrary constant.
√
2. Solve the initial value problem y 0 − 2y sin x = 2 y sin x with y( π2 ) = 0.
Solution: We recognize this as a Bernoulli equation y 0 + αy = βy k , with k = 21 , and
√
recall that a suggested substitution is u = y 1−k = y or y = u2 . Alternatively, this
substitution could be guessed just by looking at the equation, because the “trouble
√
maker” is the term y, and the substitution y = u2 gets rid of the square root. If one
does not remember the exact exponent q in the substitution y = uq , then it is also
possible to work with an unknown exponent q until a point when the equation itself
reveals which value of q would lead to a linear equation.
Getting back to solving the equation, if y = u2 , then y 0 = 2uu0 , and so
2uu0 − 2u2 sin x = 2u sin x,
or
u0 − u sin x = sin x.
Since (cos x)0 = − sin x, a suggested integrating factor is µ(x) = ecos x . Let us compute
(ecos x u(x))0 = ecos x u0 (x) + ecos x (− sin x)u(x) = ecos x (u0 (x) − u(x) sin x).
This must be equal to ecos x sin x, if u were to satisfy u0 − u sin x = sin x. So we have
(ecos x u(x))0 = ecos x sin x.
A direct integration gives
Z
Z
cos x
cos x
e
u(x) = e
sin x dx = − ecos x d cos x = −ecos x + C,
and thus
u(x) = −1 + Ce− cos x .
Before converting this into an expression for y(x), we want to impose the initial con√
dition y( π2 ) = 0. In terms of u = y, this initial condition is still u( π2 ) = 0. Since
cos π2 = 0, it leads to
u( π2 ) = −1 + C = 0,
that is,
C = 1.
Finally, the solution to the original initial value problem is
y(x) = [u(x)]2 = (e− cos x − 1)2 .
Page 2