Integral Calculus 201-SN3-RE • CEGEP, Montreal

Corrected exercises: differential equations (201-SN3-RE)

This is the corrected exercise set on differential equations for Integral Calculus, 201-SN3-RE (formerly 201-NYB). Two calculation exercises open it: ten equations to solve in quick succession, five first-order equations whose type must be recognized under their disguise, five second-order equations to integrate twice or to reduce. Part A then sets up the techniques of the course: SEPARABLE equations, where the variables and the differentials are sorted onto either side of the equals sign (all the way to the neat family of circles as solutions), first-order LINEAR equations solved with an integrating factor, with the bridge to physics: the RC circuit equation is exactly the one from the physics course, exponential growth and decay (carbon 14 dating, bacteria, continuously compounded interest), qualitative analysis with the slope field, the phase line and Euler's method (exercise 6), then the substitutions that turn homogeneous equations and the Bernoulli equation into a linear equation, with orthogonal trajectories (exercise 7).

Part B does what this chapter does best: modelling problems. Newton's law of cooling with the exact curve of the coffee (exercise 8), the brine tank that forgets its initial state (exercise 9), the logistic model, the exponential tamed by the carrying capacity (exercise 10), falling with air resistance and its terminal velocity (exercise 11), and fishing with harvesting, where the maximum sustainable yield becomes a collapse threshold (exercise 12). Part C goes through the classics: five separable equations, one of which loses uniqueness (exercise 13), five linear equations with an integrating factor (exercise 14), Euler's method and the improved Euler method against the exact solution (exercise 15), draining a tank by Torricelli's law (exercise 16) and a chemical kinetics problem solved with partial fractions (exercise 17).

This set is written for CEGEP students in the Science program (Sciences de la nature) taking Integral Calculus 201-SN3-RE: the word problems, with setting up the equation included, are the exact format of CEGEP tests.

The reflex to keep throughout: a differential equation is READ before it is solved. Look for the equilibrium solutions (where y′=0y'=0), the sign of y′y', the behaviour at infinity: three questions with no computation that sketch the solution, check the final result, and earn marks even when the integral resists.

17 corrected exercises • 170 points • 255 minutes

This chapter is part of 201-SN3-RE, every chapter with its set and sheet Before you start Revision sheet: the traps and the method for this chapter

Self-checking set Type your answers and check them question by question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points, and your right answers stay filled in when you come back.

Course recap

  • • Vocabulary: the ORDER is that of the highest derivative; the GENERAL solution contains one constant per order; an initial condition fixes the constant (particular solution). Always VERIFY a solution by substituting it back into the equation.
  • • SEPARABLE equation: dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y). Isolate: dyg(y)=f(x)dx\frac{dy}{g(y)}=f(x)dx, integrate each side, write only ONE constant, and keep an eye on the constant solutions g(y)=0g(y)=0 lost in the division.
  • • First-order LINEAR equation: y′+P(x)y=Q(x)y'+P(x)y=Q(x). Integrating factor μ(x)=e∫P(x)dx\mu(x)=e^{\int P(x)dx}: the equation becomes (μy)′=μQ(\mu y)'=\mu Q, which integrates directly. It is the method of choice as soon as yy and y′y' appear to the first degree.
  • • Exponential growth and decay: dNdt=kN\frac{dN}{dt}=kN gives N(t)=N0ektN(t)=N_{0}e^{kt}. Doubling time ln⁡2k\frac{\ln 2}{k}; half-life t1/2=ln⁡2∣k∣t_{1/2}=\frac{\ln 2}{|k|} (carbon 14: 5730 years).
  • • Newton's law of cooling: dTdt=−k(T−Ta)\frac{dT}{dt}=-k(T-T_{a}), solution T(t)=Ta+(T0−Ta)e−ktT(t)=T_{a}+(T_{0}-T_{a})e^{-kt}: the gap to the room temperature decays exponentially. Mixing: dAdt=\frac{dA}{dt}= (inflow rate ×\times incoming concentration) −- (outflow rate ×AV\times\frac{A}{V}).
  • • Logistic model: dPdt=kP(1−PM)\frac{dP}{dt}=kP\left(1-\frac{P}{M}\right), solution P(t)=M1+Ae−ktP(t)=\frac{M}{1+Ae^{-kt}} with A=M−P0P0A=\frac{M-P_{0}}{P_{0}}. Equilibria P=0P=0 (unstable) and P=MP=M (stable); maximum growth at the inflection point P=M2P=\frac{M}{2}.

Calculations: solving in quick succession (/20)

Exercise 1: Recognize the type, then solve: five first-order equations

None of these equations comes in its textbook form. Before any computation, rewrite it until you recognize its TYPE: separable dydx=f(x)g(y)\frac{dy}{dx}=f(x)g(y), linear y′+P(x)y=Q(x)y'+P(x)y=Q(x), homogeneous y′=F(yx)y'=F\left(\frac{y}{x}\right), or linear if xx is viewed as a function of yy. Then solve through the given point: the point (x0,y0)(x_{0}, y_{0}) means y(x0)=y0y(x_{0})=y_{0}.

  • a) dydx=e2x+y+ey\dfrac{dy}{dx}=e^{2x+y}+e^{y}, through the point (0,0)(0, 0). Compute y(−12)y\left(-\frac{1}{2}\right) and the right endpoint of the interval on which the solution exists.
  • b) dydx=y+x2sin⁡xx\dfrac{dy}{dx}=\dfrac{y+x^{2}\sin x}{x} for x>0x>0, through the point (π,2π)(\pi, 2\pi). What type of equation is it? Compute y(π2)y\left(\frac{\pi}{2}\right).
  • c) x2 dydx=y2+xy+x2x^{2}\,\dfrac{dy}{dx}=y^{2}+xy+x^{2} for x>0x>0, through the point (1,0)(1, 0). Compute y(eπ/4)y\left(e^{\pi/4}\right) and the right endpoint of the interval on which the solution exists.
  • d) dydx=1x+y2\dfrac{dy}{dx}=\dfrac{1}{x+y^{2}}, through the point (0,0)(0, 0). Show that the equation is neither separable nor linear in yy, but that it becomes linear when xx is viewed as a function of yy. Compute the coordinate xx of the point on the curve where y=1y=1.
  • e) x dydx+y=x2y2x\,\dfrac{dy}{dx}+y=x^{2}y^{2} for x>0x>0, through the point (1,12)(1, \frac{1}{2}). Solve by recognizing the derivative of a product, then compute y(32)y\left(\frac{3}{2}\right) and the right endpoint of the interval on which the solution exists.

Type your answers, the page tells you right or wrong 0/10

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Separable: y=−ln⁡(32−x−e2x2)y=-\ln\left(\frac{3}{2}-x-\frac{e^{2x}}{2}\right), y(−12)≈−0.597y\left(-\frac{1}{2}\right)\approx -0.597, right endpoint ≈0.396\approx 0.396
  • b) Linear: y=x−xcos⁡xy=x-x\cos x, y(π2)=π2≈1.571y\left(\frac{\pi}{2}\right)=\frac{\pi}{2}\approx 1.571
  • c) Homogeneous: y=xtan⁡(ln⁡x)y=x\tan(\ln x), y(eπ/4)=eπ/4≈2.193y\left(e^{\pi/4}\right)=e^{\pi/4}\approx 2.193, endpoint eπ/2≈4.810e^{\pi/2}\approx 4.810
  • d) Linear in xx: x=2ey−y2−2y−2x=2e^{y}-y^{2}-2y-2; for y=1y=1, x=2e−5≈0.437x=2e-5\approx 0.437
  • e) (xy)′=(xy)2(xy)'=(xy)^{2}: y=1x(3−x)y=\frac{1}{x(3-x)} on (0,3)(0, 3), y(32)=49y\left(\frac{3}{2}\right)=\frac{4}{9}
a)

The trap is in the exponent: e2x+y=e2x eye^{2x+y}=e^{2x}\,e^{y}, not e2x+eye^{2x}+e^{y}. Factor out eye^{y}: dydx=ey(e2x+1)\dfrac{dy}{dx}=e^{y}\left(e^{2x}+1\right), a SEPARABLE equation. e−y dy=(e2x+1)dxe^{-y}\,dy=\left(e^{2x}+1\right)dx, so −e−y=e2x2+x+C-e^{-y}=\dfrac{e^{2x}}{2}+x+C. At the point (0,0)(0, 0): −1=12+C-1=\frac{1}{2}+C, C=−32C=-\frac{3}{2}. Hence e−y=32−x−e2x2e^{-y}=\dfrac{3}{2}-x-\dfrac{e^{2x}}{2} and y=−ln⁡(32−x−e2x2)y=-\ln\left(\dfrac{3}{2}-x-\dfrac{e^{2x}}{2}\right). At x=−12x=-\frac{1}{2}: 32+12−e−12=2−12e≈1.816\frac{3}{2}+\frac{1}{2}-\frac{e^{-1}}{2}=2-\frac{1}{2e}\approx 1.816, so y≈−0.597y\approx -0.597. The solution exists only as long as the argument of the logarithm is positive: 3−2x−e2x>03-2x-e^{2x}>0. This function is strictly decreasing, equals 11 at 00 and vanishes between 0.390.39 and 0.400.40; by bisection, the right endpoint is about 0.3960.396. As you approach it, e−y→0e^{-y}\to 0 and y→+∞y\to+\infty: the solution blows up in finite time, although the right-hand side looked harmless.

b)

Split the fraction: dydx=yx+xsin⁡x\dfrac{dy}{dx}=\dfrac{y}{x}+x\sin x. The right-hand side is a SUM of a term in yy and a term in xx: the equation is not separable, it is LINEAR, y′−1x y=xsin⁡xy'-\dfrac{1}{x}\,y=x\sin x. Here P(x)=−1xP(x)=-\frac{1}{x}, so μ=e−ln⁡x=1x\mu=e^{-\ln x}=\dfrac{1}{x}. Sign pitfall: taking μ=x\mu=x by forgetting the minus sign of PP. Multiply: (yx)′=sin⁡x\left(\dfrac{y}{x}\right)'=\sin x, so yx=−cos⁡x+C\dfrac{y}{x}=-\cos x+C and y=−xcos⁡x+Cxy=-x\cos x+Cx. At the point (π,2π)(\pi, 2\pi): 2π=π+Cπ2\pi=\pi+C\pi, so C=1C=1 and y=x−xcos⁡xy=x-x\cos x. Check: y′=1−cos⁡x+xsin⁡xy'=1-\cos x+x\sin x, and yx+xsin⁡x=1−cos⁡x+xsin⁡x\frac{y}{x}+x\sin x=1-\cos x+x\sin x. Finally y(π2)=π2−0=π2≈1.571y\left(\frac{\pi}{2}\right)=\frac{\pi}{2}-0=\frac{\pi}{2}\approx 1.571.

c)

Divide by x2x^{2}: dydx=(yx)2+yx+1\dfrac{dy}{dx}=\left(\dfrac{y}{x}\right)^{2}+\dfrac{y}{x}+1. The right-hand side depends only on yx\frac{y}{x}: a HOMOGENEOUS equation. Set v=yxv=\dfrac{y}{x}, so y=xvy=xv and y′=v+x v′y'=v+x\,v' by the product rule. Forgetting the term vv is the classic error: it makes the equation wrong from the very first line. You get v+x v′=v2+v+1v+x\,v'=v^{2}+v+1, that is x v′=v2+1x\,v'=v^{2}+1, which is separable: dv1+v2=dxx\dfrac{dv}{1+v^{2}}=\dfrac{dx}{x}, arctan⁡v=ln⁡x+C\arctan v=\ln x+C. At the point (1,0)(1, 0): v=0v=0 and ln⁡1=0\ln 1=0, so C=0C=0. Thus v=tan⁡(ln⁡x)v=\tan(\ln x) and y=xtan⁡(ln⁡x)y=x\tan(\ln x). At x=eπ/4x=e^{\pi/4}: ln⁡x=π4\ln x=\frac{\pi}{4}, tan⁡π4=1\tan\frac{\pi}{4}=1, so y=eπ/4≈2.193y=e^{\pi/4}\approx 2.193. The solution lives as long as ln⁡x<π2\ln x<\frac{\pi}{2}, that is x<eπ/2≈4.810x<e^{\pi/2}\approx 4.810, where the tangent blows up.

