Each problem is tagged by difficulty —
EasyMediumHardConceptual
— and within each section the problems are ordered from easiest to hardest, ending with a
conceptual question, so you can warm up, push yourself, and then test your understanding of
the ideas rather than just the mechanics.
A radioactive substance decays at a rate proportional to the amount present and has a
half-life of \(5\) days. If \(100\) mg are present initially, how much remains after \(20\)
days?
Solution:
Since the decay rate is proportional to the amount present, the model is \(\frac{dx}{dt}=kx\), whose general solution is \(x(t)=Ce^{kt}\). Since \(x(0)=100\), we have \(C=100\), so
The population of bacteria in a culture grows at a rate proportional to the number of
bacteria present at time \(t\). After \(3\) hours it is observed that \(400\) bacteria are
present. After \(10\) hours, \(2000\) bacteria are present. What was the initial number of
bacteria?
Solution:
Since the growth rate is proportional to the population, \(\frac{dP}{dt}=kP\), so \(P(t) = Ce^{kt}\) for constants \(C\) and \(k\) that we still need to find. Here \(C\) is not given directly (the first data point is not at \(t=0\)), so we use both pieces of data together. From the two observations,
Now substitute this back into \(Ce^{3k}=400\) to solve for \(C\), which is the initial population \(P(0)\):
\[
C = 400e^{-3k} = 400e^{-3\ln(5)/7} = 400\cdot 5^{-3/7}.
\]
Numerically, \(5^{-3/7}\approx 0.5017\), so
\[
\boxed{P(0) = C \approx 201 \text{ bacteria}.}
\]
Problem 3 Medium
A thermometer is taken from an inside room to the outside, where the air temperature is
\(0^\circ\)C. After \(1\) minute the thermometer reads \(20^\circ\)C, and after \(5\) minutes
it reads \(5^\circ\)C. What was the initial temperature of the inside room?
Solution:
By Newton's Law of Cooling, \(\frac{dT}{dt}=k(T-T_a)\) with ambient temperature \(T_a=0\), so the equation simplifies to \(\frac{dT}{dt}=kT\), and
\[
T(t) = Ce^{kt}.
\]
Using the two data points:
\[
T(1)=Ce^{k}=20, \qquad T(5)=Ce^{5k}=5.
\]
Dividing the second equation by the first eliminates \(C\):
\[
\boxed{T(0) = C = 20\sqrt{2} \approx 28.3^\circ\text{C}.}
\]
Problem 4 Hard
A thermometer reading \(72^\circ\)F is taken from a room and placed in a freezer held at a
constant, but unknown, temperature. After \(2\) minutes the thermometer reads \(40^\circ\)F,
and after \(4\) minutes it reads \(24^\circ\)F. What is the temperature of the freezer?
Solution:
This problem is harder than the previous cooling problems because the ambient temperature \(T_m\) (the freezer's temperature) is itself unknown, so we have three unknowns (\(T_m\), \(k\), and the constant of integration) but only two equations from the given readings — the trick is to use the initial reading to eliminate the integration constant, leaving two equations in \(T_m\) and \(k\), and then eliminate \(k\) algebraically.
By Newton's Law of Cooling, \(T(t) = T_m + Ce^{kt}\). Since \(T(0)=72\), we get \(C=72-T_m\), so
As a check: with \(T_m=8\), \(e^{2k}=\frac{40-8}{72-8}=\frac{32}{64}=\frac12\), so \(e^{4k}=\frac14\), and \(T_m+(72-T_m)e^{4k}=8+64\left(\frac14\right)=8+16=24\), which matches the second reading exactly.
Problem 5 Conceptual
Both the growth/decay equation \(\frac{dx}{dt}=kx\) and Newton's Law of Cooling
\(\frac{dT}{dt}=k(T-T_m)\) are described as linear models. Explain what
makes each of these equations linear, and explain what would go wrong with the solution
method of this section if the decay rate were instead proportional to the square of
the amount present, i.e. \(\frac{dx}{dt}=-kx^2\) (an equation that will appear again in
Section 3.2).
Solution:
Linearity is about how the unknown function (\(x\) or \(T\)) appears in the equation, not
about how the equation is used. In \(\frac{dx}{dt}=kx\), the unknown \(x\) appears only to
the first power on both sides, so it is linear. In \(\frac{dT}{dt}=k(T-T_m)\), expanding the
right-hand side gives \(kT-kT_m\); since \(T_m\) is a constant, this is still just \(T\) to
the first power plus a constant term, so the equation is linear in \(T\) as well — it fits
the general linear form \(T'-kT=-kT_m\).
If instead \(\frac{dx}{dt}=-kx^2\), the unknown \(x\) is squared on the right-hand side, so
the equation is nonlinear. This does not make the equation unsolvable — it
is still separable, since we can write \(\frac{dx}{x^2}=-k\,dt\) — but it does mean the
clean exponential solution \(x=Ce^{kt}\) that works for every problem in this section no
longer applies. Separating and integrating \(\frac{dx}{x^2}=-k\,dt\) instead produces
\(-\frac1x=-kt+C\), i.e. \(x=\frac{1}{kt+C}\), a rational function of \(t\) rather
than an exponential one. This is exactly the kind of nonlinear behavior that Section 3.2
explores in depth (the logistic equation is built from a nonlinear rate like this one).
A population is modeled by the logistic equation \(\frac{dP}{dt}=P(5-0.001P)\). Identify the
carrying capacity \(K\), and determine the approximate growth rate of the population when
\(P\) is very small compared to \(K\).
Solution:
Comparing to the standard logistic form \(\frac{dP}{dt}=P(a-bP)\), we read off \(a=5\) and \(b=0.001\). The carrying capacity is where the per-capita growth rate \(a-bP\) vanishes:
When \(P\) is very small compared to \(K=5000\), the term \(0.001P\) is negligible compared to \(5\), so the equation behaves approximately like
\[
\frac{dP}{dt} \approx 5P,
\]
i.e. the population grows approximately exponentially at rate \(5\) whenever it is far below its carrying capacity — the logistic equation only "feels" the carrying capacity once \(P\) becomes comparable in size to \(K\).
Problem 7 Medium
The number \(N(t)\) of people in a community who are exposed to a particular advertisement is
governed by the logistic equation. Initially \(N(0)=5000\), and it is observed that
\(N(1)=8000\). Solve for \(N(t)\) if the limiting number of people in the community who will
ever see the advertisement is predicted to be \(50{,}000\).
Solution:
The carrying capacity is \(K=50000\), and the general solution of the logistic equation is
Since \(7/12<1\), this gives \(r = \ln\!\left(\dfrac{12}{7}\right) \approx 0.539 > 0\), a positive growth rate, as it should be. Thus
\[
\boxed{N(t) = \frac{50000}{1+9e^{-rt}}, \qquad r = \ln\!\left(\frac{12}{7}\right).}
\]
Problem 8 Hard
Absent any fishing, a population of fish in a lake would follow the logistic equation
\(\frac{dP}{dt}=P(8-0.008P)\) (so the unharvested carrying capacity is \(K=1000\) and the
intrinsic growth rate is \(r=8\)). Suppose the lake is instead harvested at a constant rate of
\(h=1500\) fish per year, so that
\[
\frac{dP}{dt} = P(8-0.008P) - 1500.
\]
Find the equilibrium (critical point) population levels of the harvested model.
Solution:
Equilibria occur where \(\frac{dP}{dt}=0\). Expanding the right-hand side,
\[
P(8-0.008P)-1500 = -0.008P^2+8P-1500 = 0.
\]
Multiplying through by \(-125\) (chosen to clear the decimal, since \(1/0.008=125\)) turns this into a monic quadratic with integer coefficients:
\[
P^2 - 1000P + 187500 = 0.
\]
Applying the quadratic formula,
\[
P = \frac{1000\pm\sqrt{1000^2-4(187500)}}{2} = \frac{1000\pm\sqrt{1{,}000{,}000-750{,}000}}{2} = \frac{1000\pm\sqrt{250{,}000}}{2}.
\]
(As a check, note that harvesting shrinks the "band" of equilibria inward from \(0\) and \(1000\) toward each other — consistent with the remark in the lecture notes that harvesting moves the critical points away from \(P=0\) and \(P=K\).)
Problem 9 Conceptual
Consider the harvested logistic model from the previous problem,
\[
\frac{dP}{dt} = -0.008P^2+8P-1500 = -0.008(P-250)(P-750),
\]
which has equilibria at \(P=250\) and \(P=750\) (you can check the factorization above by
expanding it). Using a sign analysis of \(\frac{dP}{dt}\) on either side of each equilibrium,
explain why \(P=250\) behaves as an extinction threshold while \(P=750\) is a
stable, sustainable population level, and explain what each classification
means ecologically.
Solution:
We examine the sign of \(\frac{dP}{dt}=-0.008(P-250)(P-750)\) on the three intervals the two equilibria create:
For \(P<250\): both \((P-250)\) and \((P-750)\) are negative, so their product is positive; multiplying by \(-0.008\) makes \(\frac{dP}{dt}<0\) — the population is decreasing.
For \(250 < P < 750\): \((P-250)>0\) but \((P-750)<0\), so the product is negative; multiplying by \(-0.008\) makes \(\frac{dP}{dt}>0\) — the population is increasing.
For \(P>750\): both factors are positive, so the product is positive, and \(\frac{dP}{dt}<0\) — the population is decreasing.
At \(P=250\): just below, the population decreases further (moving away, toward \(0\) and
extinction); just above, the population increases (also moving away, up toward \(750\)).
Since solutions move away from \(250\) on both sides, it is an unstable
equilibrium. Ecologically, any population that dips even slightly below \(250\) will be
driven to extinction rather than recovering — it is a threshold, not a resting point.
At \(P=750\): just below, the population increases toward \(750\); just above, the
population decreases back toward \(750\). Since solutions approach \(750\) from both sides,
it is an asymptotically stable equilibrium — a population near \(750\) will
settle there and can be sustainably harvested at this rate indefinitely.
Element \(X\) decays into element \(Y\) at rate \(\lambda_1=0.5\), which in turn decays into a
stable element \(Z\) at rate \(\lambda_2=0.1\) (as in the radioactive decay series from the
lecture notes). If initially there are \(100\) grams of \(X\) and none of \(Y\) or \(Z\), write
down the system of differential equations, together with initial conditions, that models the
amounts \(x(t)\), \(y(t)\), \(z(t)\).
Solution:
The general decay-series system from the lecture notes is
with initial conditions \(x(0)=100\), \(y(0)=0\), \(z(0)=0\).
Problem 11 Medium
Tanks A and B each hold \(50\) gallons of brine. Fresh water flows into Tank A at \(4\)
gal/min. Solution flows from Tank A into Tank B at \(5\) gal/min, and from Tank B back into
Tank A at \(1\) gal/min; Tank B also drains out of the system entirely at \(4\) gal/min.
Initially Tank A contains \(20\) lb of dissolved salt and Tank B contains \(15\) lb. Construct
a mathematical model for the amount of salt \(x(t)\) and \(y(t)\) in tanks A and B,
respectively.
Solution:
First check that each tank's volume is actually constant, since that is what will let us
write "concentration \(=\) salt \(\div\) \(50\)" without worrying about a changing
denominator. Tank A gains \(4\) (fresh) \(+1\) (from B) \(=5\) gal/min and loses \(5\)
gal/min (to B) — net \(0\). Tank B gains \(5\) gal/min (from A) and loses
\(1+4=5\) gal/min (back to A and out of the system) — net \(0\). So both volumes stay fixed
at \(50\) gallons for all \(t\), and the concentrations are simply \(x(t)/50\) and
\(y(t)/50\).
For Tank A: salt enters from the fresh water (concentration \(0\)) and from Tank B at
\(1\) gal/min, and leaves toward Tank B at \(5\) gal/min:
\[
\frac{dx}{dt} = 1\cdot\frac{y}{50} - 5\cdot\frac{x}{50} = \frac{y}{50}-\frac{x}{10}.
\]
For Tank B: salt enters from Tank A at \(5\) gal/min, and leaves at a combined rate of
\(1+4=5\) gal/min (back to A and out of the system):
\[
\frac{dy}{dt} = 5\cdot\frac{x}{50} - 5\cdot\frac{y}{50} = \frac{x}{10}-\frac{y}{10}.
\]
Tanks A and B are connected so that brine flows from Tank A into Tank B at \(3\) gal/min, and
from Tank B back into Tank A at \(2\) gal/min (with no other inflows or outflows). Each tank
initially contains \(100\) gallons of brine; Tank A initially contains \(100\) lb of salt and
Tank B contains \(50\) lb. Construct a mathematical model for the amount of salt \(x(t)\) and
\(y(t)\) in tanks A and B, respectively.
Solution:
This problem is harder than the previous one because the two connecting flow rates
(\(3\) gal/min and \(2\) gal/min) are different, so — unlike Problem 11 — the
volumes in each tank change over time, and we need to track that before we can even write
down the concentrations.
Tank A loses \(3\) gal/min (to B) and gains \(2\) gal/min (from B), a net loss of \(1\)
gal/min, so starting from \(100\) gallons,
\[
V_A(t) = 100 - t.
\]
Tank B gains \(3\) gal/min (from A) and loses \(2\) gal/min (to A), a net gain of \(1\)
gal/min, so
\[
V_B(t) = 100 + t.
\]
Because each tank is well-stirred, the concentration in each is its salt content divided by
its (now time-dependent) volume:
\[
\text{concentration in A} = \frac{x(t)}{100-t}, \qquad
\text{concentration in B} = \frac{y(t)}{100+t}.
\]
For Tank A: salt enters from Tank B at \(2\) gal/min, and leaves toward Tank B at \(3\)
gal/min:
\[
\frac{dx}{dt} = 2\cdot\frac{y}{100+t} - 3\cdot\frac{x}{100-t}.
\]
For Tank B: salt enters from Tank A at \(3\) gal/min, and leaves toward Tank A at \(2\)
gal/min:
\[
\frac{dy}{dt} = 3\cdot\frac{x}{100-t} - 2\cdot\frac{y}{100+t}.
\]
with initial conditions \(x(0)=100\), \(y(0)=50\).
Problem 13 Conceptual
In the previous problem, Tank A's volume was found to be \(V_A(t)=100-t\) gallons. Explain
why the resulting model for \(x(t)\) can only be considered physically valid on the interval
\(0\le t<100\), and why this is a limitation of the physical situation being modeled rather
than a flaw in the differential equation itself. Contrast this with Problem 11, where no such
restriction was needed.
Solution:
The concentration term \(\dfrac{x(t)}{100-t}\) is only meaningful as long as \(100-t>0\),
i.e. \(t<100\); at \(t=100\), Tank A's volume would reach zero, and beyond that the formula
\(V_A(t)=100-t\) would predict a negative volume, which is physically impossible —
the tank would have run dry and the well-stirred-mixture assumption (and the entire
derivation of the differential equation) simply stops applying once that happens.
This is not a defect in the differential equation or its solution — the mathematics is
perfectly correct on \(0\le t<100\); it is a reflection of the fact that the physical
scenario we chose to model (draining faster than refilling) only makes sense for a finite
window of time. The model was only ever an accurate description of the tank system while
the tank actually contains liquid, and no mathematical technique can extend a model past the
point where its own physical assumptions break down.
In Problem 11, the inflow and outflow rates at each tank were exactly balanced, so the
volumes \(V_A(t)=V_B(t)=50\) stayed constant for all \(t\ge 0\) — there was never a volume
that could hit zero, so that model remains valid for all time and needs no such domain
restriction.
Given that \(y_1=e^{2x}\) and \(y_2=e^{-3x}\) are both solutions of \(y''+y'-6y=0\) on
\((-\infty,\infty)\), use the Wronskian to verify that \(\{y_1,y_2\}\) is a fundamental set of
solutions, and write down the general solution.
Solution:
Compute the Wronskian of \(y_1=e^{2x}\) and \(y_2=e^{-3x}\), using \(y_1'=2e^{2x}\) and \(y_2'=-3e^{-3x}\):
Since \(-5e^{-x}\neq 0\) for every real \(x\), the Wronskian is never zero, so \(\{y_1,y_2\}\)
is linearly independent, and since both functions solve the second-order homogeneous
equation, this makes \(\{y_1,y_2\}\) a fundamental set of solutions on
\((-\infty,\infty)\). Therefore the general solution is
\[
\boxed{y = c_1e^{2x}+c_2e^{-3x}.}
\]
Problem 15 Easy
Determine whether the functions
\[
3, \qquad \sin^2(x), \qquad \cos^2(x)
\]
are linearly independent on \((-\infty,\infty)\).
Solution:
Recall the Pythagorean identity \(\sin^2(x)+\cos^2(x)=1\). Multiplying both sides by \(3\),
This is a linear combination of the three given functions, with coefficients \(1\), \(-3\),
and \(-3\) — not all zero — that equals zero for every \(x\). By definition, this means the
functions are
\[
\boxed{\textbf{linearly dependent}.}
\]
Problem 16 Medium
Provide an example of a homogeneous, constant-coefficient differential equation of order \(2\)
for which \(y=\sin(2x)\) is a solution.
Solution:
Since we need to construct the equation rather than solve one, we work backward: compute the derivatives of \(y=\sin(2x)\) and look for a linear combination of \(y\) and its derivatives that vanishes identically.
Notice that \(y''=-4\sin(2x)=-4y\), so \(y''+4y=0\) is satisfied automatically for every
\(x\):
\[
y''+4y = -4\sin(2x)+4\sin(2x) = 0.
\]
So a second-order, constant-coefficient, homogeneous differential equation having \(\sin(2x)\) as a solution is
\[
\boxed{y''+4y=0.}
\]
(This makes sense from the Section 4.3 perspective too: the auxiliary equation \(m^2+4=0\) has roots \(m=\pm 2i\), giving general solution \(y=c_1\cos(2x)+c_2\sin(2x)\), which indeed contains \(\sin(2x)\) as the special case \(c_1=0,c_2=1\).)
Problem 17 Hard
Use the Wronskian to determine whether \(f_1=1\), \(f_2=e^x\), \(f_3=e^{2x}\) are linearly
independent on \((-\infty,\infty)\).
Solution:
With three functions we need the \(3\times 3\) Wronskian, built from each function and its first two derivatives:
Since the first column has only one nonzero entry (the \(1\) in the top row), we can expand along it, which reduces the determinant to a single \(2\times 2\) piece:
Since \(2e^{3x}\neq 0\) for every real \(x\), the Wronskian is never zero, so
\[
\boxed{f_1=1,\ f_2=e^x,\ f_3=e^{2x}\ \text{are linearly independent on } (-\infty,\infty).}
\]
Problem 18 Conceptual
Are all differentiable functions linearly independent from their own derivatives? Justify your
answer, and explain what it means for the Wronskian in a case where independence fails.
Solution:
No. Two functions \(f\) and \(f'\) are linearly dependent precisely when
\(f'\) is a constant multiple of \(f\), and plenty of functions satisfy this. The simplest
example is
\[
f(x) = e^x, \qquad f'(x) = e^x.
\]
Here \(f'(x)-f(x)=0\) for every \(x\) — a nontrivial linear combination (coefficients \(1\) and \(-1\), not both zero) that vanishes identically — so by definition \(f\) and \(f'\) are linearly dependent in this case, not independent.
This is consistent with the Wronskian test: for \(f_1=f\), \(f_2=f'\),
\[
W(f_1,f_2) = f_1f_2'-f_2f_1' = f\cdot f''-f'\cdot f' = e^x\cdot e^x - e^x\cdot e^x = 0
\]
for \(f=e^x\), confirming dependence. (For a function like \(f(x)=x^2\), by contrast, \(f'=2x\) is not a constant multiple of \(f\), and one can check the corresponding Wronskian is nonzero away from \(x=0\), so in that case \(f\) and \(f'\) genuinely are linearly independent.) So the answer depends entirely on the specific function — there is no universal rule forcing independence.
(This matches what Section 4.3 would predict directly: the auxiliary equation \(m^2+4m+4=(m+2)^2=0\) has the repeated root \(m=-2\), giving exactly \(y=c_1e^{-2x}+c_2xe^{-2x}\).)
Problem 20 Medium
Use reduction of order to find the general solution to
\[
x^2y''+xy'=0
\]
given that \(y_1=\ln(x)\) is one solution on \((0,\infty)\).
Since a nonzero constant multiple of a solution is still a solution, we may simply take \(y_2=1\) (indeed, \(y=1\) satisfies \(x^2y''+xy'=0\) directly, since \(y'=y''=0\)). Thus
\[
\boxed{y = c_1\ln(x)+c_2.}
\]
(This is consistent with treating the equation as a Cauchy–Euler equation: trying \(y=x^m\) gives \(m(m-1)+m=m^2=0\), a repeated root \(m=0\), whose two independent solutions are \(x^0=1\) and \(x^0\ln x=\ln x\) — matching exactly.)
Problem 21 Hard
Use reduction of order to find the general solution to
\[
x^2y''+3xy'+y=0
\]
given that \(y_1=x^{-1}\) is one solution on \((0,\infty)\).
confirming \(\{y_1,y_2\}\) is genuinely a fundamental set (and this matches Abel's formula \(W=e^{-\int P\,dx}=e^{-3\ln x}=x^{-3}\) exactly). So the general solution is
(This agrees with treating the equation as a Cauchy–Euler equation: \(m(m-1)+3m+1=(m+1)^2=0\) has the repeated root \(m=-1\), giving exactly \(y=x^{-1}(c_1+c_2\ln x)\).)
Problem 22 Conceptual
The theorem in this section states that if \(y_2\) is constructed from a known solution
\(y_1\) via reduction of order, then \(W(y_1,y_2)=e^{-\int P(x)\,dx}\). Explain why this
single formula guarantees that \(\{y_1,y_2\}\) is automatically a fundamental set of
solutions, without ever needing to compute \(y_2\) explicitly and separately check the
Wronskian.
Solution:
Recall that a pair of solutions \(\{y_1,y_2\}\) of a second-order homogeneous linear
equation forms a fundamental set exactly when their Wronskian is nonzero everywhere on the
interval of interest.
The formula \(W(y_1,y_2)=e^{-\int P(x)\,dx}\) expresses the Wronskian directly as an
exponential function. The exponential function \(e^{u}\) is never zero for any
real (or even complex) value of \(u\) — no matter what \(P(x)\) is, as long as it is
continuous so that \(\int P(x)\,dx\) is a well-defined real number at each point of the
interval, \(e^{-\int P(x)\,dx}\) can never equal zero.
So the moment we know \(y_2\) was built by the reduction-of-order construction (rather than
picked arbitrarily), we automatically know its Wronskian with \(y_1\) has this exponential
form, and therefore is guaranteed to be nonzero — linear independence, and hence "fundamental
set" status, comes for free from the construction itself, without ever needing to write out
\(y_2\) explicitly or plug it into a determinant to check.
Find the general solution to the third-order equation
\[
y'''-2y''-5y'+6y=0.
\]
Solution:
This is harder than the second-order cases because the auxiliary equation is now a cubic,
\[
m^3-2m^2-5m+6=0,
\]
which does not factor by inspection the way a quadratic does — we first need to locate one root, typically by testing small integer candidates. Trying \(m=1\):
\[
1-2-5+6 = 0. \checkmark
\]
So \(m=1\) is a root, meaning \((m-1)\) is a factor. Dividing \(m^3-2m^2-5m+6\) by \((m-1)\) (synthetic or long division) gives
So the three roots are \(m=1,\ 3,\ -2\) — all real and distinct. By the extension of the distinct-real-roots case to higher order, the general solution is
\[
\boxed{y = c_1e^{x}+c_2e^{3x}+c_3e^{-2x}.}
\]
Problem 27 Conceptual
Without fully solving, explain how the sign of the discriminant \(b^2-4ac\) in the auxiliary
equation \(am^2+bm+c=0\) determines whether the general solution of \(ay''+by'+cy=0\)
consists of two separate real exponentials, a repeated-root pair \(e^{mx}\) and \(xe^{mx}\),
or oscillatory (sine/cosine) behavior. Then, for the equation \(y''+2y'+5y=0\), determine
which of these three behaviors occurs, and whether the oscillation (if any) grows, decays, or
stays constant in amplitude — without writing down the full solution.
Solution:
The quadratic formula \(m=\dfrac{-b\pm\sqrt{b^2-4ac}}{2a}\) shows that everything hinges on
the quantity under the square root:
If \(b^2-4ac>0\), the square root is a positive real number, so the two roots \(m_1\neq m_2\) are real and distinct, giving two genuinely different exponentials \(e^{m_1x}\) and \(e^{m_2x}\) that combine additively — no oscillation, just growth or decay.
If \(b^2-4ac=0\), the square root vanishes, collapsing both roots onto the single value \(m=-b/(2a)\); reduction of order is then needed to find the second solution, which turns out to be \(xe^{mx}\) rather than a second independent exponential.
If \(b^2-4ac<0\), the square root is the square root of a negative number, forcing the two roots to be a complex-conjugate pair \(\alpha\pm i\beta\); Euler's formula converts these into the oscillatory pair \(e^{\alpha x}\cos(\beta x)\) and \(e^{\alpha x}\sin(\beta x)\).
For \(y''+2y'+5y=0\): \(a=1\), \(b=2\), \(c=5\), so
\[
b^2-4ac = 4-20 = -16 < 0,
\]
which puts us in the third case: the solution is oscillatory. Without solving further, we
can also read off the "envelope" behavior directly from \(\alpha=-b/(2a)=-1\): since the
oscillation is multiplied by \(e^{\alpha x}=e^{-x}\), and \(\alpha<0\), the oscillation's
amplitude decays toward zero as \(x\to\infty\) (a damped oscillation),
rather than growing or staying constant.
Since \(g(x)=2e^{3x}\) and \(e^{3x}\) does not already appear in \(y_c\) (the homogeneous exponentials are \(e^{4x}\) and \(e^{-4x}\), not \(e^{3x}\)), guess
The naive guess for \(g(x)=6e^{2x}\) would be \(y_p=Ae^{2x}\), but \(e^{2x}\) already appears
in \(y_c\) — and worse, so does \(xe^{2x}\), since \(m=2\) is a repeated root. Per
the remark in the lecture notes, we must multiply our guess by \(x\) enough times to clear
every duplication, so here we need \(x^2\) rather than just \(x\):
\[
y_p = Ax^2e^{2x}.
\]
Collecting like powers of \(x\) inside the brackets: the \(x^2\) terms are \(4-8+4=0\), the \(x\) terms are \(8-8=0\), leaving only the constant \(2\):
Use variation of parameters to find the general solution to
\[
y''+y=\sec(x).
\]
Solution:
Undetermined coefficients does not apply here, since \(\sec(x)\) is not a polynomial,
exponential, sine, or cosine (its own derivatives never cycle back through a finite family
of functions the way \(\sin\), \(\cos\), or \(e^{mx}\) do), so we need the more general
method of variation of parameters.
Step 1(Find \(y_c\) and identify \(y_1,y_2,f(x)\)).
Explain why variation of parameters can be applied to \(y''+y=\sec(x)\) but undetermined
coefficients cannot. What specific feature of \(\sec(x)\) rules out undetermined coefficients,
and why does that same feature cause no trouble for variation of parameters?
Solution:
Undetermined coefficients works by guessing a form for \(y_p\) built out of the
same "family" of functions as \(g(x)\) — polynomials, exponentials, and sines/cosines all
have the special property that differentiating them (possibly several times) only ever
produces more functions from that same finite family, so a guess with a handful of unknown
coefficients can always be made to match.
The function \(\sec(x)\) does not have this property: its derivatives introduce new,
different combinations of \(\sec x\) and \(\tan x\) at every step (\(\sec x\), then
\(\sec x\tan x\), then \(\sec x\tan^2x+\sec^3x\), and so on) rather than cycling back through
a small closed family the way \(\sin x\) and \(\cos x\) do. There is no finite list of terms
we could write down for \(y_p\) with undetermined coefficients that would be guaranteed to
reproduce \(\sec(x)\) after substitution — the method simply has no entry point here.
Variation of parameters sidesteps this issue entirely, because it never tries to guess the
form of \(y_p\) at all. Instead it only needs a fundamental set \(y_1,y_2\) of the
homogeneous equation (which we always have from Section 4.3 for constant coefficients) and
then directly integrates expressions built from \(y_1\), \(y_2\), and \(f(x)\). This
procedure works for any continuous \(f(x)\) — the only thing that can go wrong is
that the resulting integrals \(\int u_1'\,dx\) and \(\int u_2'\,dx\) might not have a
closed-form antiderivative, but for \(f(x)=\sec(x)\) they do (as the previous problem
shows), so the method goes through without difficulty.