Skip to main content

Appendix B Hints and Answers to Selected Exercises

1 A First Look at Differential Equations
1.1 Modeling with Differential Equations
1.1.9 Exercises

1.1.9.29.

Hint.
Rewriting the differential equation as x+axq(t)=0 and using the fact that
x(t)=aCeataeatt0teasq(s)ds+b(t),
we see that
x(t)+ax(t)q(t)=aCeataeatt0teasq(s)ds+q(t)+aCeat+aeatt0teasq(s)dsq(t)=0.

1.1.9.31.

Hint.
Think about the limit of the interaction term as the number of prey becomes very large.

1.4 Analyzing Equations Numerically
1.4.6 Exercises

1.4.6.5.

Hint.
This equation is a first-order linear equation (Section 1.5), but it is possible to find the analytic solution using Sage (Subsection 1.2.10).

1.4.6.8.

Hint.
Hints for part (2):
  • For fixed i show that
    ai+1(1+s)ai+t(1+s)[(1+s)ai1+t]+t(1+s){(1+s)[(1+s)ai2+t]+t}+t(1+s)i+1a0+[1+(1+s)+(1+s)2++(1+s)i]t.
  • Now use a geometric sum to show that
    ai+1(1+s)i+1a0+ts[(1+s)i+11]=(1+s)i+1(ts+a0)ts.
  • Apply part (1) to derive
    ai+1e(i+1)s(ts+a0)ts.

1.5 First-Order Linear Equations
1.5.8 Exercises

1.5.8.16.

Hint.
y=3x4+8x3+6x2+126(x+1)2

1.5.8.17.

Hint.
y=(ex+1)/(x+1)2

1.5.8.19.

Hint.
y=exsecx

1.5.8.20.

Hint.
y=sinx/(x+2)

1.5.8.21.

Hint.
If x(t) is the amount of salt in the tank at time t, we know that x(0)=10. The volume of the tank is V=200+5t. We can model the amount of salt in the tank at time t with a differential equation,
dxdt=rate inrate out=10(0.1)5xV=15x200+5t=1x40+t.
The resulting equation
dxdt+140+tx=1
is a first order linear differential equation. An integrating factor for this equation is given by
μ(t)=exp(140+tdt)=40+t.
Multiplying both sides of the differential equation by μ(t), we have
ddt[(40+t)x]=(40+t)dxdt+x=(40+t)(dxdt+140+tx)=40+t.
Integrating both sides of this equation, we obtain
(40+t)x=40t+t22+C.
Using the intial condition x(0)=10, we can determine that C=400 or
x(t)=t2+80t+8002t+80.
The tank is full at time t=400/5=80, and the tank contains x(80)=170/356.67 kilograms of salt when the tank is full.

1.5.8.25. Exact Differential Equations.

Hint.
For (e), rewrite the equation as
(ydx+xdy)+(xy2dx+x2y2dy)=0
and consider the integrating factor μ(x,y)=1/(xy)2.

1.5.8.28.

Hint.
  1. If y=y1+1/v, then y=y1v/v2. Substituting into our original equation, we obtain
    y=y1vv2=p+qy1+ry12vv2.
    On the other hand,
    y=p+q(y1+1v)+r(y1+1v)2=p+qy1+qv+ry12+2ry1v+rv2=y1+qv+2ry1v+rv2.
    Therefore,
    vv2=qv+2ry1v+rv2,
    which is just the first-order linear equation
    v+[q(t)+2r(t)y1(t)]v=r(t).
  2. y=t+1Ct
  3. y(t)=1Ccostsint+sint
  4. y(t)=2+1Cet1

1.6 Existence and Uniqueness of Solutions
1.6.5 Exercises

1.6.5.1.

Hint.
  1. There exists a unique solution to y=y2+y3, y(0)=1, since f(t,y)=y2+y3 and f(t,y)/y=2y+3y2 are continuous at the point (0,1).
  2. The Existence and Uniqueness Theorem does not apply to y=y4, y(1)=0, since f(t,y)=y4 is not continuous at (1,0).
  3. There exists a unique solution to y=y4, y(1)=1, since f(t,y)=y4 and f(t,y)/y=y3/4/4 are both continuous at the point (1,1).
  4. The Existence and Uniqueness Theorem does not apply to x=t/(x24), x(0)=2, since f(t,x)=t/(x24) is not continuous at (0,2).
  5. There exists a unique solution to x=t/(x24), x(2)=0, since f(t,x)=t/(x24) and f(t,x)/x=2tx/(x24)2 are both continuous at the point (2,0).
  6. There exists a unique solution to y=xsiny, y(0)=0, since f(x,y)=xsiny and f(x,y)/y=xcosy are both continuous at the point (0,0).
  7. The Existence and Uniqueness Theorem does not apply to y=1/(t1)y+2t, y(1)=1, since f(t,y)=1/(t1)y+2t is not continuous at (1,1).

1.6.5.3.

Hint.
(b) Make sure that the derivative of y(t) exists at t=t0.

3 Linear Systems
3.2 Planar Systems
3.2.6 Exercises

3.2.6.10.

Hint.
Assume that your solution must be of the form
xp=(a2t2+a1t+a0b2t2+b1t+b0.)
This is called the method of undetermined coefficients.

4 Second-Order Linear Equations
4.1 Homogeneous Linear Equations
4.1.6 Exercises

4.1.6.31.

Hint.
Pay careful attention to units.

4.1.6.32.