d)

The right-hand side does not factor as f(x)g(y)f(x)g(y): not separable. And yy appears in the denominator, squared: not linear in yy. But a curve can be read both ways: wherever dydx≠0\frac{dy}{dx}\neq 0, dxdy=1dy/dx=x+y2\dfrac{dx}{dy}=\dfrac{1}{dy/dx}=x+y^{2}. Viewing xx as a function of yy, it is a LINEAR equation: dxdy−x=y2\dfrac{dx}{dy}-x=y^{2}. Integrating factor μ=e−y\mu=e^{-y}: (x e−y)′=y2e−y\left(x\,e^{-y}\right)'=y^{2}e^{-y}. Two integrations by parts give ∫y2e−y dy=−(y2+2y+2) e−y\int y^{2}e^{-y}\,dy=-(y^{2}+2y+2)\,e^{-y}, which you check by differentiating: −(2y+2)e−y+(y2+2y+2)e−y=y2e−y-(2y+2)e^{-y}+(y^{2}+2y+2)e^{-y}=y^{2}e^{-y}. So x e−y=−(y2+2y+2)e−y+Cx\,e^{-y}=-(y^{2}+2y+2)e^{-y}+C, that is x=Cey−y2−2y−2x=Ce^{y}-y^{2}-2y-2. At the point (0,0)(0, 0), meaning x=0x=0 when y=0y=0: 0=C−20=C-2, C=2C=2. The solution is x=2ey−y2−2y−2x=2e^{y}-y^{2}-2y-2, a function of yy and not of xx. For y=1y=1: x=2e−5≈0.437x=2e-5\approx 0.437. Pitfall: reading the condition “through the point (0,0)(0, 0)” backwards, by putting the second coordinate in place of xx; here the point still says x=0x=0 AND y=0y=0.

e)

The left-hand side is exactly the derivative of a product: x y′+y=(xy)′x\,y'+y=(xy)'. The right-hand side, x2y2x^{2}y^{2}, equals (xy)2(xy)^{2}. Setting w=xyw=xy, the equation becomes w′=w2w'=w^{2}, which is separable. For w≠0w\neq 0: dww2=dx\dfrac{dw}{w^{2}}=dx, so −1w=x+C-\dfrac{1}{w}=x+C. At the point (1,12)(1, \frac{1}{2}): w=12w=\frac{1}{2}, so −2=1+C-2=1+C and C=−3C=-3. Thus w=13−xw=\dfrac{1}{3-x} and y=wx=1x(3−x)y=\dfrac{w}{x}=\dfrac{1}{x(3-x)}. Another route, longer: it is a Bernoulli equation, y′+1xy=x y2y'+\frac{1}{x}y=x\,y^{2}, linearized by u=1yu=\frac{1}{y}; it leads to the same result. Then y(32)=132⋅32=49≈0.444y\left(\frac{3}{2}\right)=\dfrac{1}{\frac{3}{2}\cdot\frac{3}{2}}=\dfrac{4}{9}\approx 0.444. The solution exists on (0,3)(0, 3) and blows up at x=3x=3. Pitfall: dividing by xx too early and looking for an integrating factor where it was enough to READ the left-hand side.

Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.

Exercise 2: From second order to first: five equations to integrate twice or to reduce

An equation of order 22 always comes down to two equations of order 11. If the right-hand side depends only on the variable, integrate twice, with two constants. If it contains y′y', set v=y′v=y' and first solve a first-order equation in vv, separable or linear. And if the left-hand side is already a derivative, integrate it in one step. In every case, two conditions fix the two constants.

  • a) d2sdt2=(t+1)2t4\dfrac{d^{2}s}{dt^{2}}=\dfrac{(t+1)^{2}}{t^{4}} for t>0t>0, given that for t=1t=1 you have s=0s=0 and dsdt=0\dfrac{ds}{dt}=0. Find s(t)s(t) and compute s(2)s(2).
  • b) y′′=sin⁡2xy''=\sin^{2}x with y(0)=0y(0)=0 and y′(0)=1y'(0)=1. Compute y(π)y(\pi).
  • c) x2 y′′=1x^{2}\,y''=1 for x>0x>0, with y(1)=0y(1)=0 and y(e)=0y(e)=0. Compute y′(1)y'(1), then the coordinate xx of the point where the tangent line is horizontal.
  • d) y′′+y′x=4y''+\dfrac{y'}{x}=4 for x>0x>0, with y(1)=1y(1)=1 and y′(1)=3y'(1)=3. Compute y(e)y(e).
  • e) y′′=2y y′y''=2y\,y' with y(0)=1y(0)=1 and y′(0)=2y'(0)=2. Compute y(π12)y\left(\frac{\pi}{12}\right) and the positive value of xx at which the solution ceases to exist.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) s(t)=−ln⁡t+1t+16t2+7t3−72s(t)=-\ln t+\frac{1}{t}+\frac{1}{6t^{2}}+\frac{7t}{3}-\frac{7}{2}, s(2)=4124−ln⁡2≈1.015s(2)=\frac{41}{24}-\ln 2\approx 1.015
  • b) y=x24+cos⁡2x−18+xy=\frac{x^{2}}{4}+\frac{\cos 2x-1}{8}+x, y(π)=π24+π≈5.609y(\pi)=\frac{\pi^{2}}{4}+\pi\approx 5.609
  • c) y=−ln⁡x+x−1e−1y=-\ln x+\frac{x-1}{e-1}, y′(1)=2−ee−1≈−0.418y'(1)=\frac{2-e}{e-1}\approx -0.418, horizontal tangent at x=e−1≈1.718x=e-1\approx 1.718
  • d) μ=x\mu=x; y=x2+ln⁡xy=x^{2}+\ln x, y(e)=e2+1≈8.389y(e)=e^{2}+1\approx 8.389
  • e) y=tan⁡(x+π4)y=\tan\left(x+\frac{\pi}{4}\right), y(π12)=3≈1.732y\left(\frac{\pi}{12}\right)=\sqrt{3}\approx 1.732, blow-up at x=π4x=\frac{\pi}{4}
a)

EXPAND the square, then split: (t+1)2t4=t2+2t+1t4=t−2+2t−3+t−4\dfrac{(t+1)^{2}}{t^{4}}=\dfrac{t^{2}+2t+1}{t^{4}}=t^{-2}+2t^{-3}+t^{-4}. First integration: dsdt=−t−1−t−2−t−33+C1\dfrac{ds}{dt}=-t^{-1}-t^{-2}-\dfrac{t^{-3}}{3}+C_{1}. Condition dsdt=0\frac{ds}{dt}=0 at t=1t=1: −1−1−13+C1=0-1-1-\frac{1}{3}+C_{1}=0, so C1=73C_{1}=\frac{7}{3}. Pitfall: a zero velocity does not give C1=0C_{1}=0, since the antiderivative equals −73-\frac{7}{3} at t=1t=1. Second integration, with ∫t−1 dt=ln⁡t\int t^{-1}\,dt=\ln t (and not t00\frac{t^{0}}{0}): s=−ln⁡t+1t+16t2+7t3+C2s=-\ln t+\dfrac{1}{t}+\dfrac{1}{6t^{2}}+\dfrac{7t}{3}+C_{2}. At t=1t=1: 0+1+16+73+C2=00+1+\frac{1}{6}+\frac{7}{3}+C_{2}=0, so C2=−72C_{2}=-\frac{7}{2}. Thus s(t)=−ln⁡t+1t+16t2+7t3−72s(t)=-\ln t+\dfrac{1}{t}+\dfrac{1}{6t^{2}}+\dfrac{7t}{3}-\dfrac{7}{2}, and s(2)=−ln⁡2+12+124+143−72=4124−ln⁡2≈1.015s(2)=-\ln 2+\frac{1}{2}+\frac{1}{24}+\frac{14}{3}-\frac{7}{2}=\frac{41}{24}-\ln 2\approx 1.015.

b)

sin⁡2x\sin^{2}x has no immediate antiderivative: LINEARIZE it, sin⁡2x=1−cos⁡2x2\sin^{2}x=\dfrac{1-\cos 2x}{2}. First integration: y′=x2−sin⁡2x4+C1y'=\dfrac{x}{2}-\dfrac{\sin 2x}{4}+C_{1}. At x=0x=0: C1=1C_{1}=1, since sin⁡0=0\sin 0=0. Second integration: y=x24+cos⁡2x8+x+C2y=\dfrac{x^{2}}{4}+\dfrac{\cos 2x}{8}+x+C_{2}; watch the sign, the antiderivative of −sin⁡2x-\sin 2x is +cos⁡2x2+\frac{\cos 2x}{2}. At x=0x=0: 18+C2=0\frac{1}{8}+C_{2}=0, so C2=−18C_{2}=-\frac{1}{8}, and NOT 00, since cos⁡0=1\cos 0=1. Thus y=x24+cos⁡2x−18+xy=\dfrac{x^{2}}{4}+\dfrac{\cos 2x-1}{8}+x. Check: y′′=12−cos⁡2x2=sin⁡2xy''=\frac{1}{2}-\frac{\cos 2x}{2}=\sin^{2}x. At x=πx=\pi: cos⁡2π=1\cos 2\pi=1, so y(π)=π24+π≈5.609y(\pi)=\dfrac{\pi^{2}}{4}+\pi\approx 5.609. Common pitfall: writing ∫sin⁡2x dx=sin⁡3x3\int\sin^{2}x\,dx=\frac{\sin^{3}x}{3}, whose derivative is sin⁡2xcos⁡x\sin^{2}x\cos x.

c)

Divide by x2x^{2}: y′′=1x2y''=\dfrac{1}{x^{2}}. First integration: y′=−1x+C1y'=-\dfrac{1}{x}+C_{1}; second: y=−ln⁡x+C1x+C2y=-\ln x+C_{1}x+C_{2}. Both conditions are on yy: no constant can be fixed before the end, you have to solve a system. y(1)=0y(1)=0 gives C1+C2=0C_{1}+C_{2}=0. y(e)=0y(e)=0 gives −1+C1e+C2=0-1+C_{1}e+C_{2}=0. Subtracting: C1(e−1)=1C_{1}(e-1)=1, so C1=1e−1≈0.582C_{1}=\dfrac{1}{e-1}\approx 0.582 and C2=−C1C_{2}=-C_{1}. Thus y=−ln⁡x+x−1e−1y=-\ln x+\dfrac{x-1}{e-1}. Then y′(1)=−1+1e−1=2−ee−1≈−0.418y'(1)=-1+\dfrac{1}{e-1}=\dfrac{2-e}{e-1}\approx -0.418: the initial slope was not given, it follows from the two points. The tangent line is horizontal when y′=0y'=0, that is 1x=1e−1\frac{1}{x}=\frac{1}{e-1} and x=e−1≈1.718x=e-1\approx 1.718. Since y′′=1x2>0y''=\frac{1}{x^{2}}>0, it is a minimum, equal to y(e−1)=1−ln⁡(e−1)−1e−1≈−0.123y(e-1)=1-\ln(e-1)-\frac{1}{e-1}\approx -0.123: the curve dips below the axis between its two zeros, consistent with a graph that is concave up.

d)

