Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Detailed solutions

Compare reasoning, not handwriting

Use these solutions after an honest attempt. Put your work beside the solution and locate the first line where the decisions differ. A different valid method is not an error; explain why it works and compare its cost.

Chapter 1

Solution 1.1

Rain contributes +12+12 m³/hour. Leakage contributes −0.04W-0.04W m³/hour because 0.040.04 has units 1/hour and WW has units m³. Therefore

W′=12−0.04W.W'=12-0.04W.

Both right-side terms and W′W' have units m³/hour. The zero-rate volume is W=300W=300 m³, which also gives a behavioral check.

Solution 1.2

For y=2+3e−ty=2+3e^{-t}, differentiate: y′=−3e−ty'=-3e^{-t}. Substitute into the right side: 2−y=2−(2+3e−t)=−3e−t=y′2-y=2-(2+3e^{-t})=-3e^{-t}=y'. The condition is y(0)=2+3=5y(0)=2+3=5. The curve decreases toward the stable level 2, matching the sign of 2−y2-y above 2.

Solution 1.3

The rate factors as 0.4N(1−N/50)0.4N(1-N/50). At N=20N=20, both factors are positive, so the state rises. At N=50N=50, the second factor is zero, so 50 is an equilibrium. At N=80N=80, the second factor is negative while NN is positive, so the state falls. The equation points positive populations toward 50.

Solution 1.4

Salt enters at (3 L/min)(0.08 kg/L)=0.24(3\text{ L/min})(0.08\text{ kg/L})=0.24 kg/min. It leaves at (3 L/min)(S/200 kg/L)=0.015S(3\text{ L/min})(S/200\text{ kg/L})=0.015S kg/min. Thus

S′=0.24−0.015S,S(0)=10.S'=0.24-0.015S,\qquad S(0)=10.

At zero rate, 0.24=0.015S0.24=0.015S, so the model suggests a long-run amount of S=16S=16 kg.

Solution 1.5

  1. The coefficient 0.20.2 has units 1/hour1/\text{hour}, so D′(0)=−0.2(10)=−2D'(0)=-0.2(10)=-2 g/hour.
  2. Differentiate the proposed function: D′=−2e−0.2t=−0.2DD'=-2e^{-0.2t}=-0.2D. Also D(0)=10D(0)=10, and its positive decreasing graph matches removal.
  3. After one hour, D(1)=10e−0.2≈8.1873D(1)=10e^{-0.2}\approx8.1873 g. The fraction lost is 1−e−0.2≈0.181271-e^{-0.2}\approx0.18127, or about 18.13%, not 20%.
  4. Exact 20% loss at each hourly checkpoint instead gives Dn=10(0.8)nD_n=10(0.8)^n. A continuous exponential matching those checkpoints would use D′=(ln⁡0.8)D≈−0.22314DD'=(\ln0.8)D\approx-0.22314D. An instantaneous percentage rate and a finite-interval percentage loss are different statements.

Solution 1.6

  1. Net volume inflow is 2−1=12-1=1 L/min, so V(t)=100+tV(t)=100+t L for t≥0t\ge0, as long as the tank does not overflow.
  2. Salt enters at (2 L/min)(3 g/L)=6(2\text{ L/min})(3\text{ g/L})=6 g/min.
  3. Well-mixed outflow has concentration S(t)/(100+t)S(t)/(100+t) g/L. At 1 L/min, it removes S(t)/(100+t)S(t)/(100+t) g/min. Therefore

S′=6−S100+t,S(0)=0.S'=6-\frac{S}{100+t},\qquad S(0)=0.

Initially, S′(0)=6S'(0)=6 g/min because there is no salt to remove yet. Both the amount and volume vary, so replacing the outflow concentration by S/100S/100 would use the wrong volume. Exercise 5.6 solves this model.

Chapter 2

Solution 2.1

The equilibrium is y=3y=3. Below 3, y−3<0y-3\lt 0, so solutions fall; above 3, they rise. Arrows point away from 3, so it is unstable. The initial values 1 and 5 move down and up, respectively, while 3 remains constant.

Solution 2.2

For y′=cos⁡ty'=\cos t, each vertical column has a common slope because only time matters. For y′=cos⁡yy'=\cos y, each horizontal row has a common slope because only state matters. For y′=cos⁡(t+y)y'=\cos(t+y), equal slopes lie on diagonal bands where t+yt+y is constant.

Solution 2.3

Between 0 and 1, y′=y(1−y)>0y'=y(1-y)\gt 0, so the solution rises toward the stable equilibrium 1. Differentiate along a solution:

y′′=y′(1−2y).y''=y'(1-2y).

While 0<y<1/20\lt y\lt 1/2, both factors are positive, so the graph is concave up. After yy passes 1/21/2, 1−2y<01-2y\lt 0, so it is concave down. The growth rate peaks at the inflection state y=1/2y=1/2.

Solution 2.4

For y=0y=0, both y′y' and y\sqrt y are zero. For y=t2/4y=t^2/4 with t≥0t\ge0, y′=t/2y'=t/2 and y=t/2\sqrt y=t/2. Both satisfy y(0)=0y(0)=0. The usual no-crossing/unique-future rule fails because y\sqrt y is not Lipschitz in yy at zero. In fact, solutions may wait at zero before departing.

Solution 2.5

The slope vanishes where t−y=0t-y=0, or y=ty=t. Below this line the rate is positive; above it the rate is negative. But the candidate y=ty=t has derivative 1 while the equation demands 0 along the line, so the zero-slope line is not a solution.