Hint.
  1. Observe that
    ax1+b1+cx1=a(b2a)2ebt/2a+b(b2a)ebt/2a+cebt/2a=ebt/2a(b24ab22a+c)=ebt/2a(b2+4ac4a)=0.
  2. If y=v(t)x1(t)=v(t)ebt/2a is a solution to our differential equation, then
    ay+by+cy=a(vx1+2vx1+vx1)+b(vx1+vx1)+cvx1=avx1+2avx1+bvx1+v(ax1+bx1+cx1)=avebt/2a+[2a(b2a)ebt/2a+bebt/2a]v=avebt/2a=0.
    Since a0, we know that v=0. Hence, v(t)=c1+c2t.

4.1.6.33.

Hint.
  1. x+px+qx=(vx1+2vx1+vx1)+p(vx1+vx1)+q(vx1)=x1v+2vx1+px1v+v(x1+px1+qx1)=x1v+(2x1+px1)v=0.
  2. If u=v, then x1u+(2x1+px1)u=0.
  3. If x1(t)=1/t, then
    2t2x1+3tx1x1=2t2(2t3)+3t(1t2)1t=0.
    If we assume that x=v/t is a second solution, then
    2t2x+3txx=2tvv=0.
    If we let u=v, then a solution of 2tuu=0 is u=t and v=tdt=2t3/2/3. Therefore, the second solution to our equation is
    x=vt=23t.

4.1.6.38. Euler Equations.

Hint.
Show that
dydt=dxdtdydxd2ydt2=(dxdt)2d2ydx2+d2xdt2dydx.

4.1.6.39. Higher Order Linear Equqtions with Constant Coefficients.

Hint.
Show that
dydt=dxdtdydxd2ydt2=(dxdt)2d2ydx2+d2xdt2dydx.

4.2 Forcing
4.2.7 Exercises

4.2.7.25.

Hint.
Suppose that that f(t) and g(t) are linearly dependent on an interval I=(a,b). Then one function is a multiple of the other, say f(t)=cg(t). Thus, f(t)=cg(t).
W(f,g)(t)=det(f(t)g(t)f(t)g(t))=f(t)g(t)f(t)g(t)=cg(t)g(t)cg(t)g(t)=0.
Conversely, suppose that
W(f,g)(t)=det(f(t)g(t)f(t)g(t))=0,
for all t in (a,b). If g=0, then 0f=g and the two functions are linearly dependent. Assume that g(t0)0 for some t0 in (a,b). Since g is differentiable, it must also be continuous and there is some interval (c,d) contained in (a,b) such that t0(c,d) and g does not vanish on this interval. Therefore,
ddt(fg)=fgfgg2=W(f,g)g2=0,
and f/g is constant on the interval (c,d). Thus, f(t0)=cg(t0) and f(t0)=cg(t0). Since f and cg are both solutions to the differential equation y+py+qy=0 and have the same initial condition, f(t)=cg(t) for all t(a,b) by the existence and uniqueness theorem. Consequently, f and g are linearly dependent.

4.2.7.26.

Hint.
  1. We can rewrite 2t2y+3tyy=0 as
    y+32ty12t2y=0.
    Since p(t)=1/2t, Abel’s Theorem tells us that
    W[y1,y2](t)=cexp(32tdt)=cexp(32lnt)=ct3/2.
  2. Since y1 and y2 are solutions to our differential equation, we know that
    y1+p(t)y1+q(t)y1=0y2+p(t)y2+q(t)y2=0.
    Multiplying the first equation by y2 and the second equation by y1 and subtracting, we obtain
    (4.2.5)(y1y2y1y2)+p(t)(y1y2y1y2)=0.
    If
    W(t)=W(y1,y2)(t)=y1y2y1y2,
    then
    W=y1y2y1y2,
    and equation (4.2.5) becomes
    W+p(t)W=0.
    This equation is separable with solution
    W(t)=cexp(p(t)dt).

4.2.7.27.

Hint.
  1. If yp=u1y1+u2y2, then
    yp=u1y1+u1y1+u2y2+u2y2=u1y1+u2y2yp=u1y1+u1y1+u2y2+u2y2.
    Substituting these expressions into equation (4.2.6), we have
    yp+pyp+qyp=(u1y1+u1y1+u2y2+u2y2)+p(u1y1+u2y2)+q(u1y1+u2y2)=u1[y1+py1+qy1]+u2[y2+py2+qy2]+u1y1+u2y2=u1y1+u2y2=f(t).
  2. If we solve the system
    u1(t)y1(t)+u2(t)y2(t)=0u1(t)y1(t)+u2(t)y2(t)=f(t).
    for u1 and u2, we obtain
    u1(t)=y2(t)f(t)W[y1,y2](t)u2(t)=y1(t)f(t)W[y1,y2](t).
  3. Integrate the two equations from part (2).
  4. The general solution to the homogeneous equation y+4y=0 is
    yh=c1cos2t+c2sin2t.
    To find a particular solution, assume that the solution has the form
    yp=u1(t)cos2t+u2(t)sin2t.
    By part (2)
    u1(t)=3costu2(t)=32csct3sint.
    Integrating, we obtain
    u1(t)=3sintu2(t)=32ln|csctcott|+3cost.
    Therefore,
    yp(t)=u1(t)y1(t)+u2(t)y2(t)=3sintcos2t+[32ln|csctcott|+3cost]sin2t,
    and the general solution is
    y=yh+yp=c1cos2t+c2sin2t3sintcos2t+[32ln|csctcott|+3cost]sin2t.

4.3 Sinusoidal Forcing
4.3.5 Exercises

4.3.5.2.

Hint.
Assume the complex solution has form yc=Ae3it.

4.3.5.12.

Hint.
Assume the complex solution has form yc=Ae3it.

5 Nonlinear Systems
5.3 More Nonlinear Mechanics
5.3.6 Exercises

5.3.6.17. Lobster Navigation.

Hint.
You may find Sage useful.