The right-hand side contains y′y': you cannot integrate twice directly. Set v=y′v=y', so y′′=v′y''=v': v′+1x v=4v'+\dfrac{1}{x}\,v=4, a first-order LINEAR equation in vv. Integrating factor μ=e∫dxx=eln⁡x=x\mu=e^{\int\frac{dx}{x}}=e^{\ln x}=x, and not exe^{x}. You get (x v)′=4x(x\,v)'=4x, so x v=2x2+C1x\,v=2x^{2}+C_{1} and v=2x+C1xv=2x+\dfrac{C_{1}}{x}. Condition y′(1)=3y'(1)=3: 2+C1=32+C_{1}=3, C1=1C_{1}=1. Back to yy: y=x2+ln⁡x+C2y=x^{2}+\ln x+C_{2}, and y(1)=1+C2=1y(1)=1+C_{2}=1 gives C2=0C_{2}=0. Thus y=x2+ln⁡xy=x^{2}+\ln x. Check: y′=2x+1xy'=2x+\frac{1}{x}, y′′=2−1x2y''=2-\frac{1}{x^{2}}, and y′′+y′x=2−1x2+2+1x2=4y''+\frac{y'}{x}=2-\frac{1}{x^{2}}+2+\frac{1}{x^{2}}=4. Finally y(e)=e2+1≈8.389y(e)=e^{2}+1\approx 8.389. You could also multiply the equation by xx: x y′′+y′=(x y′)′x\,y''+y'=(x\,y')', which integrates in one step to x y′=2x2+C1x\,y'=2x^{2}+C_{1}; it is the same integrating factor, read off directly.

e)

The right-hand side 2y y′2y\,y' is the derivative of y2y^{2} by the chain rule. The equation therefore reads (y′)′=(y2)′(y')'=(y^{2})', and a first integration gives y′=y2+C1y'=y^{2}+C_{1}. Condition at x=0x=0: 2=1+C12=1+C_{1}, so C1=1C_{1}=1. Pitfall: setting C1=0C_{1}=0 by reflex, which would give y′=y2y'=y^{2} and contradict y′(0)=2y'(0)=2. You get y′=1+y2y'=1+y^{2}, which is separable: dy1+y2=dx\dfrac{dy}{1+y^{2}}=dx, so arctan⁡y=x+C2\arctan y=x+C_{2}. At x=0x=0: arctan⁡1=π4=C2\arctan 1=\frac{\pi}{4}=C_{2}. Thus y=tan⁡(x+π4)y=\tan\left(x+\dfrac{\pi}{4}\right). Check: y′=1+y2y'=1+y^{2}, then y′′=2y y′y''=2y\,y'. At x=π12x=\frac{\pi}{12}: π12+π4=π3\frac{\pi}{12}+\frac{\pi}{4}=\frac{\pi}{3}, so y=tan⁡π3=3≈1.732y=\tan\frac{\pi}{3}=\sqrt{3}\approx 1.732. The solution ceases to exist when x+π4=π2x+\frac{\pi}{4}=\frac{\pi}{2}, that is x=π4≈0.785x=\frac{\pi}{4}\approx 0.785: an equation with no visible singularity at all produces a solution that blows up in finite time.

Part A: techniques, qualitative analysis and substitutions (/50)

Exercise 3: Verify, separate, solve

The figure shows the family of solution curves of the equation in question d): concentric circles, one for each value of the constant.

  • a) Verify that y=Ce−3x+2y=Ce^{-3x}+2 is a solution of y′+3y=6y'+3y=6 for every constant CC, then find the particular solution satisfying y(0)=5y(0)=5. What does y=2y=2 represent?
  • b) Solve the separable equation dydx=xy\frac{dy}{dx}=xy with y(0)=3y(0)=3.
  • c) Solve dydx=−y2\frac{dy}{dx}=-y^{2} with y(0)=1y(0)=1, and comment on the interval of validity of the solution.
  • d) Solve dydx=−xy\frac{dy}{dx}=-\frac{x}{y} and show that the solution curves are the circles of the figure. Why does the solution remain implicit?

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
Show the solution

Answers

  • a) C=3C=3; equilibrium y=2y=2
  • b) y=3ex2/2y=3e^{x^{2}/2}
  • c) y=11+xy=\frac{1}{1+x} on (−1,∞)(-1,\infty)
  • d) x2+y2=Cx^{2}+y^{2}=C: circles, implicit solution
a)

y′=−3Ce−3xy'=-3Ce^{-3x}, so y′+3y=−3Ce−3x+3Ce−3x+6=6y'+3y=-3Ce^{-3x}+3Ce^{-3x}+6=6: verified for every CC, it is the GENERAL solution (one constant, first order). y(0)=C+2=5y(0)=C+2=5 gives C=3C=3: y=3e−3x+2y=3e^{-3x}+2. The line y=2y=2 is the EQUILIBRIUM solution (y′=0y'=0): all solutions converge to it as x→∞x\to\infty, the exponential only damping out the initial gap.

b)

Separation: dyy=x dx\frac{dy}{y}=x\,dx, then ln⁡∣y∣=x22+C1\ln|y|=\frac{x^{2}}{2}+C_{1}, so y=Cex2/2y=Ce^{x^{2}/2}. With y(0)=3y(0)=3: C=3C=3, hence y=3ex2/2y=3e^{x^{2}/2}. Note in passing that dividing by yy hid the constant solution y=0y=0: a reflex worth keeping, even though the initial condition does not select it here.

c)

dyy2=−dx\frac{dy}{y^{2}}=-dx gives −1y=−x+C1-\frac{1}{y}=-x+C_{1}, that is y=1x+Cy=\frac{1}{x+C}. With y(0)=1y(0)=1: C=1C=1, so y=11+xy=\frac{1}{1+x}. The solution is valid only on (−1,∞)(-1,\infty): at x=−1x=-1 it blows up. A perfectly regular differential equation can produce solutions with a limited lifespan: the interval is part of the answer.

d)

y dy=−x dxy\,dy=-x\,dx, so y22=−x22+C1\frac{y^{2}}{2}=-\frac{x^{2}}{2}+C_{1}, that is x2+y2=Cx^{2}+y^{2}=C: the circles centred at the origin in the figure (radii 2, 3, 4 for C=4,9,16C=4, 9, 16). The solution remains IMPLICIT because no single function y(x)y(x) describes a whole circle: two branches y=±C−x2y=\pm\sqrt{C-x^{2}} are needed. Geometrically, the equation says that the slope −xy-\frac{x}{y} is perpendicular to the radius: the family of circles is the only one with this property at every point.

Exercise 4: The linear equation and the integrating factor

Standard form: y′+P(x) y=Q(x)y'+P(x)\,y=Q(x). The integrating factor μ(x)=e∫P(x)dx\mu(x)=e^{\int P(x)dx} turns the left-hand side into an exact derivative (μy)′(\mu y)'.

  • a) Prove that the method works: show that multiplying the equation by μ=e∫P dx\mu=e^{\int P\,dx} makes the left-hand side equal to (μy)′(\mu y)'.
  • b) Solve y′+2y=6y'+2y=6 with an integrating factor, and recover the structure “equilibrium + exponential”.
  • c) Solve y′+1xy=x2y'+\frac{1}{x}y=x^{2} on (0,∞)(0,\infty) with y(1)=1y(1)=1.
  • d) The RC circuit of physics obeys Rdqdt+qC=ER\frac{dq}{dt}+\frac{q}{C}=E. Put the equation in standard form, identify the time constant, and solve with q(0)=0q(0)=0 for E=12E=12 V, R=1500R=1500 Ω, C=20C=20 μF. What do you recover?

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
Show the solution

Answers

  • a) (μy)′=μ(y′+Py)(\mu y)'=\mu(y'+Py)
  • b) y=3+Ce−2xy=3+Ce^{-2x}
  • c) y=x34+34xy=\frac{x^{3}}{4}+\frac{3}{4x}
  • d) τ=RC=0.03\tau=RC=0.03 s; q=CE(1−e−t/RC)q=CE\left(1-e^{-t/RC}\right)
a)

By construction μ′=Pμ\mu'=P\mu (derivative of a composite exponential). Then (μy)′=μy′+μ′y=μy′+Pμy=μ(y′+Py)(\mu y)'=\mu y'+\mu'y=\mu y'+P\mu y=\mu(y'+Py): multiplying the equation by μ\mu gives exactly (μy)′=μQ(\mu y)'=\mu Q. That is the whole genius of the method: build a tailor-made factor that glues the left-hand side back into a single derivative, which a simple integration then undoes.

b)

P=2P=2, μ=e2x\mu=e^{2x}: (e2xy)′=6e2x(e^{2x}y)'=6e^{2x}, so e2xy=3e2x+Ce^{2x}y=3e^{2x}+C, that is y=3+Ce−2xy=3+Ce^{-2x}. A crystal-clear structure: the equilibrium y=3y=3 (constant solution of y′=0y'=0) plus an exponential transient that dies out at the rate e−2xe^{-2x}. Every linear equation with constant coefficients tells this same story.

c)

P=1xP=\frac{1}{x}, μ=eln⁡x=x\mu=e^{\ln x}=x: the equation becomes (xy)′=x3(xy)'=x^{3}, so xy=x44+Cxy=\frac{x^{4}}{4}+C, that is y=x34+Cxy=\frac{x^{3}}{4}+\frac{C}{x}. With y(1)=14+C=1y(1)=\frac{1}{4}+C=1: C=34C=\frac{3}{4}, hence y=x34+34xy=\frac{x^{3}}{4}+\frac{3}{4x}. The integrating factor is not always an exponential: here it is xx itself, and the check (xy)′=x3(xy)'=x^{3} takes one line.

d)

Divide by RR: dqdt+1RCq=ER\frac{dq}{dt}+\frac{1}{RC}q=\frac{E}{R}: linear with constant coefficients, with P=1RCP=\frac{1}{RC}: the time constant is τ=RC=(1500)(20×10−6)=0.030\tau=RC=(1500)(20\times 10^{-6})=0.030 s. Solution with q(0)=0q(0)=0: q(t)=CE(1−e−t/RC)=2.4×10−4(1−e−t/0.03)q(t)=CE\left(1-e^{-t/RC}\right)=2.4\times 10^{-4}\left(1-e^{-t/0.03}\right) C. You recover EXACTLY the charging of the capacitor from the physics course 203-SN2-RE (formerly 203-NYB): same equation, same 63% at t=τt=\tau, same equilibrium q∞=CEq_{\infty}=CE. The mathematics of the integrating factor and the physics of the RC circuit are one and the same chapter.

Exercise 5: Exponential growth and decay

The model dNdt=kN\frac{dN}{dt}=kN (rate of change proportional to the amount present) governs radioactive decay, populations with unlimited resources and continuously compounded interest. Half-life of carbon 14: 5730 years.

  • a) Solve the equation by separation and express kk in terms of the half-life. A fossil contains only 20% of its initial carbon 14: how old is it?
  • b) A bacterial culture doubles every 3 hours. How long does it take to grow by a factor of 1000? First give a mental estimate using doublings, then the exact value.
  • c) A principal of 5000 dollars is invested at 4% interest compounded CONTINUOUSLY (A′=0.04AA'=0.04A). Value after 10 years? Doubling time? Compare with the financiers' “rule of 72” (72/rate in %72/\text{rate in }\%).
  • d) Name two assumptions of the exponential model that always end up breaking down in a real population, and what the model then becomes.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
Show the solution

Answers

  • a) k=−ln⁡25730k=-\frac{\ln 2}{5730}; age ≈13,300\approx 13{,}300 years
  • b) ≈29.9\approx 29.9 h
  • c) 74597459 dollars; doubling 17.317.3 years
  • d) Unlimited resources and constant rate: logistic
a)