At (0,0)(0,0), y′(0)=0y'(0)=0. Differentiating the equation along the solution gives y′′=1−y′y''=1-y', hence y′′(0)=1y''(0)=1. The curve has a local minimum at zero and rises for sufficiently small positive time. As an optional check, y=t−1+e−ty=t-1+e^{-t} has the correct initial condition and derivative, with expansion y=t2/2+O(t3)y=t^2/2+O(t^3).

Solution 2.6

Differentiate along a solution, remembering that yy also depends on tt:

y′′=2t−y′=2t−t2+y.y''=2t-y'=2t-t^2+y.

At (1,1)(1,1), y′=0y'=0 and y′′=2>0y''=2\gt 0, so this solution has a strict local minimum at t=1t=1. At (−1,1)(-1,1), y′=0y'=0 and y′′=−2<0y''=-2\lt 0, so that solution has a strict local maximum at t=−1t=-1. The smooth rate rule guarantees local solutions through both points. A horizontal field mark reports only the first derivative; the second derivative distinguishes these two turning behaviors.

Chapter 3

Solution 3.1

(a) y′=t2/yy'=t^2/y is separable: y dy=t2dty,dy=t^2dt. (b) y′+ety=1y'+e^t y=1 is first-order linear with p=etp=e^t. (c) y′=ysin⁡yy'=y\sin y is autonomous and separable; draw the phase line first. (d) y′′+9y=0y''+9y=0 is homogeneous second-order constant coefficient, so use characteristic roots.

Solution 3.2

Factor y′=ty+t=t(y+1)y'=ty+t=t(y+1), so dy/(y+1)=t dtdy/(y+1)=t,dt: it is separable. The equation y′=ty+1y'=ty+1 gives y′−ty=1y'-ty=1, but the right side ty+1ty+1 does not factor into a time-only and state-only product. Both equations are first-order linear; separation is the shorter option for the first.

Solution 3.3

On t>0t\gt 0, y′=y/ty'=y/t is separable because dy/y=dt/tdy/y=dt/t. It is also homogeneous first-order linear: y′−(1/t)y=0y'-(1/t)y=0. Separation uses less setup. Both produce y=Cty=Ct.

Solution 3.4

The sum y2+ty^2+t cannot be factored as a(t)b(y)a(t)b(y), so it is not separable. The squared state violates the linear form y′+p(t)y=q(t)y'+p(t)y=q(t). Useful next steps include drawing a direction field, computing a numerical solution for specified initial data, deriving local Taylor coefficients, and proving qualitative bounds or monotonicity.

Solution 3.5

For t≠2t\ne2, divide by t−2t-2:

y′+3t−2y=t−2.y'+\frac{3}{t-2}y=t-2.

This is first-order linear with p(t)=3/(t−2)p(t)=3/(t-2) and q(t)=t−2q(t)=t-2. The maximal coefficient-continuity interval containing 3 is (2,∞)(2,\infty); the other interval is (−∞,2)(-\infty,2). The next move would be an integrating factor, μ=∣t−2∣3\mu=|t-2|^3.

The original equation still makes an algebraic demand at t=2t=2: 3y(2)=03y(2)=0, so a differentiable extension must have y(2)=0y(2)=0. This is a necessary condition, not a guarantee that every branch extends. Dividing by a coefficient that can vanish requires an interval check.

Solution 3.6

The state factor is y(1+ty)y(1+ty), whose second factor mixes time and state; the y2y^2 term also rules out linearity in yy. First record the equilibrium y=0y=0. On a branch where y≠0y\ne0, set v=1/yv=1/y. The chain rule gives

v′=−y′y2=−y+ty2y2=−v−t,v'=-\frac{y'}{y^2}=-\frac{y+ty^2}{y^2}=-v-t,

so v′+v=−tv'+v=-t, a first-order linear equation with integrating factor ete^t. Linearity depends on the unknown: the transformed equation is linear in vv, while the original remains nonlinear in yy. Recovering y=1/vy=1/v requires v≠0v\ne0, and the separate equilibrium y=0y=0 cannot be recovered by taking a finite reciprocal.

Chapter 4

Solution 4.1

Separate and integrate:

y dy=3t2dt,y22=t3+C.y,dy=3t^2dt,\qquad \frac{y^2}{2}=t^3+C.

The condition gives C=2C=2, so y2=2t3+4y^2=2t^3+4. Since y(0)=2>0y(0)=2\gt 0, select

y=2t3+4.y=\sqrt{2t^3+4}.

Differentiation gives y′=3t2/yy'=3t^2/y. The real solution interval containing zero requires 2t3+4>02t^3+4\gt 0, so t>−23t\gt -\sqrt[3]{2}.

Solution 4.2

The division safeguard records equilibria y=0y=0 and y=2y=2. For other solutions,

∫dyy(y−2)=t+C⇒12ln⁡∣y−2y∣=t+C.\int\frac{dy}{y(y-2)}=t+C \quad\Rightarrow\quad \frac12\ln\left|\frac{y-2}{y}\right|=t+C.

Exponentiating with a signed nonzero constant gives (y−2)/y=Ce2t(y-2)/y=Ce^{2t}, hence the non-equilibrium family y=2/(1−Ce2t)y=2/(1-Ce^{2t}), C≠0C\ne0, on any interval where the denominator is nonzero. The equilibria y=0y=0 and y=2y=2 complete the solution set. Using y(0)=1y(0)=1 gives C=−1C=-1, hence

y=21+e2t.y=\frac{2}{1+e^{2t}}.

This solution remains between the two equilibria and decreases toward zero, matching the phase line.

Solution 4.3

