



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Practice Midterm, Solutions
Problem 1 Solve each of the following, explicitly if possible and implicitly otherwise.
(a) 2xy′^ + y = 10
x.
Solutions: Standard form
y′^ +
2 x
y = 5x−^1 /^2.
The integrating factor is μ(x) =
x.
The solution is y(x) = 5
x + cx−^1 /^2.
(b) dydx = 2xy^2 + 3x^2 y^2
Solutions: The right hand side is (2x + 3x^2 )y^2 , so it is separable. y = 0 is a constant solution. For y 6 = 0, separation of variables gives
y = −
x^2 + x^3 + C
(c) 6xy^3 + 2y^4 + (9x^2 y^2 + 8xy^3 )y′^ = 0
Solutions: Standard form is
M dx + N dy = 0
where M (x, y) = 6xy^3 + 2y^4 , and N (x, y) = 9x^2 y^2 + 8xy^3. Since My = Nx = 18 xy^2 + 8y^3 , we know the equation is exact.
∫ M dx + g(y) = 3x^2 y^3 + 2xy^4 + g(y).
Fy = 9x^2 y^2 + 8xy^3 + g′(y) = N (x, y)
implies g′(y) = 0, so g(y) = C. Therefore, the solution is
F (x, y) = 3x^2 y^3 + 2xy^4 = C.
Problem 2. Consider the initial value problem
dy/dx = x^2 − y^2 , y(0) = 1.
(a) How many solutions are there solving this initial value problem? How do you know? Verify your answer using the proper theorem.
Solutions: x 0 = 0, y 0 = 1, and f (x, y) = x^2 − y^2. fy = − 2 y. We see both f and fy are continuous everywhere. By the Theorem of Existence and Uniqueness, we know this problem has a unique solution.
(b) Approximate y(0.2) using Euler’s method with step size 0.1. Show your steps.
Solutions: x 0 = 0, y 0 = 1 and h = 0.1. x 1 = 0.1, y 1 = y 0 + f (x 0 , y 0 )h = 0.9. x 2 = 0.2, y 2 = y 1 + f (x 1 , y 1 )h = 0.82 So the approximate value of y(0.2) is 0 .82.
If x < p, f (x) > 0; if x ∈ (p, q), f (x) < 0; if x > q, f (x) > 0. Therefore, x 1 = p is stable, x 2 = q is not.
(b) If x(0) = p+ 2 q, p < q, determine the limiting value of x(t) as t → +∞ without solving the differential equation.
Solutions: By part (a) and p+ 2 q∈ (p, q), we know the limiting value of x(t) is p.
(c) If x(0) = 12 , p = q = 1, solve the initial value problem for this equation and determine the limiting value of x(t) as t → +∞.
Solutions: p = q = 1, the problem reduced to
x′^ = α(x − 1)^2 , x(0) =
x = 1 is not the solution. By separation of variables, one has
x(t) = 1 −
αt + C
where C is determined by initial condition and C = 2. So
x(t) = 1 −
αt + 2
and the limiting value is 1.
Problem 5 Consider the system of differential equations
{ (^) dx dydt^ =^ y, dt =^
x−ty 1 −t.^
(a) What are the restrictions on t 0 , x 0 and y 0 in order that this system of equations has a unique solution for which x(t 0 ) = x 0 and y(t 0 ) = y 0.
Solution: According to the existence and uniqueness theorem for the ini- tial value problem for the linear homogeneous system, we know that the coeeficients need to be continuous. Therefore, we find the restriction
t 0 6 = 1.
(b) Find a solution (x(t), y(t)) of (1) for which y(t) = 1 is constant.
Solution Substitute y = 1 into the system, one finds
x′^ = 1, 0 = y′^ =
x − t 1 − t
which give x = t. Therefore, the desired solution is x = t and y = 1.
(c) Verify that (x, y) = (et, et) is another solution of (1.
Solution: Substitute and check. Yes.
(d) Find a solution which satisfies the initial conditions x(0) = 1 and y(0) =
(b) Sketch the solutions from (a) in the (x, y) plane, state the type and stability of the origin, indicate clearly in which direction t increases and the behavior for large t.
Solution: The sketch is omitted. Since λ 1 < 0 < λ 2 , the origin is the saddle point, and so it is unstable. For increasing t, the solution will go to infinity except for the line (y = x) in the direction of v 1 throught the origin, along which, the solution decays to the origin.
(c) From your sketch in part (b), what can you say about the long-term behavior of the solution with initial condition x(0) = 5, y(0) = 11?
Solution: Since the initial point (5, 11) is not on the line y = x, the solution will tend to infinity as t goes to positive infinity.
(d) Let A be the coefficient matrix in system (2). Compute eA.
Solution: There are two ways to compute eA: the fundamental matrix, and the matrix technique. Here we show the matrix technique. Clearly, let P = (v 1 , v 2 ) and D = diag{λ 1 , λ 2 }, one has A = P DP −^1 , and
eA^ = P eDP −^1 , f or eD^ = diag{eλ^1 , eλ^2 }.
Therefore, one finds
eA^ =
( 2 e−^3 − e^2 −e−^3 + e^2 2 e−^3 − 2 e^2 −e−^3 + 2e^2
) .