dNN=k dt\frac{dN}{N}=k\,dt gives N(t)=N0ektN(t)=N_{0}e^{kt}. Half-life: ekt1/2=12e^{kt_{1/2}}=\frac{1}{2}, so k=−ln⁡2t1/2=−ln⁡25730k=-\frac{\ln 2}{t_{1/2}}=-\frac{\ln 2}{5730} per year. Age of the fossil: ekt=0.20e^{kt}=0.20 gives t=ln⁡5ln⁡2×5730≈13,300t=\frac{\ln 5}{\ln 2}\times 5730\approx 13{,}300 years: the fossil has gone through a little more than two half-lives (two half-lives would leave 25%), and the logarithm pins down the “a little more”.

b)

Estimate: 210=1024≈10002^{10}=1024\approx 1000, so about 10 doublings, that is ≈30\approx 30 hours. Exactly: k=ln⁡23k=\frac{\ln 2}{3} and t=ln⁡1000k=3 ln⁡1000ln⁡2=3log⁡21000≈29.9t=\frac{\ln 1000}{k}=3\,\frac{\ln 1000}{\ln 2}=3\log_{2}1000\approx 29.9 h. The mental estimate through 210≈1032^{10}\approx 10^{3} is an exam tool in its own right: it checks the order of magnitude before any computation.

c)

A(10)=5000e0.4≈7459A(10)=5000e^{0.4}\approx 7459 dollars. Doubling: ln⁡20.04≈17.3\frac{\ln 2}{0.04}\approx 17.3 years. Rule of 72: 724=18\frac{72}{4}=18 years: the financiers' rule is an approximation (calibrated for annual compounding) of the true ln⁡2r≈69.3r in %\frac{\ln 2}{r}\approx\frac{69.3}{r\text{ in }\%}; for continuous compounding, the “exact rule” would be the rule of 69.

d)

The model assumes UNLIMITED resources (food, space) and a CONSTANT rate kk (no competition, no predation, no saturation). In any real population, density eventually slows growth down: the effective rate decreases with NN. The minimal patch is precisely the logistic model of exercise 10: replace kk with k(1−PM)k\left(1-\frac{P}{M}\right), and the exponential explosion turns into a plateau.

Exercise 6: Read before solving: slope field, phase line and Euler's method

Many differential equations have no solution that can be written down, and yet their behaviour can be read without solving them. An AUTONOMOUS equation y′=f(y)y'=f(y), where the slope depends only on the value of yy, is entirely described by the sign of ff: that is the meaning of the “read first” reflex.

0.511.522.53-0.50.511.522.533.544.55
  • a) For the autonomous equation y′=(y−1)(y−3)y'=(y-1)(y-3), find the equilibrium solutions, then draw the PHASE LINE: the sign of y′y' on each interval. Classify each equilibrium as stable or unstable.
  • b) Without solving, describe what happens to a solution starting from y(0)=0y(0)=0, from y(0)=2y(0)=2 and from y(0)=4y(0)=4. Compare your description with the curves of the figure.
  • c) Most equations have no exact solution: EULER's method advances step by step through yn+1=yn+h f(xn,yn)y_{n+1}=y_{n}+h\,f(x_{n},y_{n}). Apply it to y′=yy'=y, y(0)=1y(0)=1, with step h=0.1h=0.1, to estimate y(0.2)y(0.2); compare with the exact value e0.2e^{0.2} and explain the DIRECTION of the error.
  • d) Can two distinct solutions of the same autonomous equation cross? Deduce why the phase line is enough to predict everything, then recall, with y′=y2y'=y^{2}, that a solution can cease to exist in finite time.

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
Show the solution

Answers

  • a) y=1y=1 stable, y=3y=3 unstable
  • b) 00 and 22 towards 11; 44 to infinity
  • c) 1.211.21 against 1.22141.2214: underestimate
  • d) Never any crossing; blow-up possible in finite time
a)

The equilibria make y′y' zero: (y−1)(y−3)=0(y-1)(y-3)=0 gives y=1y=1 and y=3y=3, two horizontal lines; the lower two curves of the figure level off along the first one. Phase line, from the sign of the product: for y<1y<1, both factors are negative, their product is POSITIVE, so y′>0y'>0 and the solution rises; for 1<y<31<y<3, one factor changes sign, the product is NEGATIVE, y′<0y'<0, the solution falls; for y>3y>3, both factors are positive, y′>0y'>0, the solution rises. Classification: around y=1y=1, the arrows converge (rising below, falling above), so y=1y=1 is STABLE; around y=3y=3, the arrows diverge (falling below, rising above), so y=3y=3 is UNSTABLE. This whole analysis holds without writing a single antiderivative.

b)

Starting from y(0)=0y(0)=0: you are below 1, so y′>0y'>0, the solution increases, and it is attracted by the stable equilibrium: it rises towards y=1y=1 without ever reaching it, flattening out, like the lower curve of the figure. Starting from y(0)=2y(0)=2: you are between the two equilibria, y′<0y'<0, the solution DECREASES and it too joins y=1y=1, from above: the middle curve of the figure. Starting from y(0)=4y(0)=4: you are above 3, y′>0y'>0, the solution ESCAPES upwards, moving away from the unstable equilibrium, like the upper curve that shoots off to infinity. The split happens exactly at y=3y=3: below it, everything falls back towards 1; above it, everything diverges. The unstable equilibrium is the watershed, and that is the complete qualitative content of the equation.

c)

Euler's method with f(x,y)=yf(x,y)=y, so yn+1=yn+0.1 yn=1.1 yny_{n+1}=y_{n}+0.1\,y_{n}=1.1\,y_{n}. First step: y1=1.1×1=1.1y_{1}=1.1\times 1=1.1, an approximation of y(0.1)y(0.1). Second step: y2=1.1×1.1=1.21y_{2}=1.1\times 1.1=1.21, an approximation of y(0.2)y(0.2). Exact value: e0.2≈1.22140e^{0.2}\approx 1.22140. The error is about 0.01140.0114, and it is an UNDERESTIMATE. The direction of the error has a geometric explanation: Euler advances along the TANGENT LINE, keeping the slope constant over the whole step, whereas the true solution y=exy=e^{x} is concave up and bends upwards. The tangent line therefore stays below the curve, and each step falls slightly behind, a lag that accumulates. Halving the step, h=0.05h=0.05 over four steps gives 1.054≈1.215511.05^{4}\approx 1.21551, noticeably closer: Euler's error decreases in proportion to the step, which makes it a safe but slow method, exactly like the rectangle sums of the numerical integration chapter, of which it is a cousin.

d)

No: two distinct solutions of an autonomous equation (with a sufficiently regular right-hand side) can NEVER cross, by the existence and uniqueness theorem. If two solution curves went through the same point, they would have the same slope f(y)f(y) there and would coincide on either side: they would be the same solution. In particular, a solution cannot CROSS an equilibrium line, since that line is itself a solution: it can only approach it asymptotically. That is precisely what gives the phase line its power of complete prediction: the equilibria cut the plane into sealed horizontal strips, and in each strip the sign of y′y' imposes a single direction of variation, with no surprise possible. One caveat, though: “not escaping towards another equilibrium” does not forbid escaping to infinity, and that can happen in FINITE time. The equation y′=y2y'=y^{2} with y(0)=1y(0)=1 has the solution y=11−xy=\frac{1}{1-x}, a cousin of the solution y=11+xy=\frac{1}{1+x} of y′=−y2y'=-y^{2} met in exercise 3: it blows up at x=1x=1 and ceases to exist beyond. The phase line correctly says “it rises”, but it does not say how fast, and here the rise is so violent that the solution reaches infinity in one unit of time. Reading the equation tells you the DIRECTION, never by itself the lifespan.

Exercise 7: Substitutions: making linear what was not

Separable and linear do not cover everything. Two important families reduce to them through a well-chosen CHANGE OF FUNCTION: homogeneous equations, through v=yxv=\frac{y}{x}, and Bernoulli equations, through u=y1−nu=y^{1-n}. The second one has an unexpected virtue: it proves the logistic solution taken for granted without proof in Part B.

  • a) An equation is HOMOGENEOUS if y′y' depends only on the ratio yx\frac{y}{x}. Solve x y′=x+yx\,y'=x+y with the substitution v=yxv=\frac{y}{x}, explaining in detail why it makes the equation separable.
  • b) A BERNOULLI equation has the form y′+P(x)y=Q(x)yny'+P(x)y=Q(x)y^{n}. Solve y′+y=y2y'+y=y^{2} with y(0)=12y(0)=\frac{1}{2} using the substitution u=y−1u=y^{-1}, which linearizes it.
  • c) Show that the logistic equation dPdt=kP(1−PM)\frac{dP}{dt}=kP\left(1-\frac{P}{M}\right) is a Bernoulli equation, and use the substitution u=1Pu=\frac{1}{P} to recover the solution P(t)=M1+Ae−ktP(t)=\frac{M}{1+Ae^{-kt}} taken for granted in exercise 10.
  • d) The ORTHOGONAL TRAJECTORIES of a family of curves cross each of them at right angles. Confirm that the lines y=Kxy=Kx are orthogonal to the circles x2+y2=Cx^{2}+y^{2}=C of exercise 3, then find the orthogonal trajectories of the parabolas y=Cx2y=Cx^{2}.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
Show the solution

Answers

  • a) y=x(ln⁡∣x∣+C)y=x(\ln|x|+C)
  • b) y=11+exy=\frac{1}{1+e^{x}}
  • c) Bernoulli: P=M1+Ae−ktP=\frac{M}{1+Ae^{-kt}}
  • d) Lines y=Kxy=Kx; ellipses x2+2y2=Cx^{2}+2y^{2}=C
a)

Rewrite in standard form: y′=x+yx=1+yxy'=\frac{x+y}{x}=1+\frac{y}{x}, where the right-hand side indeed depends only on yx\frac{y}{x}, which signals a homogeneous equation. Set v=yxv=\frac{y}{x}, so y=vxy=vx and, by the product rule, y′=v+x v′y'=v+x\,v'. The equation becomes v+x v′=1+vv+x\,v'=1+v, and the term vv cancels on both sides: x v′=1x\,v'=1. That is the whole magic of the substitution: it removes the part that mixed xx and yy, and what remains is SEPARABLE. Isolate: dv=dxxdv=\frac{dx}{x}, hence v=ln⁡∣x∣+Cv=\ln\left|x\right|+C, then go back to yy: y=vx=x(ln⁡∣x∣+C)y=vx=x\left(\ln\left|x\right|+C\right). Check: y′=ln⁡∣x∣+C+x⋅1x=ln⁡∣x∣+C+1y'=\ln\left|x\right|+C+x\cdot\frac{1}{x}=\ln\left|x\right|+C+1, and 1+yx=1+ln⁡∣x∣+C1+\frac{y}{x}=1+\ln\left|x\right|+C: identical. The general principle is worth remembering: v=yxv=\frac{y}{x} turns every homogeneous equation into a separable equation, without exception.

b)

Here n=2n=2; the Bernoulli substitution is u=y1−n=y−1=1yu=y^{1-n}=y^{-1}=\frac{1}{y}, so u′=−y−2y′u'=-y^{-2}y'. First divide the equation by y2y^{2} to make these pieces appear: y′y2+1y=1\frac{y'}{y^{2}}+\frac{1}{y}=1, that is −u′+u=1-u'+u=1, or u′−u=−1u'-u=-1. The equation in uu is LINEAR, which was the whole point of the manoeuvre. Integrating factor μ=e−x\mu=e^{-x}: (ue−x)′=−e−x\left(u e^{-x}\right)'=-e^{-x}, so ue−x=e−x+Cu e^{-x}=e^{-x}+C, that is u=1+Cexu=1+Ce^{x}. Going back to y=1u=11+Cexy=\frac{1}{u}=\frac{1}{1+Ce^{x}}. Initial condition y(0)=12y(0)=\frac{1}{2}: 11+C=12\frac{1}{1+C}=\frac{1}{2} gives C=1C=1, hence y=11+exy=\frac{1}{1+e^{x}}. Numerical check: y(0)=0.5y(0)=0.5 and y′(0.5)=−0.235y'(0.5)=-0.235, which matches y2−yy^{2}-y evaluated at the same point. Along the way you recognize the shape of a decreasing logistic solution, which is no accident, as the next question shows.

c)