The equilibria are 0 and 500. Partial fractions or the standard logistic integration gives

P=5001+Ae−0.6t.P=\frac{500}{1+Ae^{-0.6t}}.

From P(0)=50P(0)=50, 50=500/(1+A)50=500/(1+A), so A=9A=9:

P(t)=5001+9e−0.6t.P(t)=\frac{500}{1+9e^{-0.6t}}.

The rate is positive between 0 and 500 and negative above 500, so positive nonzero solutions approach 500.

Solution 4.4

Integrating dy/(1+y2)=dtdy/(1+y^2)=dt gives arctan⁡y=t+C\arctan y=t+C. The condition y(0)=1y(0)=1 gives C=π/4C=\pi/4, so

y=tan⁡(t+π/4).y=\tan(t+\pi/4).

The nearest tangent poles occur when t+π/4=−π/2t+\pi/4=-\pi/2 and t+π/4=π/2t+\pi/4=\pi/2. The maximal interval containing zero is

(−3π/4, π/4).(-3\pi/4,\ \pi/4).

Solution 4.5

Record y=0y=0 before division; it does not satisfy the initial condition. For the negative branch, separate and integrate:

dyy2=2t dt,−1y=t2+C.\frac{dy}{y^2}=2t,dt,\qquad -\frac1y=t^2+C.

Using y(0)=−2y(0)=-2 gives C=1/2C=1/2, hence

y=−21+2t2.y=-\frac{2}{1+2t^2}.

The denominator is positive for every real tt, so the maximal interval is (−∞,∞)(-\infty,\infty). Differentiation gives y′=8t/(1+2t2)2=2ty2y'=8t/(1+2t^2)^2=2ty^2, and y(0)=−2y(0)=-2. The curve decreases before zero and increases after zero, but never crosses y=0y=0: a change in derivative sign changes direction, not necessarily the sign of the state.

Solution 4.6

The equilibrium y=0y=0 is excluded by y(0)=4y(0)=4. On the positive branch,

∫y−3/2 dy=∫dt⇒−2y=t+C.\int y^{-3/2},dy=\int dt \quad\Rightarrow\quad -\frac2{\sqrt y}=t+C.

The initial condition gives C=−1C=-1, so 2/y=1−t2/\sqrt y=1-t. The left side is positive, which requires t<1t\lt 1. Therefore

y=4(1−t)2,−∞<t<1.y=\frac4{(1-t)^2},\qquad -\infty<t<1.

On this interval, y′=8/(1−t)3=y3/2y'=8/(1-t)^3=y^{3/2}, and y(0)=4y(0)=4. The solution blows up as t→1−t\to1^-. Although the rational expression is also finite for t>1t\gt 1, there its derivative is negative while y3/2y^{3/2} is positive. Squaring without preserving the branch inequality would introduce a false continuation.

Chapter 5

Solution 5.1

The zero-rate state in y′=3y+6=3(y+2)y'=3y+6=3(y+2) is −2-2, and arrows point away, so it is unstable. The integrating factor is e−3te^{-3t}, giving

y=−2+Ce3t.y=-2+Ce^{3t}.

From y(0)=1y(0)=1, C=3C=3, so y=−2+3e3ty=-2+3e^{3t}. It grows away from −2-2, as predicted.

Solution 5.2

Here p(t)=2/tp(t)=2/t, so on t>0t\gt 0, μ=t2\mu=t^2. Then

(t2y)′=t3. (t^2y)'=t^3.

Integration gives t2y=t4/4+Ct^2y=t^4/4+C, or y=t2/4+C/t2y=t^2/4+C/t^2. The condition y(1)=0y(1)=0 gives C=−1/4C=-1/4:

y=t24−14t2.y=\frac{t^2}{4}-\frac{1}{4t^2}.

Solution 5.3

Rewrite as T′+0.25T=5T'+0.25T=5, or read the equilibrium directly as 20. The solution is

T=20+60e−0.25t.T=20+60e^{-0.25t}.

Set T=30T=30: 10=60e−0.25t10=60e^{-0.25t}, so e−0.25t=1/6e^{-0.25t}=1/6 and

t=4ln⁡6≈7.17 time units.t=4\ln6\approx7.17\text{ time units}.

Solution 5.4

The transient Ce−tCe^{-t} is annihilated by the operator D+1D+1. Apply it to the proposed family:

y′+y=(2t−Ce−t)+(t2+Ce−t)=t2+2t.y'+y=(2t-Ce^{-t})+(t^2+Ce^{-t})=t^2+2t.

Thus one valid equation is

y′+y=t2+2t.y'+y=t^2+2t.

The polynomial t2t^2 is the forced response; Ce−tCe^{-t} is the decaying transient.

Solution 5.5

The integrating factor is e2te^{2t}, so

(e2ty)′=et,e2ty=et+C.(e^{2t}y)'=e^t,\qquad e^{2t}y=e^t+C.

Thus y=e−t+Ce−2ty=e^{-t}+Ce^{-2t}. The initial condition gives C=−1C=-1, hence y=e−t−e−2ty=e^{-t}-e^{-2t}. Its derivative is −e−t+2e−2t-e^{-t}+2e^{-2t}, which is positive before t=ln⁡2t=\ln2 and negative afterward. On t≥0t\ge0, the maximum is therefore

y(ln⁡2)=12−14=14.y(\ln2)=\frac12-\frac14=\frac14.

Finally, y′+2y=e−ty'+2y=e^{-t}, and y(0)=0y(0)=0. The solution first builds up under the input, then falls to zero as the input fades.

Solution 5.6

