Summary 1
Summary 1
Summary 1
Course Summary I
Extremely Important: what it means for a function to solve a differential equation or initial-
value problem and how to check this; implicitly defined solutions; general solution vs. specific
solution.
and sketches as in Figure 1 on page 7; direction fields and solution curves; separable equations;
general structure of solutions (the number of C’s); linear approximations of functions; Euler’s for-
mula.
Important: finding solutions to separable first-order equations and linear homogeneous second-
order equations with constant coefficients; finding solutions to initial-value problems involving such
equations; Euler’s method and its geometric interpretation; autonomous first-order equations; ap-
plication problems (leading to separable equations).
A: Terminology
A.1 A first-order differential equation is an equation that involves a function, its derivative, and
the independent variable,
R(x, y, y ′ ) = 0, y = y(x), (A1)
and cannot be simplified, through algebraic means, to a relation R̃(x, y) = 0. In (A1), R is a
function of three variables. Most first-order differential equations arising in applications can be
put into the form
y ′ = f (x, y), y = y(x), (A2)
where f is a function of two variables. An initial-value problem, for a first-order differential
equation, is a set of conditions:
A.2 A solution of (A1), or of (A2), is a function y = y(x) that satisfies (A1), or (A2). In order
to check if a given function y = y(x) is a solution of (A1), or of (A2), one must compute y ′ (x)
and plug in y and y ′ into (A1), or (A2), to see if the equality holds. A solution of the initial-value
problem (A3) is a function y = y(x) that satisfies the differential equation and the initial-value re-
quirement in (A3). In order to check if a given function y = y(x) is a solution of (A3), one must check
whether y = y(x) is a solution of the differential equation and that y(x0 ) = y0 ; the latter is usually
easier to do and so should be done first. Typically, but not always, (A3) will have a unique solution.
A.3 A solution curve for the first-order differential equation (A1), or for (A2), is the graph, in
the xy-plane, of a solution y = y(x) of (A1), or of (A2). Typically, but not always, solution curves
for the same first-order differential equation do not intersect, because typically (A3) has a unique
solution. A solution curve for the initial-value problem (A3) is the graph of a solution y = y(x)
of (A3). Such a graph must pass through the point (x0 , y0 ).
Caution: While the solution curves for the simplest first-order differential equations, i.e. (B1) be-
low, differ by vertical shifts, this is not the case for other first-order differential equations.
A.4 The direction field for (A2) is usually thought of as a diagram, in the xy-plane, consisting of
short line segments of slope y ′ = f (x, y) through a number of points (x, y). Since the derivative of
a function y = y(x) is the slope of the tangent line to the graph of y, a solution curve for (A2) is
everywhere tangent to the direction field. In particular, if the direction field is drawn at sufficiently
many points, one can pretty much see solution curves.
B.1 The simplest first-order differential equations to solve are those of the form
The solution curves of (B1) differ by vertical shifts. An initial-value problem for (B1) is solved by
Rx
y ′ = f (x), y(x0 ) = y0 =⇒ y(x) = y0 + x0 f (u)du
B.2 Separable first-order differential equations are the equations of the form
dy dy R dy R
dx = f (x) · g(y), y = y(x) =⇒ g(y) = f (x)dx =⇒ g(y) = f (x)dx
Once the two integrals are computed, one obtains a relation between y and x of the form
These relations define solutions y = y(x) of (B2) implicitly. In some cases, it is possible to solve
(B3) for y = y(x). An initial-value problem for (B2) is solved by
dy dy Ry dz
Rx
dx = f (x) · g(y), y(x0 ) = y0 =⇒ g(y) = f (x)dx =⇒ y0 g(z) = x0 f (u)du
Alternatively, one can first find the general solution and then find the constant C by plugging in the
initial conditions. It is the easiest to find C as soon as it appears, i.e. plug in the initial conditions
2
into (B3) and then solve for y = y(x), instead of first solving (B3) for y = y(x) and then solving for C.
Caution: (i) This separation-of-variables method involves division by g = g(y) and may miss some
of the constant solutions of (B2). Such solutions are necessarily of the form y = y ∗ , where y ∗ is a
real number such that g(y ∗ ) = 0.
(ii) If you are solving an initial-value problem and it is possible to solve for y = y(x) explicitly,
make sure you take the correct branch, if there is more than one, of the appropriate level curve of
H = F −G, e.g. the positive or negative square root, and not both. The correct branch is the one
satisfying the initial condition y(x0 ) = y0 .
The general solution of a second-order linear homogeneous equation with constant coefficients
r2 + br + c = 0. (C2)
The general solution can be of two or three different forms, depending on whether one is looking
for complex or real solutions:
If the coefficients b and c are real, the roots r1 and r2 of (C2) are either real or complex conjugates
of each other. In the latter case, Euler’s formula,
can be used to extract the general real solution from the general complex solution:
√
y ′′ +by ′ +cy = 0 =⇒ y(x) = C1 epx cos qx + C2 epx sin qx, p = − 12 b, q = 21 4c−b2 , if b2 < 4c
3
D: Euler’s Method
D.1 Euler’s method is used to estimate the value y(b) of the solution y = y(x) to a first-order
initial-value problem
y ′ = f (x, y), y(a) = y0 , (D1)
at b, for b > a. This is especially useful when the explicit solution y = y(x) of (D1) cannot be found.
Euler’s method can also be used if f is known only at a discreet grid of points (xi , yj ), as the case
may well be in an experimental setting.
D.2 Euler’s method is a fixed-step method. This means that we break up the interval [a, b] into n
segments [xi , xi+1 ] of equal length h = (b−a)/n, i.e.
x0 = a, x1 = x0 +h = a+h, . . . xn−1 = xn−2 +h = a+(n−1)h, xn = xn−1 +h = a+nh = b.
We then give an estimate yi for the value of the function y at xi . More precisely, we give an
estimate y1 for y(x1 ), where y = y(x) is the solution to the initial-value problem
y ′ = f (x, y), y(x0 ) = y0 .
We then use the same procedure to give an estimate y2 for ỹ1 (x2 ), where ỹ1 = ỹ1 (x) is the solution
to the initial-value problem
y ′ = f (x, y), y(x1 ) = y1 .
Since y1 is an estimate for y(x1 ), y2 will also be an estimate for y(x2 ). At the i-th step of this
construction, we give an estimate yi+1 for ỹi (xi+1 ), where ỹi = ỹi (x) is the solution to the initial-
value problem
y ′ = f (x, y), y(xi ) = yi .
After n steps, we end up with an estimate yn for ỹn−1 (xn ), where ỹn−1 = ỹn−1 (x) is the solution to
the initial-value problem
y ′ = f (x, y), y(xn ) = yn−1 .
This number yn will also be an estimate for y(b).
4
E: Applications
E.1 Find an equation for the curve with slope f (x, y) at (x, y) and passing through a point (x0 , y0 ).
Since the slope of the graph of y = y(x) at (x, y(x)) is y ′ (x), this reduces to solving the initial-value
problem
y ′ = f (x, y), y = y(x), y(x0 ) = y0 ;
the last condition means that the graph of y passes through (x0 , y0 ). You should simplify your
final answer as much as possible, without necessarily finding an explicit expression for y = y(x)
since you are asked for an equation of a√ curve, not of a function. For example, x2 + y 2 = 1 is a
nicer expression for a curve than y = ± 1 − x2 .
E.2 Mixing problems. In these problems the independent variable is usually t (time), measured in
some units, and y = y(t) is the amount of some substance in a thoroughly mixed solution/mixture
contained in some “reservoir” (water tank, room, etc.). The mixture might be leaving the reservoir
at some fixed rate, while another mixture (or several other mixtures) might be entering the reservoir.
The main difficulty in such problems is to set up a differential equation for y(t). It will be of the form
y ′ (t) = yin
′ ′
(t) − yout (t), y = y(t).
′ (t), is the concentration of the substance in the mixture
The outgoing flow rate of the substance, yout
times the outgoing flow rate of the mixture; while the outgoing flow rate of the mixture is typically
fixed, the concentration typically changes with time. The incoming flow rate of the substance,
′ (t), is the concentration of the substance in the incoming mixture times the incoming flow rate
yin
of the mixture (this might have to be summed up over several incoming mixtures); this number is
typically constant. So you should end up with an initial-value problem of the form
where y0 is the initial amount of the substance in the reservoir and a, b > 0; both are constants if
the volume in the reservoir is kept constant (otherwise, only a is constant). If a, b are constants,
the above equation is separable and so can be solved. If you do this correctly, the concentration
of the substance in the reservoir should approach the (weighted) concentration of the substance in
the incoming mixture(s). Make sure your final answer has the correct physical units.
E.3 Exponential growth/decay equation. In this case, the independent variable is usually t (time),
measured in some units, and the main dependent variable y(t) is described
y(t) = y(0)ert
The first equation is the equation you should start with and then try to figure out what the num-
bers y(0) and r are. These might be given in the statement of the problem or you may have to
find them knowing that y(t) is given by the above formula for some y(0) and r. The function y(t)
will typically be the size of a population, amount of a radioactive substance, difference with the
ambient temperature, or bank/loan balance at time t measured in certain units (which you may
need to specify). In all of these cases y(t) > 0 for all t; in the middle two cases r < 0, while in the
5
other two cases r > 0. Make sure your final answer has the correct physical units.
E.4 Logistic growth equation. In this case, the independent variable is usually t (time), measured
in some units, and the main dependent variable y(t) is normally the size of a population at time t
growing with limited resources. You should begin any such problem with the formula
K Ky(0)
y(t) = y(0)−K −rt
==
1− y(0) + (K −y(0))e−rt
y(0) e
Such equations often model natural phenomena, expressing the fact these are governed by the
same principles whether they start today or tomorrow. The equations (E1), (E2), and (E3) are
autonomous (assuming a, b are constant in (E1)). Equation (F1) is separable and we can solve it
implicitly for y = y(t) as G(y) = t+C. However, a lot of descriptive information about (F1) can be
obtained without solving it.
F.2 Since RHS of (F1) does not involve t, the direction field of (F1) does not change under hori-
zontal shifts. Thus, a horizontal shift of a solution curve is again a solution curve. Furthermore, if
y ∗ is a real number such that g(y ∗ ) = 0, then the constant function y(t) = y ∗ is a solution of (F1).
Such a number y ∗ is an equilibrium point for (F1) and y(t) = y ∗ is an equilibrium solution of (F1).
The corresponding solution curve is the horizontal line y = y ∗ in (t, y)-plane. The horizontal graphs
of the equilibrium solutions of (F1) partition the (t, y)-plane into horizontal bands y1∗ < y < y2∗ . In
each band, the function g(y) does not change sign. Thus, in each single band, all solution curves
of (F1) either descend and approach the line y = y1∗ or ascend and approach the line y = y2∗ as t
approaches ∞.
are y = −3, y = −1, and y = 3. The graphs of these solutions are the horizontal lines y = −3,
y = −1, and y = 3, shown in the third plot in Figure 1. These lines partition the ty-plane into
6
g(y) y y
3 y=3
y t
−3 −1 3
−1 y = −1
−3 y = −3
horizontal bands y1∗ < y < y2∗ . Since solution curves of the differential equation (F2) do not intersect,
no solution curve can cross the graphs of the equilibrium solutions. For example, if y = y(t) is a
solution of (F2) such that y(t0 ) ∈ (−1, −3) for some t0 , then y(t) ∈ (−1, −3) for all t. In each band,
the function g(y) does not change sign. Thus, in each single band, all solution curves of (F2) either
descend or ascend. Furthermore, each solution curve must approach either an equilibrium solution
curve or ±∞ as t −→ ±∞. The best way to tell whether the solution curves in the given band
descend or ascend is by sketching the graph of the function g = g(y), as done for the differential
equation (F2) in the first plot in Figure 1. Note that the y-intercepts of this graph correspond
to the equilibrium solutions of the differential equation. The phase line in the middle of Figure 1
shows the equilibrium points for the differential equation (F2), or the y-intercepts of the graph of g.
It also indicates, using arrows, whether the solution curves in each band cut out by the horizontal
equilibrium-solution lines ascend and descend. The arrow corresponding to a segment of the phase
line points up (down) if g(y) is positive (negative) on the this segment.