Expand the right-hand side: dPdt=kP−kMP2\frac{dP}{dt}=kP-\frac{k}{M}P^{2}, that is dPdt−kP=−kMP2\frac{dP}{dt}-kP=-\frac{k}{M}P^{2}. It is exactly a Bernoulli equation in the unknown PP, with n=2n=2: the constant −k-k plays the role of the coefficient of the unknown in the standard form, and −kM-\frac{k}{M} the role of the coefficient of the power (careful not to confuse the population PP with the coefficient named P(x)P(x) in the standard form). So apply the same substitution as in b): u=1Pu=\frac{1}{P}, so u′=−P′P2u'=-\frac{P'}{P^{2}}. Dividing the equation by P2P^{2}: P′P2−kP=−kM\frac{P'}{P^{2}}-\frac{k}{P}=-\frac{k}{M}, that is −u′−ku=−kM-u'-ku=-\frac{k}{M}, or u′+ku=kMu'+ku=\frac{k}{M}. A linear equation, integrating factor μ=ekt\mu=e^{kt}: (uekt)′=kMekt\left(u e^{kt}\right)'=\frac{k}{M}e^{kt}, so uekt=1Mekt+Cu e^{kt}=\frac{1}{M}e^{kt}+C, that is u=1M+Ce−ktu=\frac{1}{M}+Ce^{-kt}. Going back to P=1u=11M+Ce−kt=M1+CMe−ktP=\frac{1}{u}=\frac{1}{\frac{1}{M}+Ce^{-kt}}=\frac{M}{1+CMe^{-kt}}. Setting A=CMA=CM, you get exactly P(t)=M1+Ae−ktP(t)=\frac{M}{1+Ae^{-kt}}, the formula taken for granted in exercise 10. The constant AA is fixed by P(0)=P0P(0)=P_{0}, which gives back A=M−P0P0A=\frac{M-P_{0}}{P_{0}}; with M=6000M=6000 and P0=500P_{0}=500, you recover A=11A=11. The logistic solution did not fall from the sky: it is a Bernoulli equation in disguise, and the substitution builds it from start to finish.

d)

The principle of orthogonal trajectories: at a given point, the curve you are looking for must have a slope equal to the NEGATIVE RECIPROCAL of the slope of the original family, since two perpendicular directions have slopes whose product is −1-1. The case of the circles: the family x2+y2=Cx^{2}+y^{2}=C satisfies, by implicit differentiation, 2x+2yy′=02x+2yy'=0, so y′=−xyy'=-\frac{x}{y}, the very equation of exercise 3. The orthogonal trajectories then have slope −1−x/y=yx-\frac{1}{-x/y}=\frac{y}{x}, hence the equation y′=yxy'=\frac{y}{x}, which is separable: dyy=dxx\frac{dy}{y}=\frac{dx}{x} gives ln⁡∣y∣=ln⁡∣x∣+C1\ln\left|y\right|=\ln\left|x\right|+C_{1}, that is y=Kxy=Kx. These are the lines through the origin, which confirms and generalizes the remark of exercise 3: a radius always meets its circle at a right angle. You can check that the product of the slopes at a point such as (2,3)(2, 3) is (−23)(32)=−1\left(-\frac{2}{3}\right)\left(\frac{3}{2}\right)=-1. The case of the parabolas y=Cx2y=Cx^{2}: first eliminate the constant, C=yx2C=\frac{y}{x^{2}}, then differentiate y′=2Cx=2yxy'=2Cx=\frac{2y}{x}, the slope of the family. The orthogonal trajectories therefore have slope −x2y-\frac{x}{2y}, hence 2y dy=−x dx2y\,dy=-x\,dx, which integrates to y2=−x22+C1y^{2}=-\frac{x^{2}}{2}+C_{1}, that is x2+2y2=Cx^{2}+2y^{2}=C: a family of ELLIPSES. Check the orthogonality at a point such as (2,1)(2, 1): the parabola has slope 2⋅12=1\frac{2\cdot 1}{2}=1 there, the ellipse −22⋅1=−1-\frac{2}{2\cdot 1}=-1, and the product is indeed −1-1. These orthogonal networks are not a curiosity: they are the field lines and the equipotentials of electrostatics, or the isotherms and the heat flow lines, always perpendicular, and always obtained by this same flip of the slope.

Part B: modelling problems (/50)

Exercise 8: Newton's law of cooling: the coffee and the stopwatch

A coffee served at 90 °C sits in a room at 20 °C; five minutes later, it is at 70 °C. Newton's law states that the rate of cooling is proportional to the gap with the room temperature: dTdt=−k(T−20)\frac{dT}{dt}=-k(T-20). The figure shows the exact curve.

102030405060102030405060708090100(5, 70)t (min)T (°C)
  • a) Interpret the equation: what does the minus sign say physically, and why is the cooling fast at first and then sluggish? Identify the equilibrium solution.
  • b) Solve the equation by separation and give the general form T(t)=20+Ce−ktT(t)=20+Ce^{-kt}, then fix CC with the initial temperature.
  • c) Find kk from the measurement “70 °C at 5 minutes”, then compute when the coffee reaches 40 °C, a comfortable drinking temperature.
  • d) How long does it take for the coffee to come within one degree of the room temperature? Conclude about the asymptote of the figure, and explain how the same law lets forensic pathologists estimate a time of death.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
Show the solution

Answers

  • a) Gap that melts away; equilibrium 2020 °C
  • b) T=20+70e−ktT=20+70e^{-kt}
  • c) k≈0.0673k\approx 0.0673; 4040 °C at 18.618.6 min
  • d) ≈63\approx 63 min; asymptote never reached
a)

The minus sign says that HOT coffee (T>20T>20) cools down (T′<0T'<0), and that an object colder than the room would warm up: nature erases gaps. The rate is proportional to the gap: at 90 °C, the gap of 70 degrees forces brisk cooling; at 30 °C, the gap of 10 makes it seven times slower: hence the steep start and the dragging end of the curve. Equilibrium: T=20T=20, the room temperature, where T′=0T'=0: the only possible outcome.

b)

With u=T−20u=T-20: duu=−k dt\frac{du}{u}=-k\,dt, so u=Ce−ktu=Ce^{-kt} and T(t)=20+Ce−ktT(t)=20+Ce^{-kt}. Initial condition T(0)=90T(0)=90: C=70C=70, the initial GAP: T(t)=20+70e−ktT(t)=20+70e^{-kt}. The solution reads in one sentence: the gap to the room temperature, 70 degrees at the start, melts away exponentially.

c)

T(5)=70T(5)=70 gives 20+70e−5k=7020+70e^{-5k}=70, that is e−5k=5070=57e^{-5k}=\frac{50}{70}=\frac{5}{7}: k=15ln⁡75≈0.0673k=\frac{1}{5}\ln\frac{7}{5}\approx 0.0673 min−1^{-1}. For 40 °C: 70e−kt=2070e^{-kt}=20, so t=ln⁡3.5k≈18.6t=\frac{\ln 3.5}{k}\approx 18.6 minutes: that leaves a quarter of an hour of patience after the five-minute measurement, consistent with the figure (where the curve crosses the 40 °C gridline).

d)

One degree of gap: 70e−kt=170e^{-kt}=1, so t=ln⁡70k≈63t=\frac{\ln 70}{k}\approx 63 minutes. And the exact equality T=20T=20 NEVER happens: the asymptote of the figure is reached only at infinity, even though a real thermometer no longer sees the difference after an hour. Forensic pathologists turn the reasoning around: the body (37 °C at death) cools according to the same law; two temperature readings at known times give kk and allow you to trace the curve back to the moment it was at 37: the time of death, estimated with a differential equation.

Exercise 9: The brine tank: the equilibrium that erases the past

A tank contains 100 L of water in which 5 kg of salt is dissolved. Brine at 0.2 kg/L is poured in at a rate of 5 L/min, and the mixture, assumed uniform at every instant, flows out at the same rate of 5 L/min. Let A(t)A(t) be the mass of salt (kg) in the tank.

The figure below shows the situation; it is not to scale.

100 LA(t) kg of salt5 L/min at 0.2 kg/L5 L/min
  • a) Set up the differential equation satisfied by A(t)A(t) (balance: inflow minus outflow), and check that the volume stays constant.
  • b) Identify the equilibrium solution and interpret it physically BEFORE solving.
  • c) Solve with A(0)=5A(0)=5 and compute the mass of salt after 10 minutes.
  • d) What happens to A(t)A(t) as t→∞t\to\infty, and in what sense does the limit “forget” the initial condition? After how long does the mass reach 19 kg?

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
Show the solution

Answers

  • a) A′=1−A20A'=1-\frac{A}{20}
  • b) Equilibrium 2020 kg, stable
  • c) A=20−15e−t/20A=20-15e^{-t/20}; A(10)≈10.9A(10)\approx 10.9 kg
  • d) Limit 2020 kg; 1919 kg at 5454 min
a)

Inflow: 55 L/min × 0.2\times\,0.2 kg/L =1=1 kg/min, constant. Outflow: each litre that leaves carries the CURRENT concentration A100\frac{A}{100} kg/L, that is 5×A100=A205\times\frac{A}{100}=\frac{A}{20} kg/min. Balance: dAdt=1−A20\frac{dA}{dt}=1-\frac{A}{20}. The volume, fed and drained at 5 L/min, stays at 100 L: this is what keeps the equation linear with constant coefficients (different flow rates would give a variable volume, the hard version of the problem).

b)

dAdt=0\frac{dA}{dt}=0 for A=20A=20 kg. A crystal-clear interpretation: at equilibrium, the tank has everywhere the concentration of the INCOMING brine, 0.20.2 kg/L ×\times 100 L =20=20 kg: what comes in equals what goes out. Below 20, A′>0A'>0 (the tank gains salt); above, A′<0A'<0: the equilibrium is STABLE, everything leads to it.

c)

Separable (or linear) equation: A(t)=20+(A0−20)e−t/20=20−15e−t/20A(t)=20+(A_{0}-20)e^{-t/20}=20-15e^{-t/20}: the gap to equilibrium, −15-15 kg at the start, melts away with the time constant 20 min. A(10)=20−15e−0.5≈10.9A(10)=20-15e^{-0.5}\approx 10.9 kg. Check: at t=10t=10 min, that is half a time constant, the fraction of the way covered is 1−e−0.5≈391-e^{-0.5}\approx 39%, and 5+0.39×15≈10.95+0.39\times 15\approx 10.9 kg: the two readings agree (the classic 63%, for their part, would be reached at t=τ=20t=\tau=20 min).

d)

e−t/20→0e^{-t/20}\to 0: A→20A\to 20 kg, the equilibrium limit, WHATEVER the initial mass: starting from 0 kg or from 50 kg, all tanks end up at 20 kg, only the route differs. The exponential term, which carries all the memory of A0A_{0}, dies out: the steady state erases the past. For 19 kg: 15e−t/20=115e^{-t/20}=1, so t=20ln⁡15≈54t=20\ln 15\approx 54 minutes: getting within one kilogram of equilibrium takes almost an hour, the usual exponential tail.

Exercise 10: The logistic model: the exponential tamed

A lake can support at most M=6000M=6000 fish. 500 fish are introduced, and the population follows the logistic model dPdt=kP(1−PM)\frac{dP}{dt}=kP\left(1-\frac{P}{M}\right) with k=0.4k=0.4 per year. The figure shows the exact solution.