On t≥0t\ge0, the integrating factor is μ=100+t\mu=100+t. Multiplying every term gives

[(100+t)S]′=6(100+t).[(100+t)S]'=6(100+t).

Integration yields (100+t)S=3(100+t)2+C(100+t)S=3(100+t)^2+C. At t=0t=0, S=0S=0, so C=−30000C=-30000, and

S=3(100+t)−30000100+t.S=3(100+t)-\frac{30000}{100+t}.

Consequently the concentration is

S100+t=3−30000(100+t)2⟶3 g/L.\frac{S}{100+t}=3-\frac{30000}{(100+t)^2}\longrightarrow3\text{ g/L}.

The concentration approaches that of the inflow, but volume grows without bound in this idealized no-overflow model, so the amount grows without a finite limit. As a check, S′=3+30000/(100+t)2=6−S/(100+t)S'=3+30000/(100+t)^2=6-S/(100+t), and S′(0)=6S'(0)=6 g/min, as predicted in Exercise 1.6.

Chapter 6

Solution 6.1

The equilibria are 0, 1, and 3. The sign pattern of y(y−1)(y−3)y(y-1)(y-3), from left to right, is −,+,−,+-,+,-,+. Arrows point away from 0, toward 1, and away from 3. Thus 0 and 3 are unstable, while 1 is stable.

Solution 6.2

The phase line gives: y(0)=−1y(0)=-1 decreases away below 0; y(0)=1/2y(0)=1/2 rises toward 1; y(0)=2y(0)=2 falls toward 1; and y(0)=4y(0)=4 rises away above 3. The two inner solutions tend to 1 as t→∞t\to\infty. The outer solutions instead become unbounded in finite positive time: separation expresses the time to reach a state as an integral of 1/[y(y−1)(y−3)]1/[y(y-1)(y-3)], and the integral to either infinite endpoint converges because its magnitude behaves like 1/∣y∣31/|y|^3. Thus their arrows must not be interpreted as solutions that remain finite for every positive time.

Solution 6.3

Treat P′=rP−(r/K)P2P'=rP-(r/K)P^2 as a function of state. Differentiate with respect to PP:

