Calculus · Solutions
Differential Equations
Work this sheet on paper and show every step — the method is what is being tested, and the solutions are written so you can check your route rather than just your final line. Name every theorem or method you rely on (“by the existence–uniqueness theorem”, “by superposition”, “by the modification rule”) and check its hypotheses, and substitute every solution you find back into the original equation and its initial conditions. No calculator is needed anywhere; leave answers in exact form, such as or . Full worked solutions are on a separate page, and each question has its own reveal, so you can check one answer without seeing the rest.
- 1.Computation
Every verification below must substitute into the original equation, not into a rearranged one.
- (a)State the order of each equation and whether it is linear, with a one-line reason each:
- (b)Show that every member of the family is a solution of , and find the member through the point .
- (c)Find every value of for which is a solution of , and write down a two-parameter family of solutions, saying what justifies combining them.
Solution
(a) Order and linearity. The first equation, , is second order (the highest derivative is ) and linear: and appear to the first power, each multiplied by a function of alone, and the right side involves no . The second, , is second order and nonlinear, because multiplies . The third, , is third order and linear: rearranged as , every term is a derivative of times a function of . The acts on , not on — linearity is a statement about how enters, not about .
(b) Verify the family, then pick the member. For the chain rule gives . On the other side, , so
for every and every : the whole family solves the equation. Through we need , so and
Check: , and while .
(c) Exponential trial solution. With , , :
Since is never zero this vanishes exactly when or . So and are solutions, and because the equation is linear and homogeneous any combination is a solution too (superposition). Check on : .
- 2.Computation
Consider the equation .
- (a)Show that and are both solutions on the whole real line with . Check differentiability at explicitly.
- (b)State the existence–uniqueness theorem for first-order initial-value problems. Identify which hypothesis fails at , and explain why the theorem does apply at .
- (c)Solve the equation with by separating variables, then determine the largest interval containing on which your formula actually satisfies the equation, and say what went wrong outside it.
Solution
(a) Two solutions through the origin. The constant gives and , so it is a solution everywhere, with .
For the piecewise function: on it is , and both sides of the equation are . On it is , so while because . At the derivative must be checked from the definition: the left-hand difference quotient is , and the right-hand one is . So , which equals . The function is differentiable everywhere and satisfies the equation at every , with . Two different solutions pass through the same point.
(b) Which hypothesis fails. The existence–uniqueness theorem says: if and are continuous on some open rectangle containing , then , has a solution on some open interval about , and only one. Here and
which is unbounded as and undefined for . No open rectangle around avoids the line (indeed itself is not even defined below it), so the uniqueness hypothesis fails there and the theorem is silent — and (a) shows uniqueness genuinely fails. Around the rectangle , stays inside , where both and are continuous, so the theorem promises exactly one solution near through .
(c) Separate, then be honest about the square root. For divide by :
The condition gives , so and . Check: and . These agree exactly when . So the formula is a solution on and not for : there while the right side is positive. What went wrong is the squaring of , which silently discards the requirement that the square root carried. The largest interval containing on which the formula solves the equation is (it also works at the endpoint itself).
At the solution reaches , the line where uniqueness breaks down, and there it may be continued to the left as the equilibrium : the function equal to for and to for solves the equation on the whole line, by the same check as in (a).
- 3.Sketch
Let . A sketch with no reasoning beside it earns nothing here: every feature you draw must be justified from the equation.
- (a)Compute the slope at the nine points with and describe the isoclines. Where are the segments horizontal?
- (b)Find the one solution that is a straight line, and verify it by substitution.
- (c)Let be any solution and put . Show that , and deduce how every solution behaves relative to the line as and as .
- (d)Sketch the direction field on the window , together with the solutions through and through . Mark every point where either curve has a horizontal tangent and say whether it is a maximum or a minimum.
Solution
(a) Tabulate the slope . Reading each row at , , in turn:
along the slopes are ;
along they are ;
along they are .The isoclines are the curves , that is the parallel lines , all of slope . Segments are horizontal on the isocline , the line ; above that line () every slope is negative, below it every slope is positive.
(b) The straight-line solution. A line is a solution only if the field's slope along it equals everywhere. On the isocline , the line , every segment has slope , which is the slope of the line itself. Substituting: and , so is a solution. No other line works, since the field's slope along is , constant only when , and then equal to only when .
(c) The deviation from the line decays. If is any solution and , then
By the natural-growth theorem (with ) , where . As , : every solution approaches the line , from above if and from below if , and never crosses it, since never changes sign. As , : the solutions fan out away from the line in both directions.
(d) The sketch. Draw the segments from the table (and the horizontal ones along ), the solution line through and , and two curves.
Through . Here , so the curve lies above the line for all and settles onto it from above as increases (it passes about against the line's ). At the origin the slope is ; just to the left the point is above , so the curve is falling, and just to the right it is below , so it is rising: the origin is a local minimum, and it is the only place this curve meets , because vanishes only at . Going left the curve climbs steeply ( grows), passing about and leaving the window at the top.
Through . Here : the curve stays below the line, so it is also below and its slope is always positive (it is at the start). It rises toward the line from below without ever reaching it (about and against the line's and ), and to the left it plunges downward, since , leaving the window at the bottom near .
Mark the horizontal tangent at the origin, the dashed line of horizontal segments, and the solution line drawn solid.
- 4.Computation
Consider the initial-value problem , . Keep every number exact — as a fraction or a terminating decimal — until the final comparison.
- (a)Use Euler's method with to estimate . Show the table of , and the slope used at each step.
- (b)Repeat with .
- (c)Solve the problem exactly and compute the exact value of . Explain from the shape of the solution curve why both estimates err in the direction they do, and why the second is closer.
Solution
(a) Two steps of size . The slope function is , and each step uses the slope at the current point: .
Step 0: at the slope is , so .
Step 1: at the slope is , so .So . Note the first step moves nowhere: at the field is flat whatever is.
(b) Four steps of size . Now .
Step 0: at the slope is , so .
Step 1: at the slope is , so .
Step 2: at the slope is , so .
Step 3: at the slope is , so .So .
(c) The exact solution and the direction of the error. The equation is separable: for , , so and with any constant (the equilibrium is ). The condition gives :
Check: and . The errors are and .
Both estimates are too small, and this could have been predicted. Differentiating the equation, for : the solution is concave up, so each tangent line lies below the curve and every Euler step lands under the true value. Worse, the next slope is then computed from a that is already too small, so the undershoot compounds. Halving reduces the error (here by the factor ). The rule that the accumulated error is proportional to — so that halving halves the error — is a statement about small ; with steps this coarse on a solution that bends this fast it has not yet taken hold, but the trend is the right one.
- 5.Critique
A student is asked to find all solutions of and, in particular, the solution with . The submitted work reads:
Step 1. Separate: .
Step 2. Integrate: , so with .
Step 3. Hence with : every solution lies below the line .
Step 4. The condition gives , so , which is impossible. The initial-value problem has no solution.
Step 5. Also, is not a solution, since no positive produces it.
Steps 3, 4 and 5 are all false.
- (a)Find the single error from which all three false steps follow, and explain how each of Steps 3, 4 and 5 inherits it. Then say why the existence–uniqueness theorem should have made the student suspicious of Step 4 before checking any algebra.
- (b)Give the correct general solution, including any solution that separation discards, then the solution with , and check it in the original equation and the initial condition.
Solution
(a) One dropped absolute value. The error is in Step 2. The integral is
with an absolute value. Writing instead silently assumes , that is , and everything downstream inherits that assumption. Step 3's "every solution lies below " is not a discovery but the assumption read back. Step 4 fails precisely because lies above , outside the region the student had unknowingly restricted to. Step 5 is a separate oversight of the same kind: Step 1 divides by , which is illegal where , so the constant has to be tested on its own — and it is a solution, since both sides are then .
The existence–uniqueness theorem should have stopped Step 4 on sight. Here and are polynomials, continuous on the whole plane, so through every point, including , there passes a solution, and only one. (The equation is also linear, , so that solution exists on all of .) A method that concludes "no solution" has contradicted a theorem; the method, not the theorem, is wrong.
(b) The repaired argument. First the equilibrium: makes both sides zero and is a solution. For , separating and integrating correctly,
Write , which is any nonzero constant; allowing restores . So the complete general solution is
Solutions with lie above the line and are just as legitimate as those below it. For : , so and
Check: , while ; and . This solution decreases toward as but never reaches it, which is uniqueness at work: it cannot cross the solution .
- 6.Computation
Solve for with .
- (a)Show that the equation is homogeneous: write as a function of alone, or verify .
- (b)Substitute , solve the resulting separable equation, and give explicitly.
- (c)Check your answer by substitution, and state the largest interval containing on which the solution is valid, explaining what goes wrong at each end.
Solution
(a) It depends only on . Dividing by ,
so the right side is , a function of the ratio alone: the equation is homogeneous. Equivalently, with , replacing by gives . (It is not separable as it stands, since is a difference, not a product.)
(b) Substitute . Then by the product rule, and the equation becomes
Integrating (with , so ): , that is with . Nothing was divided by a function of here, so no solution was lost. Replacing and multiplying by ,
The condition gives , so
(c) Check, and the interval of validity. Write with , so . Differentiating that relation, , hence . Then
They agree, and .
The cube root is defined for every real number, so the formula makes sense for all — but it stops being a solution where , since the original equation has in a denominator. That happens when , i.e. at , and there blows up: the curve arrives at the -axis with a vertical tangent. Going the other way, as the formula tends to but itself is excluded (we divided by ). So the largest interval containing on which the solution is valid is
The equation's own singularities, at and at , are exactly what ends the interval at each side.
- 7.Proof
Throughout, and are continuous on an open interval , and is an integrating factor for . Do not quote the solution formula; argue from the product rule, in the manner of the proof that every solution of is .
- (a)Let and be any two solutions on and put . Prove that , and then, by considering , that for some constant .
- (b)Deduce that two solutions which agree at a single point agree on all of , and that if is any one solution then the general solution is exactly .
- (c)Verify that solves on , and use (b) — not the integrating-factor recipe — to write down the general solution on .
Solution
(a) The difference of two solutions. By linearity of differentiation,
on . Next, by the chain rule, since the derivative of is times the derivative of the exponent. Put . By the product rule,
on . A function whose derivative vanishes on an interval is constant there (a consequence of the Mean Value Theorem), so for some constant , and since is never zero, .
(b) Uniqueness, and the shape of the general solution. If then , so and on : the two solutions coincide on the whole interval. This is the uniqueness half of the theorem for linear equations, and note that it holds on all of , not merely near .
For the general solution, let be any one solution. By (a), every solution satisfies for some , so every solution has the form . Conversely each such function is a solution: since ,
So the solutions are exactly the one-parameter family .
(c) One known solution is enough. For : and , so on , as required. Here , and on we have , so and , . By (b) the general solution is
Check of the new term: , and cancels it exactly, so contributes to the left side. No integral of was needed. Notice where the family breaks down: blows up at and , precisely the points where stops being continuous.
- 8.Computation
A tank of capacity L initially holds L of brine in which kg of salt is dissolved. Brine containing kg of salt per litre flows in at L/min, the tank is kept well mixed, and the mixture drains at L/min.
- (a)Write the differential equation for the amount of salt in the tank, with its initial condition, and identify it as linear. State when the tank becomes full.
- (b)Solve for , and find the amount of salt in the tank at the moment it becomes full, as an exact number.
- (c)Compare the concentration in the tank at that moment with the inflow concentration, and explain why the comparison had to come out the way it did.
- (d)From the moment the tank is full, the excess spills over the rim so that the volume stays at L while the drain keeps running. Write the new equation for and find , with justification. You need not solve the new equation.
Solution
(a) The balance sheet. The volume is litres, so the tank is full when , at min. Salt enters at kg/min. It leaves at concentration times the outflow rate:
Hence
or in standard form : linear, with and . It is not separable, since does not factor into a function of times a function of .
(b) Integrating factor. . Multiplying through,
Integrate: , so
From : , so and
Check: , while ; and . At the moment the tank is full,
(c) The concentration comparison. The concentration at is kg/L, below the inflow's kg/L. It had to be: at every moment the tank holds a mixture of the original liquid, at kg/L, and inflow liquid at kg/L, and draining removes mixture without changing its concentration. A blend of two concentrations lies strictly between them, so the tank's concentration stays strictly between and for all . (Sanity check on the amount: L of inflow brine would hold kg, and .)
(d) After the tank is full. For the volume is fixed at L. Liquid still enters at L/min, so L/min must leave — through the drain and over the rim — all of it at concentration :
This is autonomous with the single equilibrium , and has , so the equilibrium is stable: kg, the amount that L of the incoming brine would contain. (Explicitly, for , rising from toward .)
- 9.Sketch
Let , and write .
- (a)Find the equilibria and draw the phase line, showing the sign of on every interval between and beyond them.
- (b)Classify each equilibrium as stable, unstable or semistable. Use the derivative test wherever it decides; where it does not, say so and state what you used instead.
- (c)For the solution with , find every height at which the solution curve has an inflection point, by differentiating the equation.
- (d)On one set of -axes for , sketch the equilibrium lines and the solutions with , , and . State the long-term behaviour of each, justify its monotonicity and concavity, and mark the inflection point from (c).
Solution
(a) Equilibria and the phase line. Factor , so the equilibria are , and . The sign of on each gap: for , , , , so . For all three factors are positive, so . For likewise (the factor does not change sign through ). For , , so . On the phase line the arrows point down below , up on , up on , and down above .
(b) Classification. . At : , unstable, and the phase line agrees (arrows leave it on both sides). At : , stable, and both neighbouring arrows point toward it. At : , so the derivative test is silent and only the sign of can decide. Since on both sides of , solutions below rise toward it while solutions above rise away from it: is semistable — approached from below, abandoned from above. The double factor is what makes touch the axis without crossing it.
(c) Inflection point of the solution through . This solution starts strictly between the equilibria and , cannot cross either of them by uniqueness, and increases (since there), so it tends to . By the chain rule,
On the factors and are positive, so the sign of is the sign of : concave up while , concave down once . The solution starts at and rises through exactly once, so it has exactly one inflection point, at the height , where its slope is , the steepest it ever is.
(d) The sketch. Draw the three horizontal equilibrium lines , , for . Then:
. Above , so decreasing (, a steep start) and trapped above : it falls toward and flattens onto it. Concavity: for , , and , so — concave up throughout, approaching from above.
. The S-curve: increasing from to , concave up until it reaches height , then concave down, levelling off just under . Mark the inflection point at .
. On the solution increases toward and never reaches it. Here and (since ) while , so : it rises concave down, flattening onto from below.
. Below , where : decreasing, moving away from the unstable equilibrium and never turning back, ever more steeply as grows (for large , ). It leaves the picture through the bottom. (In fact it reaches in finite time, but the sketch only needs "decreasing without bound".)
The picture should show curves that never cross the equilibrium lines, arrows on the right edge consistent with the phase line, and the two behaviours at — a curve arriving from below, none arriving from above.
- 10.Critique
A student is asked to solve with , , and submits the following.
Step 1. The characteristic equation gives , so .
Step 2. The forcing term solves the complementary equation, so by the modification rule the trial is multiplied by : .
Step 3. Then and , so .
Step 4. The left side is for every , so it can never equal . The equation has no particular solution, and the initial-value problem has no solution.
The algebra in Step 3 is correct.
- (a)Identify the two errors, in Steps 1 and 2, and state precisely what each should have been. Then name the theorem that makes the conclusion of Step 4 impossible, and say what a result of from a trial form actually tells you.
- (b)Solve the initial-value problem correctly, and check the equation and both initial conditions.
Solution
(a) Two errors and a theorem. Step 1 mishandles the repeated root. The sum is just , a one-parameter family that could never meet two initial conditions. When the characteristic root is repeated the second independent solution is , so
Step 2 applies the modification rule only once. Because the root is repeated, is itself a complementary solution, so the trial is annihilated by the left side — which is exactly what Step 3 discovered. The rule says: if the trial form still solves the complementary equation after multiplying by , multiply by again. The correct trial is .
Step 4 is impossible by the existence–uniqueness theorem for linear equations: a constant-coefficient equation with continuous has exactly one solution for any prescribed , , and it exists on the whole line. (Variation of parameters, which needs only , would also have produced a particular solution.) A trial form that gives is telling you the trial form was wrong, never that the equation is unsolvable.
(b) The correct solution. With ,
Substituting,
Setting this equal to gives , so and the general solution is
Now the initial conditions. . Differentiating, , so and :
Check. Write with . Then and , so
Also and . The identity explains the whole episode: any of degree at most gives zero (those are the complementary solutions), which is why the particular solution had to carry an .
- 11.Proof
Let be any solution of the mass–spring equation with and , and define its energy
Argue directly from the equation; the characteristic roots and the explicit solution formulas are not available in this question.
- (a)Prove that , and conclude that is constant when and nonincreasing when .
- (b)For , prove that every solution satisfies for all . Then compute for with , and show that the bound is exactly the amplitude .
- (c)Prove that if and then for all . Deduce that two solutions with the same initial position and the same initial velocity are identical for , naming the property of the equation that lets you pass from the first statement to the second.
Solution
(a) Energy is dissipated by damping alone. By the chain rule,
The equation says , so . When this is identically , so is constant. When it is at every instant, so is nonincreasing — it can only decrease, and it does so exactly while the mass is moving.
(b) Conserved energy bounds the displacement. With , for all . Since ,
Now take with . Then and
using . The bound becomes : the energy inequality reproduces the amplitude exactly, and it is attained whenever the velocity vanishes.
(c) No energy, no motion — and uniqueness. Suppose and . Then . Each term of is a nonnegative multiple of a square, so for all ; and by (a), for either or , is nonincreasing, so for . Hence for all , and then forces for all .
Now let and be two solutions with and . The equation is linear and homogeneous, so by superposition the difference is again a solution, and it satisfies , . By what was just proved, for all , that is on .
This is the uniqueness half of the existence–uniqueness theorem for this equation, obtained without ever writing down a solution: a mass at rest at equilibrium has no energy, energy can only leave, and without energy it cannot move. Superposition is what turns that one-solution statement into a statement about any two.
- 12.Computation
Consider near .
- (a)Substitute and derive the recurrence relation for the coefficients.
- (b)Show that the recurrence forces , so that is a solution, and confirm this directly in the equation.
- (c)Find the solution with , : compute , guess and prove a formula for , and find the radius of convergence of the series.
- (d)Identify the sum in (c) in closed form, using the Maclaurin series of and , and verify that your closed form satisfies and .
Solution
(a) The recurrence. With we have and . Shift the index in so that its power is : . The other three pieces already carry after multiplying in:
where the first two sums may start at because the terms they add are zero. Collecting the coefficient of and setting it to zero,
The bracket is , so after cancelling ,
(b) The polynomial solution. Take : . Then , and inductively every odd coefficient beyond vanishes. So the odd part of any solution is just , and is a solution. Directly: gives , , and .
(c) The even solution. The initial conditions give and , so all odd coefficients are by (b). The even ones come from at :
Guess for . Induction: it holds for , and if then, with ,
which is the formula at . Hence
Radius of convergence: with , the ratio test gives , so the series converges for and diverges for : the radius is . (At the terms are , and that series diverges by comparison with the harmonic series.) This is no accident: the leading coefficient vanishes at , and a series solution about cannot see past the nearest such point.
(d) The closed form. From and , valid for , subtracting cancels the even powers and doubles the odd ones:
Therefore , and
Check of the initial conditions: . Differentiating, with ,
For a full check, differentiate once more: . Then , , and . The logarithms cancel and what remains is
So the general solution near is : one solution is a polynomial, the other is not elementary until the series is recognised — exactly the situation the power-series method exists for.