24681012141618201000200030004000500060007000M = 6000t (years)P
  • a) Interpret the equation: what does the factor (1−PM)\left(1-\frac{P}{M}\right) do when PP is small, then close to MM? Find the equilibrium solutions and their stability.
  • b) Take for granted the solution P(t)=M1+Ae−ktP(t)=\frac{M}{1+Ae^{-kt}} with A=M−P0P0A=\frac{M-P_{0}}{P_{0}}: check the initial condition, compute AA, and give the population after 5 years.
  • c) Show that the growth is MAXIMUM when P=M2P=\frac{M}{2}, compute the time at which the lake reaches 3000 fish, and relate it to the figure.
  • d) Compare the beginning of the curve with a pure exponential and its end with the equilibrium. Why is the logistic curve said to be “the exponential that has learned that limits exist”? Name two fields where this model is genuinely used.

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
Show the solution

Answers

  • a) 00 unstable, MM stable
  • b) A=11A=11; P(5)≈2410P(5)\approx 2410
  • c) Maximum growth at 30003000, around 6.06.0 years
  • d) Exponential at first, plateau at the end
a)

When P≪MP\ll M, the factor is almost 1: the equation becomes P′=kPP'=kP again, the exponential growth of abundant resources. When P→MP\to M, the factor tends to 0: growth is choked off, the environment is full. Equilibria: P=0P=0 and P=MP=M. Between them, P′>0P'>0: every population moves away from 0 (UNSTABLE: the slightest introduction takes off) and rises towards MM (STABLE: it is approached from below, and an overpopulation P>MP>M would come back down to it, P′<0P'<0).

b)

At t=0t=0: P(0)=M1+A=M1+M−P0P0=MP0M=P0P(0)=\frac{M}{1+A}=\frac{M}{1+\frac{M-P_{0}}{P_{0}}}=\frac{MP_{0}}{M}=P_{0} ✓. Here A=6000−500500=11A=\frac{6000-500}{500}=11. After 5 years: P(5)=60001+11e−2=60001+1.489≈2410P(5)=\frac{6000}{1+11e^{-2}}=\frac{6000}{1+1.489}\approx 2410 fish: the population has almost quintupled but is still below half the capacity of the lake.

c)

P′=kP(1−PM)P'=kP\left(1-\frac{P}{M}\right) is, for fixed kk, a parabola in PP that vanishes at 0 and MM: its maximum is at the vertex, P=M2P=\frac{M}{2}. This is the INFLECTION POINT of the curve: there the population switches from accelerating to slowing down. Time: M1+Ae−kt=M2  ⟺  Ae−kt=1  ⟺  t=ln⁡Ak=ln⁡110.4≈6.0\frac{M}{1+Ae^{-kt}}=\frac{M}{2}\iff Ae^{-kt}=1\iff t=\frac{\ln A}{k}=\frac{\ln 11}{0.4}\approx 6.0 years: exactly the vertical gridline of the figure where the curve crosses the 3000 level. For a fishery, it is the year of the maximum sustainable harvest.

d)

At the start (Ae−kt≫1A e^{-kt}\gg 1): P≈MAekt=P0ektP\approx\frac{M}{A}e^{kt}=P_{0}e^{kt} to a good approximation: indistinguishable from the exponential, as on the figure before year 3. At the end: P→MP\to M, flattening out below the asymptote, which the curve never crosses. The logistic IS Malthus's exponential corrected by the carrying capacity: same beginnings, opposite fates. It genuinely models closed-environment populations (bacteria in a Petri dish, the fish of a lake), the spread of epidemics and rumours (the number of people “not yet reached” plays the role of the brake), the cumulative sales of a product that saturates its market, or an autocatalytic reaction.

Exercise 11: Falling with air resistance and terminal velocity

In ideal free fall, the velocity would grow without bound. The air opposes it with a drag force, here proportional to the velocity: Newton's second law gives mdvdt=mg−kvm\frac{dv}{dt}=mg-kv. A skydiver of mass m=80m=80 kg has a drag coefficient k=16k=16 kg/s; take g=9.8g=9.8 m/s².

The figure below shows the situation; it is not to scale.

weight mgdrag kvv
  • a) Without solving, find the TERMINAL VELOCITY, the one at which the acceleration vanishes. Explain why the fall starts briskly and then levels off, and relate this behaviour to an equilibrium solution.
  • b) Put the equation in standard form, identify the time constant τ=mk\tau=\frac{m}{k}, and solve with v(0)=0v(0)=0. Compute the velocity at t=τt=\tau, then at t=10t=10 s.
  • c) After how long does the skydiver reach 90% of the terminal velocity? Then, by integrating v(t)v(t), compute the distance covered during the first 10 seconds.
  • d) Compare with free fall without air (v=gtv=gt) at t=10t=10 s, and explain why the terminal velocity “forgets” the initial velocity. What changes when the parachute opens, multiplying kk by a large factor?

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
Show the solution

Answers

  • a) vlim⁡=49v_{\lim}=49 m/s
  • b) τ=5\tau=5 s; 30.9730.97 then 42.3742.37 m/s
  • c) 11.511.5 s; 278278 m
  • d) 9898 m/s without air; the transient dies out
a)

Terminal velocity is reached when the net force vanishes, that is when the drag exactly balances the weight: mg−kv=0mg-kv=0, so vlim⁡=mgk=80×9.816=49v_{\lim}=\frac{mg}{k}=\frac{80\times 9.8}{16}=49 m/s, about 176 km/h, a realistic order of magnitude for a skydiver spread-eagled before opening the parachute. The behaviour can be read without computation: at the start, at zero velocity, the drag is zero and the acceleration is the full gg, the fall is brisk; as vv increases, the term −kv-kv eats into the weight and the acceleration decreases; at 4949 m/s, there is no acceleration left at all. This is exactly an EQUILIBRIUM solution of the equation, v=vlim⁡v=v_{\lim}, towards which every fall converges, just as the coffee settled to room temperature in exercise 8. The differential equation of linear drag and that of Newton's law of cooling are, up to a change of names, the same equation.

b)

Divide by mm: dvdt=g−kmv\frac{dv}{dt}=g-\frac{k}{m}v, that is dvdt+kmv=g\frac{dv}{dt}+\frac{k}{m}v=g, linear with constant coefficients with P=kmP=\frac{k}{m}. The time constant is τ=mk=8016=5\tau=\frac{m}{k}=\frac{80}{16}=5 s. Solve with an integrating factor, or directly with the structure “equilibrium plus transient”: v(t)=vlim⁡+Ce−t/τv(t)=v_{\lim}+Ce^{-t/\tau}, and v(0)=0v(0)=0 forces C=−vlim⁡C=-v_{\lim}, hence v(t)=vlim⁡(1−e−t/τ)=49(1−e−t/5)v(t)=v_{\lim}\left(1-e^{-t/\tau}\right)=49\left(1-e^{-t/5}\right). At t=τ=5t=\tau=5 s: v=49(1−e−1)≈49×0.632=30.97v=49\left(1-e^{-1}\right)\approx 49\times 0.632=30.97 m/s, the classic 63% of the final value. At t=10t=10 s, that is two time constants: v=49(1−e−2)≈49×0.865=42.37v=49\left(1-e^{-2}\right)\approx 49\times 0.865=42.37 m/s, already very close to the limit.

c)

You want v=0.9 vlim⁡v=0.9\,v_{\lim}, so 1−e−t/τ=0.91-e^{-t/\tau}=0.9, that is e−t/τ=0.1e^{-t/\tau}=0.1, hence t=τln⁡10=5ln⁡10≈11.5t=\tau\ln 10=5\ln 10\approx 11.5 s. Distance covered: integrate the velocity, x(t)=∫0tvlim⁡(1−e−s/τ)ds=vlim⁡[s+τe−s/τ]0t=vlim⁡(t−τ(1−e−t/τ))x(t)=\int_{0}^{t}v_{\lim}\left(1-e^{-s/\tau}\right)ds=v_{\lim}\left[s+\tau e^{-s/\tau}\right]_{0}^{t}=v_{\lim}\left(t-\tau\left(1-e^{-t/\tau}\right)\right). At t=10t=10 s: x=49(10−5(1−e−2))=49(10−5×0.8647)=49×5.677≈278x=49\left(10-5\left(1-e^{-2}\right)\right)=49\left(10-5\times 0.8647\right)=49\times 5.677\approx 278 m. You can check consistency by differentiating: x′(10)≈42.37x'(10)\approx 42.37 m/s, which indeed reproduces v(10)v(10), as it should.

d)

Without air, the velocity would be v=gt=9.8×10=98v=gt=9.8\times 10=98 m/s at t=10t=10 s, exactly TWICE the actual terminal velocity, and it would keep growing indefinitely. Drag changes the picture radically: instead of a line that rises forever, you get a curve that levels off. As for forgetting the initial velocity, it comes from the transient term Ce−t/τCe^{-t/\tau}: it, and it alone, carries the memory of v(0)v(0), and it dies out exponentially. Two skydivers released at different velocities converge to the same 4949 m/s, only the way of getting there differs, exactly as the brine tank forgot its initial mass of salt in exercise 9. Opening the parachute abruptly multiplies kk, say by a factor of 15: the terminal velocity mgk\frac{mg}{k} is divided by as much and drops to a few metres per second, while the time constant mk\frac{m}{k} drops too, so that the new, slow terminal velocity is reached within a handful of seconds. That is the whole job of the parachute: bring vlim⁡v_{\lim} down to a value that is survivable on landing. An honest caveat to finish: at high speeds, real drag behaves more like v2v^{2} than vv, which makes the equation separable but nonlinear and gives a terminal velocity in mg/k\sqrt{mg/k}; the linear model nonetheless captures the essence of the phenomenon, the existence of a ceiling.

Exercise 12: Fishing and the collapse threshold: the logistic model with harvesting

The lake of exercise 10, with carrying capacity M=6000M=6000 fish and rate k=0.4k=0.4 per year, is now being fished: hh fish are harvested per year. The model becomes dPdt=kP(1−PM)−h\frac{dP}{dt}=kP\left(1-\frac{P}{M}\right)-h. A single constant subtracted, and the whole landscape of equilibria reorganizes itself.

  • a) The equilibria make the right-hand side zero. Write the equation they satisfy as a quadratic in PP, and show that, for a moderate harvest, there are TWO equilibria. State which one is stable.
  • b) Find the CRITICAL harvest hch_{c} beyond which there is no equilibrium at all. Show that it equals exactly kM4\frac{kM}{4} and that it is reached for P=M2P=\frac{M}{2}. Relate this result to the maximum growth rate found in exercise 10.
  • c) Compare three fishing regimes: h=320h=320, h=560h=560 and h=700h=700 fish per year. Compute the equilibria when they exist, and describe what happens to the population in each case.
  • d) The critical harvest kM4\frac{kM}{4} is the maximum sustainable yield. Why is a fishery that aims for EXACTLY this yield playing a dangerous game, and what does the analysis of equilibria advise?

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
Show the solution

Answers

  • a) Two equilibria: the high one stable, the low one unstable
  • b) hc=kM4=600h_{c}=\frac{kM}{4}=600 at P=3000P=3000
  • c) 951951 and 50495049; 22252225 and 37753775; extinction
  • d) Quota strictly below hch_{c}
a)

At equilibrium, kP(1−PM)−h=0kP\left(1-\frac{P}{M}\right)-h=0. Expanding: kP−kMP2−h=0kP-\frac{k}{M}P^{2}-h=0, which you multiply by −Mk-\frac{M}{k} to get a monic quadratic: P2−MP+hMk=0P^{2}-MP+\frac{hM}{k}=0. The equilibria are therefore the roots of this quadratic, P=M±M2−4hMk2P=\frac{M\pm\sqrt{M^{2}-\frac{4hM}{k}}}{2}. For a moderate harvest, the discriminant M2−4hMkM^{2}-\frac{4hM}{k} is positive and there are TWO equilibria, a low one P−P_{-} and a high one P+P_{+}, both between 0 and MM. Their stability is read from the sign of P′P': the right-hand side kP(1−PM)−hkP\left(1-\frac{P}{M}\right)-h is a parabola in PP opening downwards, negative before P−P_{-}, positive between P−P_{-} and P+P_{+}, negative after P+P_{+}. So below P−P_{-} the population decreases (towards extinction), between the two it increases, above P+P_{+} it decreases: the HIGH equilibrium P+P_{+} is STABLE, the LOW equilibrium P−P_{-} is UNSTABLE. The latter acts as a critical population threshold: a population that drops below P−P_{-} is doomed, even without any increase in fishing.

