Math Gre w2015 Lecture7
Math Gre w2015 Lecture7
This is the seventh week of the Mathematics Subject Test GRE prep course; here, we
review various techniques used to solve differential equations!
1
for two functions M (x), N (y). We can solve this equation by “separating” M (x) from
N (y): that is, by dividing both sides by N (x) and “multiplying” by dx to get1 the
following:
1
M (x)dx = dy.
N (y)
Integrating both sides yields
Z Z
1
M (x)dx = dy,
N (y)
which gives us a relation that can be used to solve for y with algebra/other techniques.
Be aware that this equation above only gives us solutions for which g(y) 6= 0. In the
event that g(y) is identically 0 — i.e. y is a constant — you would need to check this
manually by seeing if a constant value of y can solve our equation.
We calculate an example here:
⇒x3 + x = y 2 − 3y + c
Because (0, 0) is a point that should be a solution to our equation, we can see that
c = 0, and that our equation is (solving for y)
x3 + x = y 2 − 3y
⇒y 2 − 3y − (x3 + x) = 0
p
3 ± 9 + 4(x3 + x)
⇒y= .
2
At x = 0, this expression is 3±3
2 , which we know should be 0; this tells us that we
want the positive branch of this expression, i.e.
p
3 + 9 + 4(x3 + x)
y= .
2
1
Formally speaking, we are doing something more subtle than multiplying through by dx, because what
would that even mean? What is a dx, outside of an integral? For rigorous answers to this, take courses on
analysis and differential equations! For now, however, just roll with it.
2
2. Homogeneous first-order differential equations. Suppose that you have a dif-
ferential equation of the form
dy
M (x, y) + N (x, y) = 0,
dx
where M (x, y), N (x, y) are a pair of degree-n homogeneous equations2 . We can solve
this differential equation by defining v = y/x, which lets us make the substitution
y = xv, and yields the equation
d
M (x, xv) + N (x, xv)
(xv) = 0.
dx
If M, N are homogeneous of degree n, this yields
n n dv
x · M (1, v) + x · N (1, v) · v + x = 0,
dx
dv
which we can solve for dx to get
dv N (1, v) 1
= − −v · .
dx M (1, v) x
This is a separable differential equation, and therefore is solvable by our earlier meth-
ods! Use them to solve this differential equation, and then finally substitute v = y/x
back to get a solution for our original problem.
We calculate an example here:
2
A function f (x, y) of two variables is called homogeneous of degree n if f (tx, ty) = tn f (x, y) for all
t, x, y. For example, f (x, y) = x2 + xy + y 2 is homogeneous of degree 2, as f (tx, ty) = t2 x2 + txty + t2 y 2 =
t2 f (x, y).
3
Integrating both sides of this separable equation gives us
Z Z Z
1 v 1 2 1
− 1 dv = − 2
dv = − ln(1 + v ) = dx = ln(x) + c.
v +v
1 + v 2 x
Plugging in v = y/x yields
y2
1
− ln 1 + 2 = ln(x) + c
2 x
y 2 −2 c
⇒1 + 2 = e−2 ln(x)+c = c · eln(x) = 2
x x
⇒y 2 = c − x2
p
⇒y = ± c − x2 .
4
Example. Solve the differential equation
dy
+ x2 y = x5 ,
dx
given the boundary condition that at x = 0 we want y = 0.
To integrate the RHS, we use the substitution u = x3 /3, motivated by the fact that
eanything not just a single variable is a total pain to calculate: as du = x2 dx and 3u = x3 ,
we get
3 Z 3
yex /3 = x5 ex /3 dx
Z
3
⇒ = x3 ex /3 x2 dx
Z
= 3ueu du
= 3ueu − 3eu + C
3 /3
= ex (x3 − 3) + C
C
⇒ y = x3 − 3 + .
ex3 /3
Our boundary conditions tell us that we want (0, 0) to be a solution to our equation:
in other words, that 3 = C.
5
to y: i.e. some function F (x, y) such that
Z
F (x, y) = M (x, y)dx + Cy ,
Z
F (x, y) = N (x, y)dy + Cx ,
Note that I have written Cy , Cx instead of the normal constants C; this is because when
we integrate with respect to x, y is held constant (and similarly for y, x.) Therefore,
terms involving the coefficient we are not integrating by are “constants” that can show
up in our solution! (This is why we need to consider integrating both M (x, y) and
N (x, y), and not just one of the two.)
Fun fact we’re not proving here: such a function always exists for exact differential
equations, and you can always find it!
∂ ∂
When you do, you’ll get that ∂x F (x, y) = M (x, y), ∂y F (x, y) = N (x, y). Therefore,
we can write our differential equation in the form
∂ ∂ dx
F (x, y) + F (x, y) = 0.
∂x ∂y dy
But this is simply the total derivative of the function F (x, y)! Therefore, if we are
asking that this total derivative is 0, we are looking for the set of all points (x, y) on
which F (x, y) is constant; that is, the set of all level curves of F (x, y), i.e.
F (x, y) = c.
6
i.e. F (x, y) = sin(xy) + C. Our solutions are simply the level curves of this function;
i.e. the set of all points (x, y) satisfying sin(xy) = c. If we want (1, 0) on this curve,
we want sin(0) = C; i.e. C = 0, and therefore that our solutions are the set of all
points satisfying sin(xy) = 0.
7
is indeed a function ξ(x) that only depends4 on the variable x! RTherefore, as suggested
above, we can multiply both sides by the integrating factor e ξ(x)dx = e3x , to get
dy
(3x2 y + y 3 + 2yx)e3x + (x2 + y 2 )e3x = 0.
dx
We can see that this equation now is exact, as
∂
(3x2 y + y 3 + 2yx)e3x = (3x2 + 3y 2 + 2x)e3x ,
∂y
∂ 2
(x + y 2 )e3x = 2xe3x + (x2 + y 2 )3e3x
∂x
are both equal. Therefore, we can find a solution by integrating (3x2 y+y 3 +2yx)e3x , (x2 +
y 2 )e3x appropriately:
Z
F (x, y) = (3x2 y + y 3 + 2yx)e3x dx
y 3 3x
2 3x 2 3x 2 3x 2 3x 2 3x
y x e − xe + e + e +y xe − e + Cy
3 9 3 3 9
y3
=yx2 e3x + e3x + Cy .
Z 3
F (x, y) = (x2 + y 2 )e3x dy
y 3 3x
=yx2 e3x + e + Cx .
3
So we have
3x 2 3x 2 3x
F (x, y) = e +y xe − e + C,
3 9
Solutions to our differential equation are level curves of this function; i.e. all x, y such
that
y 3 3x
yx2 e3x + e = C.
3
Asking that (0, 0) is on such a curve is simply the restriction that C = 0; that is, we
have
y 3 3x
yx2 e3x + e = 0.
3
4
Well, really, it doesn’t depend on anything. But that’s OK: constant functions are functions!
8
2 Example GRE Problems
We work four example problems here, taken from the three GRE exams you’ve completed
thus far in this class:
1 1 e2
(a) 2e (b) e (c) 2 (d) 2e (e) 2e2
Therefore, we can solve this by simply integrating these two functions appropriately:
Z
F (x, y) = (y − xex )dx = xy − xex + ex + Cy ,
Z
F (x, y) = x dy = xy + Cx .
Combining these results gives us F (x, y) = xy − xex + ex + C, which we want to find level
curves for; i.e. our solutions look like xy − xex + ex = C. If we plug in the point (1, 0), we
get C = 0. Finally, if we want to find out what happens when we have x = 2, note that
2y − 2e2 + e2 = 0
e2
implies that y = f (2) is just 2. In other words, our answer is (c).
Problem. Which of the following five pictures gives the graphs of two functions satisfying
the differential equation
2
dy dy
+ 2y + y 2 = 0?
dx dx
9
Answer. Factoring our equation yields
2
dy
+y = 0,
dx
The only answer whose curves have Ce−x -like behavior is (a), so we have answered our
question.
Problem. Suppose that we have a tank of water. This tank is a cube with vertical sides,
no top, and side length 10 feet. Let h(t) denote the height of the water level, in feet, above
the floor of the tank at time t.
Suppose that at time t = 0 water begins to pour into the tank at a constant rate of 1
cubic foot per second, and also begins to pour out of the tank at a rate of h(t) 4 cubic feet
per second. As t approaches infinity, what is the limit of the volume of the water in the
tank?
(a) 400 ft3 (b) 600 ft3 (c) 1000 ft3 (d) The limit DNE.
(e) We do not have enough information to solve this problem.
10
Answer. We note that on one hand, if we let V denote the volume of our tank, we have
V = 100h; consequently, we have that dV dh dV
dt = 100 dt . Conversely, we are given dt directly as
1 − h/4; therefore, by combining, we have the differential equation
dh 1 1
+ h= .
dt 400 100
R
This is linear; therefore, if we multiply both sides by the integrating factor e (1/400)dt =
et/400 , we get
dh t/400 1 t/400 1
e + e h = et/400
dt 400 100
d t/400 1
⇒ he = et/400
dt Z 100
1
⇒het/400 = et/400 dt
100
= 4et/400 + C
C
⇒ h = 4 + t/400 .
e
As t goes to infinity, this expression converges to 4; therefore the volume, which is 100h,
goes to 400. So our answer is (a).
11