dP′dP=r−2rKP.\frac{dP'}{dP}=r-\frac{2r}{K}P.

With r,K>0r,K\gt 0, the critical state is P=K/2P=K/2, and the downward-opening parabola makes it a maximum. The maximum rate is rK/4rK/4. The carrying-capacity population is the equilibrium KK; these have different units. A population may start above KK, but then its rate is negative, so KK is not an absolute upper bound on every initial state.

Solution 6.4

For a>0a\gt 0, equilibria are ±a\pm\sqrt a. The rate is positive outside them and negative between them, so −a-\sqrt a is stable and +a+\sqrt a is unstable. For a=0a=0, y′=y2≥0y'=y^2\ge0; zero is semistable, attracting from below and repelling above. For a<0a\lt 0, y′=y2+∣a∣>0y'=y^2+|a|\gt 0, so no equilibria exist and every solution rises on its interval of existence.

Solution 6.5

The only equilibrium is y=2y=2. Below it, (y−2)3<0(y-2)^3\lt 0, so the rate is positive. Above it, the rate is negative. Both arrows point inward: 2 is asymptotically stable.

Yet f′(y)=−3(y−2)2f'(y)=-3(y-2)^2, so f′(2)=0f'(2)=0. A zero derivative makes the first-derivative test inconclusive, not unstable. Starting at 1, the solution rises toward 2; starting at 3, it falls toward 2. Smoothness prevents crossing the equilibrium. Each trajectory is monotone and bounded, and any limit different from 2 would retain a nonzero rate, so both limits must equal 2.

Solution 6.6

Complete the square in the rate:

P′=2−H−(P−4)28.P'=2-H-\frac{(P-4)^2}{8}.

For 0≤H<20\le H\lt 2, the two equilibria are

P−=4−16−8H,P+=4+16−8H.P_-=4-\sqrt{16-8H},\qquad P_+=4+\sqrt{16-8H}.

The rate is positive between them and negative outside. Thus P−P_- is unstable and P+P_+ is asymptotically stable. For 0<H<20\lt H\lt 2, a starting population between 0 and P−P_- declines to extinction, while a starting population above P−P_- approaches P+P_+. The lower equilibrium is a survival threshold. At H=0H=0, it is zero itself, and positive populations instead approach 8.

At H=2H=2, P′=−(P−4)2/8P'=-(P-4)^2/8: the double equilibrium 4 attracts from above and repels from below, so it is semistable. At H>2H\gt 2, the rate is strictly negative everywhere and there are no equilibria; positive populations reach extinction. Because a constant harvest would otherwise drive PP below zero, the physical model stops at extinction. The threshold H=2H=2 equals the unharvested model's maximum growth rate.

Chapter 7

Solution 7.1

The characteristic equation r2−r−6=(r−3)(r+2)=0r^2-r-6=(r-3)(r+2)=0 gives roots 3 and −2-2. Thus

y=C1e3t+C2e−2t.y=C_1e^{3t}+C_2e^{-2t}.

The conditions give C1+C2=1C_1+C_2=1 and 3C1−2C2=03C_1-2C_2=0, hence C1=2/5C_1=2/5, C2=3/5C_2=3/5. The growing e3te^{3t} mode dominates for large positive time.

Solution 7.2

The characteristic polynomial is (r+3)2(r+3)^2, so

y=(C1+C2t)e−3t.y=(C_1+C_2t)e^{-3t}.

The first condition gives C1=0C_1=0. Differentiating then evaluating at zero gives C2=2C_2=2. Therefore y=2te−3ty=2te^{-3t}.

Solution 7.3

The roots are −ζ±ζ2−1-\zeta\pm\sqrt{\zeta^2-1}. At ζ=0\zeta=0, they are pure imaginary and the phase portrait is a center. At 1/21/2, they are complex with negative real part, producing a spiral sink. At 1, the negative root repeats, giving critical damping and a degenerate stable node. At 2, both roots are real and negative, giving an overdamped stable node.

Solution 7.4

Envelope e−te^{-t} requires real part −1-1. Period π\pi requires angular frequency 22, since 2π/β=π2\pi/\beta=\pi. Desired roots are −1±2i-1\pm2i. Their polynomial is

(r+1)2+4=r2+2r+5. (r+1)^2+4=r^2+2r+5.

Choose a=2a=2, b=5b=5.

Solution 7.5

The roots are ±2i\pm2i, so x=C1cos⁡2t+C2sin⁡2tx=C_1\cos2t+C_2\sin2t. Position gives C1=1C_1=1, and velocity gives 2C2=22C_2=2, hence

x=cos⁡2t+sin⁡2t=2cos⁡(2t−π/4).x=\cos2t+\sin2t=\sqrt2\cos(2t-\pi/4).

The amplitude is 2\sqrt2 and the period is 2π/2=π2\pi/2=\pi. For E=(x′)2/2+2x2E=(x')^2/2+2x^2, differentiate:

E′=x′x′′+4xx′=x′(x′′+4x)=0.E'=x'x''+4xx'=x'(x''+4x)=0.

Initially E=22/2+2(1)2=4E=2^2/2+2(1)^2=4, so E=4E=4 at every time. This gives an independent physical check: the undamped oscillator exchanges kinetic and potential energy without losing their sum.

Solution 7.6

The characteristic equation is r(r+2)=0r(r+2)=0. Therefore

y=C1+C2e−2t,y′=−2C2e−2t.y=C_1+C_2e^{-2t},\qquad y'=-2C_2e^{-2t}.

Velocity gives −2C2=−4-2C_2=-4, so C2=2C_2=2. Position then gives C1=−1C_1=-1, hence y=−1+2e−2ty=-1+2e^{-2t} and lim⁡t→∞y=−1\lim_{t\to\infty}y=-1. Direct substitution gives y′′+2y′=8e−2t−8e−2t=0y''+2y'=8e^{-2t}-8e^{-2t}=0.

The root 0 supplies the constant mode e0t=1e^{0t}=1, while the root −2-2 supplies a decaying mode. Undamped oscillation needs a nonzero imaginary pair; a real zero root alone gives no rotation or periodic motion.

Chapter 8

Solution 8.1

Natural roots are ±i\pm i, so yh=C1cos⁡t+C2sin⁡ty_h=C_1\cos t+C_2\sin t. For the polynomial input tt, try yp=At+By_p=At+B. Since yp′′=0y_p''=0, matching At+B=tAt+B=t gives A=1,B=0A=1,B=0. Thus

y=C1cos⁡t+C2sin⁡t+t.y=C_1\cos t+C_2\sin t+t.

Solution 8.2

The homogeneous solution is C1cos⁡2t+C2sin⁡2tC_1\cos2t+C_2\sin2t. Try yp=Acos⁡t+Bsin⁡ty_p=A\cos t+B\sin t; substitution gives 3A=13A=1, 3B=03B=0. Thus yp=13cos⁡ty_p=\frac13\cos t. The conditions give C1=−1/3C_1=-1/3, C2=0C_2=0, so

y=cos⁡t−cos⁡2t3.y=\frac{\cos t-\cos2t}{3}.

Solution 8.3

(a) Ae−tAe^{-t}; it does not collide with the natural modes. (b) t(Acos⁡2t+Bsin⁡2t)t(A\cos2t+B\sin2t); frequency 2 is the natural frequency, so multiply once by tt. (c) At2+Bt+CAt^2+Bt+C; use the complete polynomial family.

Solution 8.4

For y′′+ω02y=Fcos⁡(ωt)y''+\omega_0^2y=F\cos(\omega t) with zero initial position and velocity, ω0>0\omega_0\gt 0, and ω≠ω0\omega\ne\omega_0, the response is

y=F[cos⁡(ωt)−cos⁡(ω0t)]ω02−ω2.y=\frac{F[\cos(\omega t)-\cos(\omega_0t)]}{\omega_0^2-\omega^2}.

The identity rewrites the numerator as a fast oscillation with average angular frequency (ω+ω0)/2(\omega+\omega_0)/2, multiplied by −2sin⁡((ω−ω0)t/2)-2\sin((\omega-\omega_0)t/2). Close frequencies produce a slowly varying amplitude, or beats. In the limit ω→ω0\omega\to\omega_0, both numerator and denominator vanish; their ratio tends to Ftsin⁡(ω0t)/(2ω0)Ft\sin(\omega_0t)/(2\omega_0). It is this full response, not the numerator alone, whose resonant envelope grows linearly.

Solution 8.5

The homogeneous characteristic polynomial is (r−1)2(r-1)^2, so both ete^t and tette^t are natural modes. The forcing trial must therefore be At2etAt^2e^t, not AetAe^t or AtetAte^t.

For a direct verification, set y=etuy=e^t u. Then

y′′−2y′+y=etu′′.y''-2y'+y=e^t u''.

The equation becomes u′′=1u''=1, so u=t2/2+C1+C2tu=t^2/2+C_1+C_2t. Since y(0)=u(0)=0y(0)=u(0)=0, C1=0C_1=0. Also y′(0)=u(0)+u′(0)=0y'(0)=u(0)+u'(0)=0, so C2=0C_2=0. Thus

y=12t2et.y=\frac12t^2e^t.

The transformed equation verifies the forcing, and evaluation verifies both conditions. The homogeneous modes grow rather than decay, so they should not be described as decaying transients.

Solution 8.6

The roots of r2+2r+2=0r^2+2r+2=0 are −1±i-1\pm i, giving yh=e−t(C1cos⁡t+C2sin⁡t)y_h=e^{-t}(C_1\cos t+C_2\sin t). Try yp=Acos⁡t+Bsin⁡ty_p=A\cos t+B\sin t. Substitution yields

(A+2B)cos⁡t+(B−2A)sin⁡t=cos⁡t.(A+2B)\cos t+(B-2A)\sin t=\cos t.

Thus A+2B=1A+2B=1, B−2A=0B-2A=0, so A=1/5A=1/5, B=2/5B=2/5. Apply the initial conditions to the full solution: C1+1/5=0C_1+1/5=0 and −C1+C2+2/5=0-C_1+C_2+2/5=0. Therefore

y=e−t(−15cos⁡t−35sin⁡t)+15cos⁡t+25sin⁡t.y=e^{-t}\left(-\frac15\cos t-\frac35\sin t\right) +\frac15\cos t+\frac25\sin t.

The steady-state amplitude is (1/5)2+(2/5)2=1/5\sqrt{(1/5)^2+(2/5)^2}=1/\sqrt5. The first term is the decaying transient. The difference of any two solutions satisfies the homogeneous equation, whose modes decay, so their periodic responses agree asymptotically.

Chapter 9

Solution 9.1

The system is already diagonal:

x=C1e−t,y=C2e−3t.x=C_1e^{-t},\qquad y=C_2e^{-3t}.

Both modes decay, so the origin is a stable node. Unless C1=0C_1=0, the slower e−te^{-t} mode dominates late, and trajectories approach tangent to the xx-axis.

Solution 9.2

The matrix has eigenvalue 3 with eigenvector [1,1]T[1,1]^T, and eigenvalue 1 with eigenvector [1,−1]T[1,-1]^T. Therefore

x=C1e3t[11]+C2et[1−1].\mathbf{x}=C_1e^{3t}\begin{bmatrix}1\1\end{bmatrix}+C_2e^t\begin{bmatrix}1\-1\end{bmatrix}.

Both modes grow, so the origin is an unstable node; the [1,1]T[1,1]^T direction dominates generically.

Solution 9.3

Let x1=yx_1=y, x2=y′x_2=y'. Then

[x1′x2′]=[01−5−2][x1x2].\begin{bmatrix}x_1'\x_2'\end{bmatrix} =\begin{bmatrix}0&1\-5&-2\end{bmatrix} \begin{bmatrix}x_1\x_2\end{bmatrix}.

The eigenvalues solve λ2+2λ+5=0\lambda^2+2\lambda+5=0, giving −1±2i-1\pm2i. The negative real part and nonzero imaginary part produce a spiral sink.

Solution 9.4

The eigenvalue discriminant is D=τ2−4ΔD=\tau^2-4\Delta. If Δ<0\Delta\lt 0, eigenvalues have opposite signs: saddle. If Δ>0\Delta\gt 0 and D>0D\gt 0, the roots are real with common sign set by τ\tau: stable node for τ<0\tau\lt 0, unstable node for τ>0\tau\gt 0. If D<0D\lt 0, they are complex: spiral sink for τ<0\tau\lt 0, spiral source for τ>0\tau\gt 0, and center in the ideal linear case τ=0\tau=0. The curves Δ=0\Delta=0 and D=0D=0 are classification boundaries.

On D=0D=0 with Δ>0\Delta\gt 0, the repeated nonzero eigenvalue is τ/2\tau/2: its sign still determines decay or growth, but eigenvectors distinguish a scalar-matrix node from a defective node. On Δ=0\Delta=0, at least one eigenvalue is zero and the origin is not an isolated equilibrium. If τ<0\tau\lt 0, trajectories approach a line of equilibria, so the origin is stable but not asymptotically stable; if τ>0\tau\gt 0, it is unstable. At (τ,Δ)=(0,0)(\tau,\Delta)=(0,0), A=0A=0 leaves every point fixed, whereas a nonzero nilpotent matrix permits linear drift. Trace and determinant alone cannot distinguish these last two cases.

Solution 9.5

First solve y′=−yy'=-y, y(0)=1y(0)=1, obtaining y=e−ty=e^{-t}. Then x′+x=e−tx'+x=e^{-t}, so the integrating factor ete^t gives (etx)′=1(e^tx)'=1. Using x(0)=0x(0)=0 yields

x=te−t,y=e−t.x=te^{-t},\qquad y=e^{-t}.

Differentiate to check: x′=(1−t)e−t=−x+yx'=(1-t)e^{-t}=-x+y, and y′=−e−t=−yy'=-e^{-t}=-y.

The matrix [−110−1]\begin{bmatrix}-1&1\0&-1\end{bmatrix} has repeated eigenvalue −1-1, but its eigenvectors satisfy v2=0v_2=0, leaving only the xx-axis direction. An eigenvector mode has zero second component and cannot match y(0)=1y(0)=1. The additional te−tte^{-t} contribution is essential. In general, y=C2e−ty=C_2e^{-t} and x=(C1+C2t)e−tx=(C_1+C_2t)e^{-t}; every solution tends to zero, so the origin is a defective stable node.

Solution 9.6

Differentiate x′=−4yx'=-4y to get x′′=−4y′=−4xx''=-4y'=-4x. Since x(0)=2x(0)=2 and x′(0)=0x'(0)=0,

x=2cos⁡2t,y=−x′/4=sin⁡2t.x=2\cos2t,\qquad y=-x'/4=\sin2t.

You can also prove the invariant without solving:

ddt(x2+4y2)=2x(−4y)+8yx=0.\frac{d}{dt}(x^2+4y^2)=2x(-4y)+8yx=0.

Its initial value is 4, so the orbit is the ellipse x2+4y2=4x^2+4y^2=4, or x2/4+y2=1x^2/4+y^2=1. At (2,0)(2,0), the velocity is (0,2)(0,2), pointing upward, so rotation is counterclockwise. The period is π\pi. The origin is a center: nearby trajectories remain nearby, but nonzero invariant level sets never approach it. Thus it is stable, not attracting or asymptotically stable.

Chapter 10

Solution 10.1

With h=0.2h=0.2, use yn+1=yn+0.2(yn−tn)y_{n+1}=y_n+0.2(y_n-t_n):

tnt_nyny_nslopenext value
0.01.01.01.2
0.21.21.01.4
0.41.41.01.6

Thus y(0.6)≈1.6y(0.6)\approx1.6.

In fact, y=1+ty=1+t satisfies both the equation and initial condition, so Euler is exact at these grid points in exact arithmetic. This special straight-line solution is not evidence that Euler generally has zero error.

Solution 10.2

Euler gives yn+1=(1+h)yny_{n+1}=(1+h)y_n, so from y0=1y_0=1, yn=(1+h)ny_n=(1+h)^n. At t=1t=1, n=1/hn=1/h:

  • h=1h=1: 22;
  • h=1/2h=1/2: 1.52=2.251.5^2=2.25;
  • h=1/4h=1/4: 1.254≈2.44141.25^4\approx2.4414.

The values rise toward e≈2.7183e\approx2.7183 as the step shrinks.

Solution 10.3

The phase line shows that solutions starting between 0 and 10 rise toward 10 without crossing it. A useful numerical test should therefore: assert 0<Pn<100\lt P_n\lt 10, rerun with half the step, compare the two trajectories over the same times, and reject a method or step size that crosses the invariant equilibrium. A direction-field overlay supplies an independent visual check.

Solution 10.4

Euler gives yn+1=(1−ah)yny_{n+1}=(1-ah)y_n. Decay in magnitude requires

∣1−ah∣<1⇒0<h<2a.|1-ah|<1\quad\Rightarrow\quad 0<h<\frac{2}{a}.

Decay without alternating sign requires 0≤1−ah<10\le1-ah\lt 1, hence

0<h≤1a.0<h\le\frac1a.

At h=1/ah=1/a, the numerical state reaches zero in one step.

Solution 10.5

For f(t,y)=y−tf(t,y)=y-t, the midpoint stages are:

Start (tn,yn)(t_n,y_n)k1k_1Midpoint (tn+h/2,yn+hk1/2)(t_n+h/2,y_n+hk_1/2)k2k_2Next yy
(0,0)(0,0)0(0.25,0)(0.25,0)-0.25-0.125
(0.5,−0.125)(0.5,-0.125)-0.625(0.75,−0.28125)(0.75,-0.28125)-1.03125-0.640625

Euler instead gives y1=0y_1=0 and y2=0+0.5(0−0.5)=−0.25y_2=0+0.5(0-0.5)=-0.25. The exact value is y(1)=2−e≈−0.718282y(1)=2-e\approx-0.718282, making the absolute errors about 0.077657 for midpoint and 0.468282 for Euler.

The midpoint result is closer in this comparison because it samples the rate inside each step. It uses four rate evaluations rather than Euler's two, so the comparison fixes step size, not computational cost. One example does not prove a convergence order; repeated step-halving tests provide that evidence.

Solution 10.6

Write a=hra=hr. For 0<zn<10\lt z_n\lt1 and 0<a≤10\lt a\le1, the update zn+1=zn+azn(1−zn)z_{n+1}=z_n+az_n(1-z_n) is positive and greater than znz_n. For its upper bound, factor

1−zn+1=(1−zn)(1−azn).1-z_{n+1}=(1-z_n)(1-az_n).

Both factors are positive because zn<1z_n\lt 1 and azn<1az_n\lt 1. Thus zn+1<1z_{n+1}\lt 1, and induction preserves the interval for every finite step in exact arithmetic.

For r=1r=1, h=2h=2, and z0=0.75z_0=0.75,

z1=0.75+2(0.75)(0.25)=1.125,z_1=0.75+2(0.75)(0.25)=1.125,

which crosses the equilibrium even though the exact solution cannot. The bound hr≤1hr\le1 is sufficient to preserve the interval for every starting state within it; it does not estimate the time-trajectory error. Step-halving comparisons are still needed for accuracy, and floating-point implementations should allow roundoff-sized tolerances.

Mixed studio

Solution M1

Rewrite as y′−ty=sin⁡ty'-ty=\sin t. It is first-order linear with p(t)=−tp(t)=-t, so μ=e−t2/2\mu=e^{-t^2/2}. A direction field or substitution can check the eventual solution.

Solution M2

The factors separate: (1+y2)dy=etdt(1+y^2)dy=e^t dt. Integration gives y+y3/3=et+Cy+y^3/3=e^t+C, generally best left implicit unless an initial condition selects a useful form.

Solution M3

Use homogeneous plus particular response. The characteristic root −3-3 repeats, so yh=(C1+C2t)e−3ty_h=(C_1+C_2t)e^{-3t}. For the polynomial input, try yp=At+By_p=At+B.

Solution M4

The matrix has eigenvalues ±i\pm i. The system is x′=−y,y′=xx'=-y, y'=x, so d(x2+y2)/dt=0d(x^2+y^2)/dt=0. Trajectories are counterclockwise circles centered at the origin, an ideal center.

Solution M5

Use an autonomous phase line before separation. Equilibria are −2-2 and 1. The sign pattern is positive outside and negative between, so −2-2 is stable and 1 unstable.

Solution M6

The condition holds, but the equation does not. The derivative is y′=1/(1−t)2=y2y'=1/(1-t)^2=y^2, not yy. The claimed function solves y′=y2y'=y^2 instead.

Solution M7

The equilibrium y=0y=0 does not match the condition. Separate:

∫y−2dy=∫(1+t)dt⇒−1y=t+t22+C.\int y^{-2}dy=\int(1+t)dt \quad\Rightarrow\quad -\frac1y=t+\frac{t^2}{2}+C.

At t=0,y=−1t=0,y=-1, C=1C=1, so

y=−11+t+t2/2.y=-\frac{1}{1+t+t^2/2}.

The quadratic denominator has discriminant 1−2<01-2\lt 0, so it never vanishes; the solution exists for all real tt.

Solution M8

On t>0t\gt 0, μ=t2\mu=t^2. Then (t2y)′=t4(t^2y)'=t^4, so t2y=t5/5+Ct^2y=t^5/5+C. The condition gives 1=1/5+C1=1/5+C, hence C=4/5C=4/5:

y=t35+45t2.y=\frac{t^3}{5}+\frac{4}{5t^2}.

Solution M9

Roots are −1±i-1\pm i, so y=e−t(C1cos⁡t+C2sin⁡t)y=e^{-t}(C_1\cos t+C_2\sin t). The conditions give C1=1C_1=1 and −C1+C2=0-C_1+C_2=0, so

y=e−t(cos⁡t+sin⁡t).y=e^{-t}(\cos t+\sin t).

Negative real part plus rotation gives a spiral sink in the (y,y′)(y,y') phase plane.

Solution M10

Natural motion is C1cos⁡t+C2sin⁡tC_1\cos t+C_2\sin t. Try Asin⁡3t+Bcos⁡3tA\sin3t+B\cos3t. Matching gives −8A=1-8A=1, −8B=0-8B=0, hence

y=C1cos⁡t+C2sin⁡t−18sin⁡3t.y=C_1\cos t+C_2\sin t-\frac18\sin3t.

Solution M11

At y0=0.5y_0=0.5, the slope is 0.5(1.5)=0.750.5(1.5)=0.75, so y1=0.5+0.5(0.75)=0.875y_1=0.5+0.5(0.75)=0.875. The next slope is 0.875(1.125)=0.9843750.875(1.125)=0.984375, so y2=1.3671875y_2=1.3671875. Both values remain between the unstable equilibrium 0 and stable equilibrium 2 and move upward, matching the phase line.

Solution M12

The matrix has eigenvalue −1-1 along [1,1]T[1,1]^T and −3-3 along [1,−1]T[1,-1]^T. Both decay, so the origin is a stable node. The slower e−te^{-t} mode dominates generically, so trajectories approach tangent to [1,1]T[1,1]^T.

Solution C1

If CC is concentration in mg/L, the amount in the fixed volume is VCVC. Its balance is VC′=I−kCV C'=I-kC, so

C′+kVC=IV.C'+\frac{k}{V}C=\frac{I}{V}.

Here II has units mg/hour, kk has units L/hour, and every term in the amount balance has units mg/hour. The equilibrium is C∗=I/kC_=I/k, stable because the displacement equation is (C−C∗)′=−(k/V)(C−C∗)(C-C_)'=-(k/V)(C-C_*). From C(0)=0C(0)=0,

C(t)=Ik(1−e−kt/V).C(t)=\frac{I}{k}\left(1-e^{-kt/V}\right).

For 90% of equilibrium, e−kt/V=0.1e^{-kt/V}=0.1, so t=(V/k)ln⁡10t=(V/k)\ln10. The ratio I/kI/k sets the target; k/Vk/V sets the approach rate, though changing kk affects both.

Solution C2

Both models start with positive rate, but P1P_1 has unlimited positive feedback while P2P_2 weakens as it approaches 10. Thus P1=etP_1=e^t grows without bound, while P2P_2 approaches 10. At P=1P=1, rates are 1 and 0.9, so their Taylor series already differ in the linear term:

P1=1+t+O(t2),P2=1+0.9t+O(t2).P_1=1+t+O(t^2),\qquad P_2=1+0.9t+O(t^2).

The exponential field has horizontal-row slopes proportional to PP; the logistic field adds a zero-slope row at 10 and reverses sign above it. Numerical checks for the logistic model should preserve the interval (0,10)(0,10).

Solution C3

Counterclockwise rotation with envelope e−0.5te^{-0.5t} can use

A=[−0.5−11−0.5].A=\begin{bmatrix}-0.5&-1\1&-0.5\end{bmatrix}.

Its eigenvalues are −0.5±i-0.5\pm i. Since x′=−0.5x−yx'=-0.5x-y, differentiating and eliminating yy gives

x′′+x′+1.25x=0.x''+x'+1.25x=0.

The roots of this scalar equation are the same −0.5±i-0.5\pm i, confirming the envelope and angular frequency.

Next: See the evidence and design choices behind this workbook.