b)

There is no equilibrium left once the discriminant becomes negative. The critical value makes this discriminant zero: M2−4hcMk=0M^{2}-\frac{4h_{c}M}{k}=0, so hc=kM4h_{c}=\frac{kM}{4}. With k=0.4k=0.4 and M=6000M=6000: hc=0.4×60004=600h_{c}=\frac{0.4\times 6000}{4}=600 fish per year. At this precise harvest, the discriminant is zero and the two equilibria MERGE into one, the double root P=M2=3000P=\frac{M}{2}=3000. The link with exercise 10 is remarkable and no coincidence: there we established that logistic growth WITHOUT harvesting is maximal at the inflection point P=M2P=\frac{M}{2}, where it equals kP(1−PM)=k⋅M2⋅12=kM4kP\left(1-\frac{P}{M}\right)=k\cdot\frac{M}{2}\cdot\frac{1}{2}=\frac{kM}{4}. The critical harvest is therefore exactly the maximum output the population can produce: beyond it, more fish are removed than the lake can generate per unit of time, whatever its size, and collapse is inevitable. The fishing threshold is the top of the growth curve.

c)

Three regimes. For h=320h=320: the quadratic P2−6000P+320×60000.4=P2−6000P+4,800,000=0P^{2}-6000P+\frac{320\times 6000}{0.4}=P^{2}-6000P+4{,}800{,}000=0 has roots of about P−≈951P_{-}\approx 951 and P+≈5049P_{+}\approx 5049. The population introduced at 500, below the unstable threshold 951951, is unfortunately doomed to decrease; but any population above 951 would rise towards the stable equilibrium of 5049, an almost full lake that durably supplies 320 fish per year. For h=560h=560, closer to the critical value: P2−6000P+8,400,000=0P^{2}-6000P+8{,}400{,}000=0 gives P−≈2225P_{-}\approx 2225 and P+≈3775P_{+}\approx 3775. The two equilibria have moved closer to 3000, and this closeness is the sign of DANGER: the margin between the collapse threshold (2225) and the stable regime (3775) has become thin, so that a bad year, a drought or a counting error can push the population below 2225 and trigger the fall. For h=700h=700, above the critical 600: the discriminant 36×106−42×10636\times 10^{6}-42\times 10^{6} is NEGATIVE, there is no equilibrium at all, and P′P' is negative for every value of PP, since the maximum growth (600) can no longer make up for the harvest (700). The population decreases relentlessly and dies out in finite time, regardless of its starting size: even a full lake ends up emptied.

d)

Aiming for exactly hc=kM4h_{c}=\frac{kM}{4} amounts to keeping the population on the DOUBLE root P=M2=3000P=\frac{M}{2}=3000, which is a semi-stable equilibrium, stable from above but unstable from below. It is a tightrope walk: as long as nothing moves, the yield of 600 is indeed sustained; but at this precise point, the slightest disturbance that pushes PP below 3000 puts the population in a zone where P′<0P'<0 with no equilibrium to catch it, and collapse sets in. There is no safety net any more, because the unstable equilibrium and the stable equilibrium have merged: the warning threshold and the operating point have become the same point. The bifurcation that eliminated the equilibria for h>hch>h_{c} makes the regime h=hch=h_{c} structurally fragile. The analysis of equilibria therefore advises setting the quota STRICTLY below hch_{c}, say at 80 or 90 percent, so as to keep two well-separated equilibria and a safety margin between the collapse threshold P−P_{-} and the operating regime P+P_{+}. This is exactly the logic of prudent fishing quotas, and the history of the great fisheries that collapsed, the Newfoundland cod in particular, is that of yields held too close to, or beyond, this critical peak. The logistic model with harvesting thus provides, in one equation, the mathematical argument for sustainable resource management.

Part C: the classics (/50)

Exercise 13: Five classic separable equations

For each equation, separate the variables, integrate, then use the initial condition. State the interval of validity when it is not the whole real line.

  • a) y′=ycos⁡xy'=y\cos x with y(0)=2y(0)=2. Compute y(π2)y\left(\frac{\pi}{2}\right).
  • b) y′=1+y2y'=1+y^{2} with y(0)=0y(0)=0. On what interval does the solution exist? Compute y(π4)y\left(\frac{\pi}{4}\right).
  • c) x y′=3yx\,y'=3y with y(1)=2y(1)=2, for x>0x>0. Compute y(2)y(2).
  • d) y′=2yy'=2\sqrt{y} with y(0)=0y(0)=0. Show that y=0y=0 and y=x2y=x^{2} (for x≥0x\geq 0) are two solutions. What becomes of uniqueness?
  • e) y′=(2x+1)e−yy'=(2x+1)e^{-y} with y(0)=0y(0)=0. Compute y(1)y(1).

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) y=2esin⁡xy=2e^{\sin x}; 2e2e
  • b) y=tan⁡xy=\tan x on (−π2,π2)\left(-\frac{\pi}{2},\frac{\pi}{2}\right)
  • c) y=2x3y=2x^{3}; 1616
  • d) Two solutions: uniqueness fails
  • e) y=ln⁡(x2+x+1)y=\ln(x^{2}+x+1); ln⁡3\ln 3
a)

dyy=cos⁡x dx\frac{dy}{y}=\cos x\,dx gives ln⁡∣y∣=sin⁡x+C1\ln|y|=\sin x+C_{1}, that is y=Cesin⁡xy=Ce^{\sin x}. With y(0)=2y(0)=2: C=2C=2, so y=2esin⁡xy=2e^{\sin x}, defined on all of R\mathbb{R} and periodic. y(π2)=2e≈5.437y\left(\frac{\pi}{2}\right)=2e\approx 5.437.

b)

dy1+y2=dx\frac{dy}{1+y^{2}}=dx gives arctan⁡y=x+C\arctan y=x+C; with y(0)=0y(0)=0, C=0C=0 and y=tan⁡xy=\tan x. The solution exists only on (−π2,π2)\left(-\frac{\pi}{2},\frac{\pi}{2}\right), that is up to x≈1.571x\approx 1.571: it blows up in finite time although the equation is defined everywhere. y(π4)=1y\left(\frac{\pi}{4}\right)=1.

c)

dyy=3 dxx\frac{dy}{y}=\frac{3\,dx}{x} gives ln⁡∣y∣=3ln⁡x+C1\ln|y|=3\ln x+C_{1}, that is y=Cx3y=Cx^{3}. With y(1)=2y(1)=2: y=2x3y=2x^{3}, and y(2)=16y(2)=16.

d)

y=0y=0 gives y′=0=20y'=0=2\sqrt{0} ✓. y=x2y=x^{2} gives y′=2x=2x2y'=2x=2\sqrt{x^{2}} for x≥0x\geq 0 ✓, and y(0)=0y(0)=0 in both cases. Two distinct solutions for the same initial condition: UNIQUENESS fails. The cause is the function y\sqrt{y}, whose slope is infinite at 00: the existence and uniqueness theorem requires a right-hand side that is regular enough in yy, which is not the case here. For the nonzero solution, y(3)=9y(3)=9.

e)

ey dy=(2x+1) dxe^{y}\,dy=(2x+1)\,dx gives ey=x2+x+Ce^{y}=x^{2}+x+C; with y(0)=0y(0)=0, C=1C=1. So y=ln⁡(x2+x+1)y=\ln\left(x^{2}+x+1\right), defined everywhere since x2+x+1>0x^{2}+x+1>0. y(1)=ln⁡3≈1.099y(1)=\ln 3\approx 1.099.

Exercise 14: The integrating factor on five linear equations

For each equation, put it in the form y′+P(x)y=Q(x)y'+P(x)y=Q(x), compute the integrating factor μ=e∫P dx\mu=e^{\int P\,dx}, solve, then apply the initial condition.

  • a) y′−2y=e3xy'-2y=e^{3x}, y(0)=0y(0)=0. Compute y(1)y(1).
  • b) y′+y=xy'+y=x, y(0)=0y(0)=0. Compute y(2)y(2).
  • c) y′+ytan⁡x=cos⁡xy'+y\tan x=\cos x on (−π2,π2)\left(-\frac{\pi}{2},\frac{\pi}{2}\right), y(0)=1y(0)=1. Compute y(π3)y\left(\frac{\pi}{3}\right).
  • d) x y′−2y=x3x\,y'-2y=x^{3} for x>0x>0, y(1)=0y(1)=0. Compute y(2)y(2).
  • e) y′+2xy=xy'+2xy=x, y(0)=1y(0)=1. What is the limit of yy at +∞+\infty?

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) e3x−e2xe^{3x}-e^{2x}
  • b) x−1+e−xx-1+e^{-x}
  • c) (x+1)cos⁡x(x+1)\cos x
  • d) x3−x2x^{3}-x^{2}
  • e) 12+12e−x2→12\frac{1}{2}+\frac{1}{2}e^{-x^{2}}\to\frac{1}{2}
a)

μ=e−2x\mu=e^{-2x}: (e−2xy)′=ex\left(e^{-2x}y\right)'=e^{x}, so e−2xy=ex+Ce^{-2x}y=e^{x}+C and y=e3x+Ce2xy=e^{3x}+Ce^{2x}. y(0)=1+C=0y(0)=1+C=0: C=−1C=-1, y=e3x−e2xy=e^{3x}-e^{2x}. y(1)=e3−e2≈12.696y(1)=e^{3}-e^{2}\approx 12.696.

b)

μ=ex\mu=e^{x}: (exy)′=xex\left(e^{x}y\right)'=xe^{x}, and by parts ∫xexdx=(x−1)ex\int xe^{x}dx=(x-1)e^{x}. So y=x−1+Ce−xy=x-1+Ce^{-x}; y(0)=−1+C=0y(0)=-1+C=0 gives C=1C=1. y(2)=1+e−2≈1.135y(2)=1+e^{-2}\approx 1.135. The solution joins the line y=x−1y=x-1: the transient e−xe^{-x} dies out.

c)

μ=e∫tan⁡x dx=e−ln⁡(cos⁡x)=1cos⁡x\mu=e^{\int\tan x\,dx}=e^{-\ln(\cos x)}=\frac{1}{\cos x}, positive on the interval. The equation becomes (ycos⁡x)′=1\left(\frac{y}{\cos x}\right)'=1, so y=(x+C)cos⁡xy=(x+C)\cos x; y(0)=C=1y(0)=C=1. y(π3)=(π3+1)⋅12≈1.024y\left(\frac{\pi}{3}\right)=\left(\frac{\pi}{3}+1\right)\cdot\frac{1}{2}\approx 1.024.

d)

Standard form, dividing by xx: y′−2xy=x2y'-\frac{2}{x}y=x^{2}. μ=e−2ln⁡x=1x2\mu=e^{-2\ln x}=\frac{1}{x^{2}}: (yx2)′=1\left(\frac{y}{x^{2}}\right)'=1, so y=x3+Cx2y=x^{3}+Cx^{2}; y(1)=1+C=0y(1)=1+C=0, C=−1C=-1. y(2)=8−4=4y(2)=8-4=4. Forgetting to divide by xx before reading off PP is the classic error.

e)

