CalcPath
ProgressProblem setsFeedback
← Question sheet

Calculus · Solutions

Differential Equations

12 questions · about 102 minutes

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 3205​ or e8/3. 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. 1.Computation

    Every verification below must substitute into the original equation, not into a rearranged one.

    1. (a)State the order of each equation and whether it is linear, with a one-line reason each: x2y′′+exy=1,yy′′=1,y′′′+(sinx)y=y′.
    2. (b)Show that every member of the family y=Cex2−21​ is a solution of y′=x(2y+1), and find the member through the point (0,1).
    3. (c)Find every value of r for which y=erx is a solution of y′′−2y′−8y=0, and write down a two-parameter family of solutions, saying what justifies combining them.

    Solution

    (a) Order and linearity. The first equation, x2y′′+exy=1, is second order (the highest derivative is y′′) and linear: y and y′′ appear to the first power, each multiplied by a function of x alone, and the right side 1 involves no y. The second, yy′′=1, is second order and nonlinear, because y multiplies y′′. The third, y′′′+(sinx)y=y′, is third order and linear: rearranged as y′′′−y′+(sinx)y=0, every term is a derivative of y times a function of x. The sin acts on x, not on y — linearity is a statement about how y enters, not about x.

    (b) Verify the family, then pick the member. For y=Cex2−21​ the chain rule gives y′=2Cxex2. On the other side, 2y+1=2Cex2, so

    x(2y+1)=2Cxex2=y′

    for every x and every C: the whole family solves the equation. Through (0,1) we need y(0)=C−21​=1, so C=23​ and

    y=23​ex2−21​.

    Check: y(0)=23​−21​=1, and y′=3xex2 while x(2y+1)=x⋅3ex2.

    (c) Exponential trial solution. With y=erx, y′=rerx, y′′=r2erx:

    y′′−2y′−8y=erx(r2−2r−8)=erx(r−4)(r+2).

    Since erx is never zero this vanishes exactly when r=4 or r=−2. So e4x and e−2x are solutions, and because the equation is linear and homogeneous any combination y=c1​e4x+c2​e−2x is a solution too (superposition). Check on e−2x: 4e−2x−2(−2e−2x)−8e−2x=(4+4−8)e−2x=0.

  2. 2.Computation

    Consider the equation dxdy​=2y​.

    1. (a)Show that y=0 and y={0,x2,​x≤0,x>0​ are both solutions on the whole real line with y(0)=0. Check differentiability at x=0 explicitly.
    2. (b)State the existence–uniqueness theorem for first-order initial-value problems. Identify which hypothesis fails at (0,0), and explain why the theorem does apply at (0,1).
    3. (c)Solve the equation with y(0)=1 by separating variables, then determine the largest interval containing 0 on which your formula actually satisfies the equation, and say what went wrong outside it.

    Solution

    (a) Two solutions through the origin. The constant y=0 gives y′=0 and 20​=0, so it is a solution everywhere, with y(0)=0.

    For the piecewise function: on x<0 it is 0, and both sides of the equation are 0. On x>0 it is x2, so y′=2x while 2y​=2x2​=2∣x∣=2x because x>0. At x=0 the derivative must be checked from the definition: the left-hand difference quotient is 0, and the right-hand one is hh2−0​=h→0. So y′(0)=0, which equals 2y(0)​=0. The function is differentiable everywhere and satisfies the equation at every x, with y(0)=0. Two different solutions pass through the same point.

    (b) Which hypothesis fails. The existence–uniqueness theorem says: if f(x,y) and ∂f/∂y are continuous on some open rectangle containing (x0​,y0​), then y′=f(x,y), y(x0​)=y0​ has a solution on some open interval about x0​, and only one. Here f(x,y)=2y​ and

    ∂y∂f​=y​1​,

    which is unbounded as y→0+ and undefined for y≤0. No open rectangle around (0,0) avoids the line y=0 (indeed f 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 (0,1) the rectangle ∣x∣<1, 21​<y<23​ stays inside y>0, where both f and 1/y​ are continuous, so the theorem promises exactly one solution near x=0 through (0,1).

    (c) Separate, then be honest about the square root. For y>0 divide by y​:

    y​dy​=2dx⟹2y​=2x+C.

    The condition y(0)=1 gives C=2, so y​=x+1 and y=(x+1)2. Check: y′=2(x+1) and 2y​=2∣x+1∣. These agree exactly when x+1≥0. So the formula is a solution on (−1,∞) and not for x<−1: there y′<0 while the right side is positive. What went wrong is the squaring of y​=x+1, which silently discards the requirement x+1≥0 that the square root carried. The largest interval containing 0 on which the formula solves the equation is (−1,∞) (it also works at the endpoint x=−1 itself).

    At x=−1 the solution reaches y=0, the line where uniqueness breaks down, and there it may be continued to the left as the equilibrium y=0: the function equal to 0 for x≤−1 and to (x+1)2 for x>−1 solves the equation on the whole line, by the same check as in (a).

  3. 3.Sketch

    Let y′=2x−y. A sketch with no reasoning beside it earns nothing here: every feature you draw must be justified from the equation.

    1. (a)Compute the slope at the nine points with x,y∈{−1,0,1} and describe the isoclines. Where are the segments horizontal?
    2. (b)Find the one solution that is a straight line, and verify it by substitution.
    3. (c)Let y be any solution and put u(x)=y(x)−(2x−2). Show that u′=−u, and deduce how every solution behaves relative to the line as x→∞ and as x→−∞.
    4. (d)Sketch the direction field on the window −2≤x≤2, −4≤y≤4 together with the solutions through (0,0) and through (0,−3). 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 2x−y. Reading each row at x=−1, x=0, x=1 in turn:
    along y=1 the slopes are −3, −1, 1;
    along y=0 they are −2, 0, 2;
    along y=−1 they are −1, 1, 3.

    The isoclines are the curves 2x−y=c, that is the parallel lines y=2x−c, all of slope 2. Segments are horizontal on the isocline c=0, the line y=2x; above that line (y>2x) every slope is negative, below it every slope is positive.

    (b) The straight-line solution. A line y=mx+b is a solution only if the field's slope along it equals m everywhere. On the isocline c=2, the line y=2x−2, every segment has slope 2, which is the slope of the line itself. Substituting: y′=2 and 2x−y=2x−(2x−2)=2, so y=2x−2 is a solution. No other line works, since the field's slope along y=mx+b is (2−m)x−b, constant only when m=2, and then equal to m=2 only when b=−2.

    (c) The deviation from the line decays. If y is any solution and u=y−(2x−2), then

    u′=y′−2=(2x−y)−2=−(y−2x+2)=−u.

    By the natural-growth theorem (with k=−1) u=u0​e−x, where u0​=u(0). As x→∞, u→0: every solution approaches the line y=2x−2, from above if u0​>0 and from below if u0​<0, and never crosses it, since u never changes sign. As x→−∞, ∣u∣→∞: 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 y=2x), the solution line y=2x−2 through (0,−2) and (1,0), and two curves.

    Through (0,0). Here u0​=0−(−2)=2>0, so the curve lies above the line for all x and settles onto it from above as x increases (it passes about (2,2.3) against the line's (2,2)). At the origin the slope is 0; just to the left the point is above y=2x, so the curve is falling, and just to the right it is below y=2x, so it is rising: the origin is a local minimum, and it is the only place this curve meets y=2x, because y−2x=−2+2e−x vanishes only at x=0. Going left the curve climbs steeply (u=2e−x grows), passing about (−1,1.4) and leaving the window at the top.

    Through (0,−3). Here u0​=−3+2=−1<0: the curve stays below the line, so it is also below y=2x and its slope is always positive (it is 3 at the start). It rises toward the line from below without ever reaching it (about (1,−0.4) and (2,1.9) against the line's (1,0) and (2,2)), and to the left it plunges downward, since u=−e−x→−∞, leaving the window at the bottom near x=−1.

    Mark the horizontal tangent at the origin, the dashed line y=2x of horizontal segments, and the solution line y=2x−2 drawn solid.

  4. 4.Computation

    Consider the initial-value problem y′=2xy, y(0)=1. Keep every number exact — as a fraction or a terminating decimal — until the final comparison.

    1. (a)Use Euler's method with h=0.5 to estimate y(1). Show the table of xn​, yn​ and the slope used at each step.
    2. (b)Repeat with h=0.25.
    3. (c)Solve the problem exactly and compute the exact value of y(1). 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 0.5. The slope function is f(x,y)=2xy, and each step uses the slope at the current point: yn+1​=yn​+0.5⋅2xn​yn​.
    Step 0: at (x0​,y0​)=(0,1) the slope is 2⋅0⋅1=0, so y1​=1+0.5⋅0=1.
    Step 1: at (x1​,y1​)=(0.5,1) the slope is 2⋅0.5⋅1=1, so y2​=1+0.5⋅1=1.5.

    So y(1)≈1.5. Note the first step moves nowhere: at x=0 the field is flat whatever y is.

    (b) Four steps of size 0.25. Now yn+1​=yn​+0.25⋅2xn​yn​.
    Step 0: at (0,1) the slope is 0, so y1​=1.
    Step 1: at (0.25,1) the slope is 0.5, so y2​=1+0.125=1.125.
    Step 2: at (0.5,1.125) the slope is 1.125, so y3​=1.125+0.28125=1.40625.
    Step 3: at (0.75,1.40625) the slope is 2.109375, so y4​=1.40625+0.52734375=1.93359375.

    So y(1)≈1.93359375=256495​.

    (c) The exact solution and the direction of the error. The equation is separable: for y=0, ydy​=2xdx, so ln∣y∣=x2+C and y=Aex2 with A any constant (the equilibrium y=0 is A=0). The condition y(0)=1 gives A=1:

    y=ex2,y(1)=e≈2.718.

    Check: y′=2xex2=2xy and y(0)=1. The errors are e−1.5≈1.22 and e−1.934≈0.78.

    Both estimates are too small, and this could have been predicted. Differentiating the equation, y′′=2y+2xy′=2y+4x2y=(2+4x2)y>0 for y>0: 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 yn​ that is already too small, so the undershoot compounds. Halving h reduces the error (here by the factor 0.78/1.22≈0.64). The rule that the accumulated error is proportional to h — so that halving h halves the error — is a statement about small h; 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. 5.Critique

    A student is asked to find all solutions of dxdy​=4x(2−y) and, in particular, the solution with y(0)=5. The submitted work reads:

    Step 1. Separate: 2−ydy​=4xdx.

    Step 2. Integrate: −ln(2−y)=2x2+C, so 2−y=e−2x2−C=Ae−2x2 with A=e−C>0.

    Step 3. Hence y=2−Ae−2x2 with A>0: every solution lies below the line y=2.

    Step 4. The condition y(0)=5 gives 5=2−A, so A=−3<0, which is impossible. The initial-value problem has no solution.

    Step 5. Also, y=2 is not a solution, since no positive A produces it.

    Steps 3, 4 and 5 are all false.

    1. (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.
    2. (b)Give the correct general solution, including any solution that separation discards, then the solution with y(0)=5, 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

    ∫2−ydy​=−ln∣2−y∣+C,

    with an absolute value. Writing ln(2−y) instead silently assumes 2−y>0, that is y<2, and everything downstream inherits that assumption. Step 3's "every solution lies below y=2" is not a discovery but the assumption read back. Step 4 fails precisely because (0,5) lies above y=2, outside the region the student had unknowingly restricted to. Step 5 is a separate oversight of the same kind: Step 1 divides by 2−y, which is illegal where 2−y=0, so the constant y=2 has to be tested on its own — and it is a solution, since both sides are then 0.

    The existence–uniqueness theorem should have stopped Step 4 on sight. Here f(x,y)=4x(2−y) and ∂f/∂y=−4x are polynomials, continuous on the whole plane, so through every point, including (0,5), there passes a solution, and only one. (The equation is also linear, y′+4xy=8x, so that solution exists on all of R.) A method that concludes "no solution" has contradicted a theorem; the method, not the theorem, is wrong.

    (b) The repaired argument. First the equilibrium: y=2 makes both sides zero and is a solution. For y=2, separating and integrating correctly,

    −ln∣2−y∣=2x2+C⟹∣2−y∣=e−Ce−2x2⟹2−y=±e−Ce−2x2.

    Write A=±e−C, which is any nonzero constant; allowing A=0 restores y=2. So the complete general solution is

    y=2−Ae−2x2,A∈R.

    Solutions with A<0 lie above the line y=2 and are just as legitimate as those below it. For y(0)=5: 5=2−A, so A=−3 and

    y=2+3e−2x2.

    Check: y′=−12xe−2x2, while 4x(2−y)=4x⋅(−3e−2x2)=−12xe−2x2; and y(0)=2+3=5. This solution decreases toward 2 as ∣x∣→∞ but never reaches it, which is uniqueness at work: it cannot cross the solution y=2.

  6. 6.Computation

    Solve xdxdy​=y−y2x3​ for x>0 with y(1)=2.

    1. (a)Show that the equation is homogeneous: write y′ as a function of v=y/x alone, or verify f(tx,ty)=f(x,y).
    2. (b)Substitute y=vx, solve the resulting separable equation, and give y explicitly.
    3. (c)Check your answer by substitution, and state the largest interval containing x=1 on which the solution is valid, explaining what goes wrong at each end.

    Solution

    (a) It depends only on y/x. Dividing by x,

    dxdy​=xy​−y2x2​=v−v21​,v=xy​,

    so the right side is F(v)=v−v−2, a function of the ratio alone: the equation is homogeneous. Equivalently, with f(x,y)=y/x−x2/y2, replacing (x,y) by (tx,ty) gives txty​−t2y2t2x2​=f(x,y). (It is not separable as it stands, since y/x−x2/y2 is a difference, not a product.)

    (b) Substitute y=vx. Then y′=v+xv′ by the product rule, and the equation becomes

    v+xv′=v−v21​⟹xdxdv​=−v21​⟹v2dv=−xdx​.

    Integrating (with x>0, so ln∣x∣=lnx): 3v3​=−lnx+C, that is v3=C1​−3lnx with C1​=3C. Nothing was divided by a function of v here, so no solution was lost. Replacing v=y/x and multiplying by x3,

    y3=x3(C1​−3lnx).

    The condition y(1)=2 gives 8=C1​, so

    y=x(8−3lnx)1/3.

    (c) Check, and the interval of validity. Write y=xu with u=(8−3lnx)1/3, so u3=8−3lnx. Differentiating that relation, 3u2u′=−3/x, hence u′=−xu21​. Then

    y′=u+xu′=u−u21​,whilexy​−y2x2​=u−x2u2x2​=u−u21​.

    They agree, and y(1)=1⋅81/3=2.

    The cube root is defined for every real number, so the formula makes sense for all x>0 — but it stops being a solution where y=0, since the original equation has y2 in a denominator. That happens when 8−3lnx=0, i.e. at x=e8/3, and there u′=−1/(xu2) blows up: the curve arrives at the x-axis with a vertical tangent. Going the other way, as x→0+ the formula tends to 0 but x=0 itself is excluded (we divided by x). So the largest interval containing x=1 on which the solution is valid is

    0<x<e8/3.

    The equation's own singularities, at x=0 and at y=0, are exactly what ends the interval at each side.

  7. 7.Proof

    Throughout, P and Q are continuous on an open interval I, and μ(x)=e∫P(x)dx is an integrating factor for y′+P(x)y=Q(x). Do not quote the solution formula; argue from the product rule, in the manner of the proof that every solution of y′=ky is Cekt.

    1. (a)Let y1​ and y2​ be any two solutions on I and put w=y1​−y2​. Prove that w′+P(x)w=0, and then, by considering u=μw, that w=C/μ(x) for some constant C.
    2. (b)Deduce that two solutions which agree at a single point x0​∈I agree on all of I, and that if yp​ is any one solution then the general solution is exactly yp​+C/μ(x).
    3. (c)Verify that y=sinx solves y′+(cotx)y=2cosx on (0,π), and use (b) — not the integrating-factor recipe — to write down the general solution on (0,π).

    Solution

    (a) The difference of two solutions. By linearity of differentiation,

    w′+Pw=(y1′​+Py1​)−(y2′​+Py2​)=Q−Q=0

    on I. Next, μ′=Pμ by the chain rule, since the derivative of e∫P is e∫P times the derivative of the exponent. Put u=μw. By the product rule,

    u′=μ′w+μw′=Pμw+μw′=μ(w′+Pw)=0

    on I. A function whose derivative vanishes on an interval is constant there (a consequence of the Mean Value Theorem), so u=C for some constant C, and since μ=e∫P>0 is never zero, w=C/μ(x). ■

    (b) Uniqueness, and the shape of the general solution. If y1​(x0​)=y2​(x0​) then w(x0​)=0, so C=μ(x0​)w(x0​)=0 and w≡0 on I: 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 I, not merely near x0​.

    For the general solution, let yp​ be any one solution. By (a), every solution y satisfies y−yp​=C/μ for some C, so every solution has the form yp​+C/μ. Conversely each such function is a solution: since (1/μ)′=−μ′/μ2=−P/μ,

    (yp​+μC​)′+P(yp​+μC​)=(yp′​+Pyp​)+C(−μP​+μP​)=Q.

    So the solutions are exactly the one-parameter family y=yp​+C/μ(x). ■

    (c) One known solution is enough. For y=sinx: y′=cosx and (cotx)sinx=cosx, so y′+(cotx)y=2cosx on (0,π), as required. Here P=cotx, and on (0,π) we have sinx>0, so ∫cotxdx=lnsinx and μ=sinx, 1/μ=cscx. By (b) the general solution is

    y=sinx+Ccscx,0<x<π.

    Check of the new term: (Ccscx)′=−Ccscxcotx, and (cotx)(Ccscx) cancels it exactly, so Ccscx contributes 0 to the left side. No integral of μQ was needed. Notice where the family breaks down: cscx blows up at 0 and π, precisely the points where P=cotx stops being continuous.

  8. 8.Computation

    A tank of capacity 300 L initially holds 100 L of brine in which 5 kg of salt is dissolved. Brine containing 0.25 kg of salt per litre flows in at 4 L/min, the tank is kept well mixed, and the mixture drains at 2 L/min.

    1. (a)Write the differential equation for the amount y(t) of salt in the tank, with its initial condition, and identify it as linear. State when the tank becomes full.
    2. (b)Solve for y(t), and find the amount of salt in the tank at the moment it becomes full, as an exact number.
    3. (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.
    4. (d)From the moment the tank is full, the excess spills over the rim so that the volume stays at 300 L while the drain keeps running. Write the new equation for y and find limt→∞​y(t), with justification. You need not solve the new equation.

    Solution

    (a) The balance sheet. The volume is V(t)=100+(4−2)t=100+2t litres, so the tank is full when 100+2t=300, at t=100 min. Salt enters at 0.25×4=1 kg/min. It leaves at concentration y/V times the outflow rate:

    rate out=100+2ty​⋅2=50+ty​ kg/min.

    Hence

    dtdy​=1−50+ty​,y(0)=5,

    or in standard form y′+50+t1​y=1: linear, with P(t)=50+t1​ and Q(t)=1. It is not separable, since 1−y/(50+t) does not factor into a function of t times a function of y.

    (b) Integrating factor. μ=e∫dt/(50+t)=eln(50+t)=50+t. Multiplying through,

    (50+t)y′+y=50+t,and indeeddtd​[(50+t)y]=(50+t)y′+y.

    Integrate: (50+t)y=2(50+t)2​+C, so

    y=250+t​+50+tC​.

    From y(0)=5: 25+50C​=5, so C=−1000 and

    y(t)=250+t​−50+t1000​.

    Check: y′=21​+(50+t)21000​, while 1−50+ty​=1−21​+(50+t)21000​; and y(0)=25−20=5. At the moment the tank is full,

    y(100)=2150​−1501000​=75−320​=3205​≈68.3 kg.

    (c) The concentration comparison. The concentration at t=100 is 300205/3​=900205​=18041​≈0.228 kg/L, below the inflow's 0.25 kg/L. It had to be: at every moment the tank holds a mixture of the original liquid, at 5/100=0.05 kg/L, and inflow liquid at 0.25 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 0.05 and 0.25 for all t>0. (Sanity check on the amount: 300 L of inflow brine would hold 75 kg, and 3205​<75.)

    (d) After the tank is full. For t≥100 the volume is fixed at 300 L. Liquid still enters at 4 L/min, so 4 L/min must leave — 2 through the drain and 2 over the rim — all of it at concentration y/300:

    dtdy​=1−3004y​=1−75y​.

    This is autonomous with the single equilibrium y=75, and f(y)=1−y/75 has f′=−1/75<0, so the equilibrium is stable: limt→∞​y(t)=75 kg, the amount that 300 L of the incoming brine would contain. (Explicitly, y=75−320​e−(t−100)/75 for t≥100, rising from 3205​ toward 75.)

  9. 9.Sketch

    Let dtdy​=y2(4−y2), and write f(y)=y2(4−y2).

    1. (a)Find the equilibria and draw the phase line, showing the sign of f on every interval between and beyond them.
    2. (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.
    3. (c)For the solution with y(0)=1, find every height y at which the solution curve has an inflection point, by differentiating the equation.
    4. (d)On one set of ty-axes for t≥0, sketch the equilibrium lines and the solutions with y(0)=−3, −1, 1 and 3. 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 f(y)=y2(2−y)(2+y), so the equilibria are y=−2, y=0 and y=2. The sign of f on each gap: for y<−2, y2>0, 2−y>0, 2+y<0, so f<0. For −2<y<0 all three factors are positive, so f>0. For 0<y<2 likewise f>0 (the factor y2 does not change sign through 0). For y>2, 2−y<0, so f<0. On the phase line the arrows point down below −2, up on (−2,0), up on (0,2), and down above 2.

    (b) Classification. f′(y)=8y−4y3=4y(2−y2). At y=−2: f′(−2)=−8(2−4)=16>0, unstable, and the phase line agrees (arrows leave it on both sides). At y=2: f′(2)=8(2−4)=−16<0, stable, and both neighbouring arrows point toward it. At y=0: f′(0)=0, so the derivative test is silent and only the sign of f can decide. Since f>0 on both sides of 0, solutions below 0 rise toward it while solutions above 0 rise away from it: y=0 is semistable — approached from below, abandoned from above. The double factor y2 is what makes f touch the axis without crossing it.

    (c) Inflection point of the solution through y(0)=1. This solution starts strictly between the equilibria 0 and 2, cannot cross either of them by uniqueness, and increases (since f>0 there), so it tends to 2. By the chain rule,

    y′′=f′(y)y′=f′(y)f(y)=4y(2−y2)⋅y2(4−y2).

    On 0<y<2 the factors 4y and y2(4−y2) are positive, so the sign of y′′ is the sign of 2−y2: concave up while y<2​, concave down once y>2​. The solution starts at 1<2​ and rises through 2​ exactly once, so it has exactly one inflection point, at the height y=2​, where its slope is f(2​)=2⋅2=4, the steepest it ever is.

    (d) The sketch. Draw the three horizontal equilibrium lines y=−2, y=0, y=2 for t≥0. Then:

    y(0)=3. Above 2, so decreasing (f(3)=−45, a steep start) and trapped above 2: it falls toward y=2 and flattens onto it. Concavity: for y>2, 4y>0, 2−y2<0 and y2(4−y2)<0, so y′′>0 — concave up throughout, approaching from above.

    y(0)=1. The S-curve: increasing from 1 to 2, concave up until it reaches height 2​≈1.41, then concave down, levelling off just under y=2. Mark the inflection point at y=2​.

    y(0)=−1. On (−2,0) the solution increases toward 0 and never reaches it. Here 4y<0 and 2−y2>0 (since ∣y∣<2​) while y2(4−y2)>0, so y′′<0: it rises concave down, flattening onto y=0 from below.

    y(0)=−3. Below −2, where f<0: decreasing, moving away from the unstable equilibrium and never turning back, ever more steeply as ∣y∣ grows (for large ∣y∣, f≈−y4). 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 y=0 — a curve arriving from below, none arriving from above.

  10. 10.Critique

    A student is asked to solve y′′+4y′+4y=6e−2x with y(0)=1, y′(0)=0, and submits the following.

    Step 1. The characteristic equation r2+4r+4=(r+2)2=0 gives r=−2, so yc​=c1​e−2x+c2​e−2x.

    Step 2. The forcing term 6e−2x solves the complementary equation, so by the modification rule the trial Ae−2x is multiplied by x: yp​=Axe−2x.

    Step 3. Then yp′​=A(1−2x)e−2x and yp′′​=A(4x−4)e−2x, so yp′′​+4yp′​+4yp​=Ae−2x[(4x−4)+(4−8x)+4x]=0.

    Step 4. The left side is 0 for every A, so it can never equal 6e−2x. The equation has no particular solution, and the initial-value problem has no solution.

    The algebra in Step 3 is correct.

    1. (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 0 from a trial form actually tells you.
    2. (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 c1​e−2x+c2​e−2x is just (c1​+c2​)e−2x, a one-parameter family that could never meet two initial conditions. When the characteristic root r is repeated the second independent solution is xerx, so

    yc​=(c1​+c2​x)e−2x.

    Step 2 applies the modification rule only once. Because the root is repeated, xe−2x is itself a complementary solution, so the trial Axe−2x 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 x, multiply by x again. The correct trial is yp​=Ax2e−2x.

    Step 4 is impossible by the existence–uniqueness theorem for linear equations: a constant-coefficient equation ay′′+by′+cy=G(x) with G continuous has exactly one solution for any prescribed y(x0​), y′(x0​), and it exists on the whole line. (Variation of parameters, which needs only y1​,y2​, would also have produced a particular solution.) A trial form that gives 0 is telling you the trial form was wrong, never that the equation is unsolvable.

    (b) The correct solution. With yp​=Ax2e−2x,

    yp′​=A(2x−2x2)e−2x,yp′′​=A(2−4x−4x+4x2)e−2x=A(2−8x+4x2)e−2x.

    Substituting,

    yp′′​+4yp′​+4yp​=Ae−2x[(2−8x+4x2)+(8x−8x2)+4x2]=2Ae−2x.

    Setting this equal to 6e−2x gives A=3, so yp​=3x2e−2x and the general solution is

    y=(c1​+c2​x+3x2)e−2x.

    Now the initial conditions. y(0)=c1​=1. Differentiating, y′=(c2​+6x)e−2x−2(c1​+c2​x+3x2)e−2x, so y′(0)=c2​−2c1​=c2​−2=0 and c2​=2:

    y=(1+2x+3x2)e−2x.

    Check. Write y=ve−2x with v=1+2x+3x2. Then y′=(v′−2v)e−2x and y′′=(v′′−4v′+4v)e−2x, so

    y′′+4y′+4y=[(v′′−4v′+4v)+4(v′−2v)+4v]e−2x=v′′e−2x=6e−2x.

    Also y(0)=v(0)=1 and y′(0)=v′(0)−2v(0)=2−2=0. The identity y′′+4y′+4y=v′′e−2x explains the whole episode: any v of degree at most 1 gives zero (those are the complementary solutions), which is why the particular solution had to carry an x2.

  11. 11.Proof

    Let x(t) be any solution of the mass–spring equation mx′′+cx′+kx=0 with m,k>0 and c≥0, and define its energy

    E(t)=21​m(x′(t))2+21​k(x(t))2.

    Argue directly from the equation; the characteristic roots and the explicit solution formulas are not available in this question.

    1. (a)Prove that E′(t)=−c(x′(t))2, and conclude that E is constant when c=0 and nonincreasing when c>0.
    2. (b)For c=0, prove that every solution satisfies ∣x(t)∣≤2E(0)/k​ for all t. Then compute E for x=Rcos(ωt−δ) with ω=k/m​, and show that the bound is exactly the amplitude R.
    3. (c)Prove that if x(0)=0 and x′(0)=0 then x(t)=0 for all t≥0. Deduce that two solutions with the same initial position and the same initial velocity are identical for t≥0, 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,

    E′=mx′x′′+kxx′=x′(mx′′+kx).

    The equation says mx′′+kx=−cx′, so E′=x′⋅(−cx′)=−c(x′)2. When c=0 this is identically 0, so E is constant. When c>0 it is ≤0 at every instant, so E is nonincreasing — it can only decrease, and it does so exactly while the mass is moving. ■

    (b) Conserved energy bounds the displacement. With c=0, E(t)=E(0) for all t. Since 21​m(x′)2≥0,

    21​kx(t)2≤E(t)=E(0)⟹x(t)2≤k2E(0)​⟹∣x(t)∣≤k2E(0)​​.

    Now take x=Rcos(ωt−δ) with ω=k/m​. Then x′=−Rωsin(ωt−δ) and

    E=21​mR2ω2sin2(ωt−δ)+21​kR2cos2(ωt−δ)=21​kR2(sin2+cos2)=21​kR2,

    using mω2=k. The bound becomes 2⋅21​kR2/k​=R: the energy inequality reproduces the amplitude exactly, and it is attained whenever the velocity vanishes. ■

    (c) No energy, no motion — and uniqueness. Suppose x(0)=0 and x′(0)=0. Then E(0)=0. Each term of E is a nonnegative multiple of a square, so E(t)≥0 for all t; and by (a), for either c=0 or c>0, E is nonincreasing, so E(t)≤E(0)=0 for t≥0. Hence E(t)=0 for all t≥0, and then 21​kx(t)2≤E(t)=0 forces x(t)=0 for all t≥0.

    Now let x1​ and x2​ be two solutions with x1​(0)=x2​(0) and x1′​(0)=x2′​(0). The equation is linear and homogeneous, so by superposition the difference w=x1​−x2​ is again a solution, and it satisfies w(0)=0, w′(0)=0. By what was just proved, w(t)=0 for all t≥0, that is x1​=x2​ on t≥0. ■

    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. 12.Computation

    Consider (1−x2)y′′−2xy′+2y=0 near x=0.

    1. (a)Substitute y=n=0∑∞​cn​xn and derive the recurrence relation for the coefficients.
    2. (b)Show that the recurrence forces c3​=c5​=c7​=⋯=0, so that y=x is a solution, and confirm this directly in the equation.
    3. (c)Find the solution with y(0)=1, y′(0)=0: compute c2​,c4​,c6​,c8​, guess and prove a formula for c2k​, and find the radius of convergence of the series.
    4. (d)Identify the sum in (c) in closed form, using the Maclaurin series of ln(1+x) and ln(1−x), and verify that your closed form satisfies y(0)=1 and y′(0)=0.

    Solution

    (a) The recurrence. With y=∑n≥0​cn​xn we have y′=∑n≥1​ncn​xn−1 and y′′=∑n≥2​n(n−1)cn​xn−2. Shift the index in y′′ so that its power is xn: y′′=∑n≥0​(n+2)(n+1)cn+2​xn. The other three pieces already carry xn after multiplying in:

    −x2y′′=−n≥0∑​n(n−1)cn​xn,−2xy′=−n≥0∑​2ncn​xn,2y=n≥0∑​2cn​xn,

    where the first two sums may start at n=0 because the terms they add are zero. Collecting the coefficient of xn and setting it to zero,

    (n+2)(n+1)cn+2​−[n(n−1)+2n−2]cn​=0.

    The bracket is n2+n−2=(n+2)(n−1), so after cancelling n+2,

    cn+2​=n+1n−1​cn​,n≥0.

    (b) The polynomial solution. Take n=1: c3​=20​c1​=0. Then c5​=42​c3​=0, and inductively every odd coefficient beyond c1​ vanishes. So the odd part of any solution is just c1​x, and y=x is a solution. Directly: y=x gives y′=1, y′′=0, and (1−x2)⋅0−2x⋅1+2x=0.

    (c) The even solution. The initial conditions give c0​=y(0)=1 and c1​=y′(0)=0, so all odd coefficients are 0 by (b). The even ones come from cn+2​=n+1n−1​cn​ at n=0,2,4,6:

    c2​=1−1​c0​=−1,c4​=31​c2​=−31​,c6​=53​c4​=−51​,c8​=75​c6​=−71​.

    Guess c2k​=−2k−11​ for k≥1. Induction: it holds for k=1, and if c2k​=−2k−11​ then, with n=2k,

    c2k+2​=2k+12k−1​⋅(−2k−11​)=−2k+11​,

    which is the formula at k+1. Hence

    y=1−k=1∑∞​2k−1x2k​=1−x2−3x4​−5x6​−7x8​−⋯

    Radius of convergence: with ak​=x2k/(2k−1), the ratio test gives ∣ak+1​/ak​∣=2k+12k−1​x2→x2, so the series converges for ∣x∣<1 and diverges for ∣x∣>1: the radius is 1. (At x=±1 the terms are 1/(2k−1), and that series diverges by comparison with the harmonic series.) This is no accident: the leading coefficient 1−x2 vanishes at x=±1, and a series solution about 0 cannot see past the nearest such point.

    (d) The closed form. From ln(1+x)=x−2x2​+3x3​−⋯ and ln(1−x)=−x−2x2​−3x3​−⋯, valid for ∣x∣<1, subtracting cancels the even powers and doubles the odd ones:

    ln1−x1+x​=2(x+3x3​+5x5​+⋯)=2k=1∑∞​2k−1x2k−1​.

    Therefore ∑k≥1​2k−1x2k​=x∑k≥1​2k−1x2k−1​=2x​ln1−x1+x​, and

    y=1−2x​ln1−x1+x​,∣x∣<1.

    Check of the initial conditions: y(0)=1−0=1. Differentiating, with dxd​ln1−x1+x​=1+x1​+1−x1​=1−x22​,

    y′=−21​ln1−x1+x​−1−x2x​,y′(0)=0−0=0.

    For a full check, differentiate once more: y′′=−1−x21​−(1−x2)21+x2​. Then (1−x2)y′′=−1−1−x21+x2​, −2xy′=xln1−x1+x​+1−x22x2​, and 2y=2−xln1−x1+x​. The logarithms cancel and what remains is

    −1+2+1−x2−1−x2+2x2​=1+1−x2x2−1​=1−1=0.

    So the general solution near 0 is c0​(1−2x​ln1−x1+x​)+c1​x: one solution is a polynomial, the other is not elementary until the series is recognised — exactly the situation the power-series method exists for.

← Back to the question sheet

CalcPath·Free university mathematics

SubjectsProblem setsProgressFeedbackAbout