μ=ex2\mu=e^{x^{2}}: (ex2y)′=xex2\left(e^{x^{2}}y\right)'=xe^{x^{2}}, so ex2y=12ex2+Ce^{x^{2}}y=\frac{1}{2}e^{x^{2}}+C and y=12+Ce−x2y=\frac{1}{2}+Ce^{-x^{2}}. y(0)=12+C=1y(0)=\frac{1}{2}+C=1: C=12C=\frac{1}{2}. As x→+∞x\to+\infty, y→12y\to\frac{1}{2}, the equilibrium solution y=12y=\frac{1}{2} that can be read directly from the equation.

Exercise 15: Euler and improved Euler against the exact solution

Consider y′=x−yy'=x-y with y(0)=1y(0)=1, whose exact solution is known, so as to measure honestly the error of two numerical methods.

  • a) Solve the equation with an integrating factor and compute the exact value y(1)y(1).
  • b) Apply Euler's method yn+1=yn+h f(xn,yn)y_{n+1}=y_{n}+h\,f(x_{n},y_{n}) with h=0.5h=0.5 to estimate y(1)y(1).
  • c) Start again with h=0.25h=0.25.
  • d) Compute the two errors and their ratio. What does this ratio say about the order of Euler's method?
  • e) The improved Euler method (Heun's method) predicts y~=yn+h f(xn,yn)\tilde{y}=y_{n}+h\,f(x_{n},y_{n}) then corrects with the average of the slopes: yn+1=yn+h2[f(xn,yn)+f(xn+1,y~)]y_{n+1}=y_{n}+\frac{h}{2}\left[f(x_{n},y_{n})+f(x_{n+1},\tilde{y})\right]. Apply it with h=0.5h=0.5 and compare the error.

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) y=x−1+2e−xy=x-1+2e^{-x}; y(1)=2ey(1)=\frac{2}{e}
  • b) 0.50.5
  • c) 0.63280.6328
  • d) Ratio ≈2\approx 2: order 11
  • e) Heun: 0.781250.78125, error 0.04550.0455
a)

y′+y=xy'+y=x: μ=ex\mu=e^{x}, (exy)′=xex\left(e^{x}y\right)'=xe^{x}, so y=x−1+Ce−xy=x-1+Ce^{-x}. y(0)=−1+C=1y(0)=-1+C=1: C=2C=2 and y=x−1+2e−xy=x-1+2e^{-x}. y(1)=2e≈0.7358y(1)=\frac{2}{e}\approx 0.7358.

b)

f(x,y)=x−yf(x,y)=x-y. Step 1: y1=1+0.5 (0−1)=0.5y_{1}=1+0.5\,(0-1)=0.5 at x=0.5x=0.5. Step 2: y2=0.5+0.5 (0.5−0.5)=0.5y_{2}=0.5+0.5\,(0.5-0.5)=0.5 at x=1x=1. Estimate: y(1)≈0.5y(1)\approx 0.5.

c)

Four steps: y1=1+0.25(0−1)=0.75y_{1}=1+0.25(0-1)=0.75; y2=0.75+0.25(0.25−0.75)=0.625y_{2}=0.75+0.25(0.25-0.75)=0.625; y3=0.625+0.25(0.5−0.625)=0.59375y_{3}=0.625+0.25(0.5-0.625)=0.59375; y4=0.59375+0.25(0.75−0.59375)≈0.6328y_{4}=0.59375+0.25(0.75-0.59375)\approx 0.6328.

d)

Errors: 0.7358−0.5=0.23580.7358-0.5=0.2358 and 0.7358−0.6328=0.10300.7358-0.6328=0.1030. Ratio: 0.23580.1030≈2.3\frac{0.2358}{0.1030}\approx 2.3, close to 22: halving the step roughly halves the error. Euler's error is proportional to the step: the method is of order 11. Both estimates are too low: the solution is concave up (y′′=1−y′=y−x+1=2e−x>0y''=1-y'=y-x+1=2e^{-x}>0) and the tangent line passes below the curve.

e)

Step 1: slope f(0,1)=−1f(0, 1)=-1, prediction y~=0.5\tilde{y}=0.5, slope f(0.5,0.5)=0f(0.5, 0.5)=0, average −0.5-0.5: y1=1−0.25=0.75y_{1}=1-0.25=0.75. Step 2: slope f(0.5,0.75)=−0.25f(0.5, 0.75)=-0.25, prediction y~=0.625\tilde{y}=0.625, slope f(1,0.625)=0.375f(1, 0.625)=0.375, average 0.06250.0625: y2=0.75+0.03125=0.78125y_{2}=0.75+0.03125=0.78125. Error ∣0.7358−0.7813∣≈0.0455\left|0.7358-0.7813\right|\approx 0.0455, five times smaller than Euler with the same step, for only two slope evaluations per step. Heun's method is of order 22: it is the trapezoidal rule applied to differential equations.

Exercise 16: Draining a tank: Torricelli's law

A cylindrical tank drains through a small hole drilled in its bottom. Torricelli's law gives the rate at which the level hh (in m) drops: dhdt=−kh\frac{dh}{dt}=-k\sqrt{h}, with time tt in minutes. At the start, h(0)=4h(0)=4 m; after 55 minutes, the measured level is h(5)=2.25h(5)=2.25 m.

The figure below shows the situation; it is not to scale.

h(0) = 4 mhole
  • a) Solve the equation by separation and express h\sqrt{h} in terms of tt, kk and h(0)h(0).
  • b) Find kk from the measurement at 55 minutes.
  • c) When is the tank empty?
  • d) When does the level reach half its initial height? Comment on the fact that this time is well under half the draining time.
  • e) A tank obeying dhdt=−kh\frac{dh}{dt}=-kh would never empty. Explain the difference.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) h=2−kt2\sqrt{h}=2-\frac{kt}{2}
  • b) k=0.2k=0.2
  • c) Empty at 2020 min
  • d) Half height at 5.865.86 min
  • e) h\sqrt{h} dominates hh near 00: finite time
a)

dhh=−k dt\frac{dh}{\sqrt{h}}=-k\,dt gives 2h=−kt+C2\sqrt{h}=-kt+C, and C=2h(0)=4C=2\sqrt{h(0)}=4. So h=2−kt2\sqrt{h}=2-\frac{kt}{2}, as long as this number is positive.

b)

2.25=1.5=2−5k2\sqrt{2.25}=1.5=2-\frac{5k}{2}, so k=0.2k=0.2 (m1/2\text{m}^{1/2} per minute). Hence h=2−0.1 t\sqrt{h}=2-0.1\,t and h(t)=(2−0.1 t)2h(t)=(2-0.1\,t)^{2}.

c)

h=0h=0 when 2−0.1 t=02-0.1\,t=0, that is t=20t=20 minutes. Beyond that, the physical solution is h=0h=0: the tank stays empty.

d)

h=2h=2 gives 2=2−0.1 t\sqrt{2}=2-0.1\,t, that is t=10(2−2)≈5.86t=10\left(2-\sqrt{2}\right)\approx 5.86 minutes. The first half of the height drains in under six minutes, the second in more than fourteen: the outflow, proportional to h\sqrt{h}, weakens as the pressure of the water column decreases.

e)

With h′=−khh'=-kh, the solution h=4e−kth=4e^{-kt} never reaches 00: the rate of drop is proportional to hh, and fades as fast as hh does. With h\sqrt{h}, when hh is small, h\sqrt{h} is MUCH larger than hh (for example 0.01=0.1\sqrt{0.01}=0.1): the draining slows down too little to keep the level from reaching zero, and it gets there in finite time. It is the same lack of regularity of h\sqrt{h} at 00 that, read backwards, breaks uniqueness: seeing an empty tank, you cannot tell how long it has been empty.

Exercise 17: A chemical reaction and partial fractions

In the reaction A+B→C\text{A}+\text{B}\to\text{C}, the initial concentrations are [A]0=2[\text{A}]_{0}=2 mol/L and [B]0=3[\text{B}]_{0}=3 mol/L. The concentration x(t)x(t) of product formed (mol/L, tt in minutes) satisfies the rate law dxdt=k(2−x)(3−x)\frac{dx}{dt}=k(2-x)(3-x), with k=0.1k=0.1 L/(mol·min) and x(0)=0x(0)=0.

  • a) Compute the initial rate of the reaction and decompose 1(2−x)(3−x)\frac{1}{(2-x)(3-x)} into partial fractions.
  • b) Solve the equation by separation and show that 3−x2−x=32ekt\frac{3-x}{2-x}=\frac{3}{2}e^{kt}.
  • c) After how long does the concentration of the product reach 11 mol/L?
  • d) Express x(t)x(t) and compute x(10)x(10).
  • e) What value does x(t)x(t) tend to? Interpret chemically.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) 0.60.6; 12−x−13−x\frac{1}{2-x}-\frac{1}{3-x}
  • b) 3−x2−x=32ekt\frac{3-x}{2-x}=\frac{3}{2}e^{kt}
  • c) 10ln⁡43≈2.8810\ln\frac{4}{3}\approx 2.88 min
  • d) x(10)≈1.675x(10)\approx 1.675
  • e) Limit 22: limiting reactant
a)

x′(0)=0.1×2×3=0.6x'(0)=0.1\times 2\times 3=0.6 mol/(L·min). Decomposition: 1(2−x)(3−x)=a2−x+b3−x\frac{1}{(2-x)(3-x)}=\frac{a}{2-x}+\frac{b}{3-x}, that is 1=a(3−x)+b(2−x)1=a(3-x)+b(2-x); at x=2x=2, a=1a=1; at x=3x=3, b=−1b=-1. So 1(2−x)(3−x)=12−x−13−x\frac{1}{(2-x)(3-x)}=\frac{1}{2-x}-\frac{1}{3-x}.

b)

∫(12−x−13−x)dx=−ln⁡(2−x)+ln⁡(3−x)=ln⁡3−x2−x\int\left(\frac{1}{2-x}-\frac{1}{3-x}\right)dx=-\ln(2-x)+\ln(3-x)=\ln\frac{3-x}{2-x}, for 0≤x<20\leq x<2. Hence ln⁡3−x2−x=kt+C\ln\frac{3-x}{2-x}=kt+C, and x(0)=0x(0)=0 gives C=ln⁡32C=\ln\frac{3}{2}. Taking the exponential: 3−x2−x=32ekt\frac{3-x}{2-x}=\frac{3}{2}e^{kt}.

c)

x=1x=1 gives 21=32e0.1t\frac{2}{1}=\frac{3}{2}e^{0.1t}, that is t=10ln⁡43≈2.88t=10\ln\frac{4}{3}\approx 2.88 minutes.

d)

Let R=32ektR=\frac{3}{2}e^{kt}. From 3−x=R(2−x)3-x=R(2-x) you get x(R−1)=2R−3x(R-1)=2R-3, so x(t)=2R−3R−1x(t)=\frac{2R-3}{R-1}. At t=10t=10: R=1.5 e≈4.077R=1.5\,e\approx 4.077 and x(10)≈5.1553.077≈1.675x(10)\approx\frac{5.155}{3.077}\approx 1.675 mol/L.

e)

As t→∞t\to\infty, R→∞R\to\infty and x=2−3/R1−1/R→2x=\frac{2-3/R}{1-1/R}\to 2. The reaction stops when A, the LIMITING REACTANT, is used up: 11 mol/L of B is then left in excess. The equation says so too: x′=0x'=0 for x=2x=2, a stable equilibrium, whereas x=3x=3 is never reached.

Something missing from this set? A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.

Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space. Rather not create an account? Write to me directly.

What is it about?
I read every request myself, nobody else sees it. No need to write your name or your school.
When your request is dealt with, you hear about it by email and in your space.

By sending, you agree that I read your request to answer it. It is kept with your account, erased with it, and never published: privacy policy.

Previous chapter Power series and Taylor series, 201-SN3-RE (201-NYB)

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/cegep-calc2-differential-equations. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Looking for an integral calculus tutor in Montreal?

Get in touch for a first session. We work through 201-SN3-RE integral calculus at the level of real CEGEP tests, from separable equations all the way to modelling problems.

Site by Studio Squalli