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′=0), the sign of 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.
Self-checking setType 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.
•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: dxdy=f(x)g(y). Isolate: g(y)dy=f(x)dx, integrate each side, write only ONE constant, and keep an eye on the constant solutions g(y)=0 lost in the division.
•First-order LINEAR equation: y′+P(x)y=Q(x). Integrating factor μ(x)=e∫P(x)dx: the equation becomes (μy)′=μQ, which integrates directly. It is the method of choice as soon as y and y′ appear to the first degree.
•Exponential growth and decay: dtdN=kN gives N(t)=N0ekt. Doubling time kln2; half-life t1/2=∣k∣ln2 (carbon 14: 5730 years).
•Newton's law of cooling: dtdT=−k(T−Ta), solution T(t)=Ta+(T0−Ta)e−kt: the gap to the room temperature decays exponentially. Mixing: dtdA= (inflow rate × incoming concentration) − (outflow rate ×VA).
•Logistic model: dtdP=kP(1−MP), solution P(t)=1+Ae−ktM with A=P0M−P0. Equilibria P=0 (unstable) and P=M (stable); maximum growth at the inflection point P=2M.
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 dxdy=f(x)g(y), linear y′+P(x)y=Q(x), homogeneous y′=F(xy), or linear if x is viewed as a function of y. Then solve through the given point: the point (x0,y0) means y(x0)=y0.
a) dxdy=e2x+y+ey, through the point (0,0). Compute y(−21) and the right endpoint of the interval on which the solution exists.
b) dxdy=xy+x2sinx for x>0, through the point (π,2π). What type of equation is it? Compute y(2π).
c) x2dxdy=y2+xy+x2 for x>0, through the point (1,0). Compute y(eπ/4) and the right endpoint of the interval on which the solution exists.
d) dxdy=x+y21, through the point (0,0). Show that the equation is neither separable nor linear in y, but that it becomes linear when x is viewed as a function of y. Compute the coordinate x of the point on the curve where y=1.
e) xdxdy+y=x2y2 for x>0, through the point (1,21). Solve by recognizing the derivative of a product, then compute y(23) and the right endpoint of the interval on which the solution exists.
Show the solution
Answers
a)Separable: y=−ln(23−x−2e2x), y(−21)≈−0.597, right endpoint ≈0.396
d)Linear in x: x=2ey−y2−2y−2; for y=1, x=2e−5≈0.437
e)(xy)′=(xy)2: y=x(3−x)1 on (0,3), y(23)=94
a)
The trap is in the exponent: e2x+y=e2xey, not e2x+ey. Factor out ey: dxdy=ey(e2x+1), a SEPARABLE equation. e−ydy=(e2x+1)dx, so −e−y=2e2x+x+C. At the point (0,0): −1=21+C, C=−23. Hence e−y=23−x−2e2x and y=−ln(23−x−2e2x). At x=−21: 23+21−2e−1=2−2e1≈1.816, so y≈−0.597. The solution exists only as long as the argument of the logarithm is positive: 3−2x−e2x>0. This function is strictly decreasing, equals 1 at 0 and vanishes between 0.39 and 0.40; by bisection, the right endpoint is about 0.396. As you approach it, e−y→0 and y→+∞: the solution blows up in finite time, although the right-hand side looked harmless.
b)
Split the fraction: dxdy=xy+xsinx. The right-hand side is a SUM of a term in y and a term in x: the equation is not separable, it is LINEAR, y′−x1y=xsinx. Here P(x)=−x1, so μ=e−lnx=x1. Sign pitfall: taking μ=x by forgetting the minus sign of P. Multiply: (xy)′=sinx, so xy=−cosx+C and y=−xcosx+Cx. At the point (π,2π): 2π=π+Cπ, so C=1 and y=x−xcosx. Check: y′=1−cosx+xsinx, and xy+xsinx=1−cosx+xsinx. Finally y(2π)=2π−0=2π≈1.571.
c)
Divide by x2: dxdy=(xy)2+xy+1. The right-hand side depends only on xy: a HOMOGENEOUS equation. Set v=xy, so y=xv and y′=v+xv′ by the product rule. Forgetting the term v is the classic error: it makes the equation wrong from the very first line. You get v+xv′=v2+v+1, that is xv′=v2+1, which is separable: 1+v2dv=xdx, arctanv=lnx+C. At the point (1,0): v=0 and ln1=0, so C=0. Thus v=tan(lnx) and y=xtan(lnx). At x=eπ/4: lnx=4π, tan4π=1, so y=eπ/4≈2.193. The solution lives as long as lnx<2π, that is x<eπ/2≈4.810, where the tangent blows up.
d)
The right-hand side does not factor as f(x)g(y): not separable. And y appears in the denominator, squared: not linear in y. But a curve can be read both ways: wherever dxdy=0, dydx=dy/dx1=x+y2. Viewing x as a function of y, it is a LINEAR equation: dydx−x=y2. Integrating factor μ=e−y: (xe−y)′=y2e−y. Two integrations by parts give ∫y2e−ydy=−(y2+2y+2)e−y, which you check by differentiating: −(2y+2)e−y+(y2+2y+2)e−y=y2e−y. So xe−y=−(y2+2y+2)e−y+C, that is x=Cey−y2−2y−2. At the point (0,0), meaning x=0 when y=0: 0=C−2, C=2. The solution is x=2ey−y2−2y−2, a function of y and not of x. For y=1: x=2e−5≈0.437. Pitfall: reading the condition “through the point (0,0)” backwards, by putting the second coordinate in place of x; here the point still says x=0 AND y=0.
e)
The left-hand side is exactly the derivative of a product: xy′+y=(xy)′. The right-hand side, x2y2, equals (xy)2. Setting w=xy, the equation becomes w′=w2, which is separable. For w=0: w2dw=dx, so −w1=x+C. At the point (1,21): w=21, so −2=1+C and C=−3. Thus w=3−x1 and y=xw=x(3−x)1. Another route, longer: it is a Bernoulli equation, y′+x1y=xy2, linearized by u=y1; it leads to the same result. Then y(23)=23⋅231=94≈0.444. The solution exists on (0,3) and blows up at x=3. Pitfall: dividing by x 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 2 always comes down to two equations of order 1. If the right-hand side depends only on the variable, integrate twice, with two constants. If it contains y′, set v=y′ and first solve a first-order equation in v, 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) dt2d2s=t4(t+1)2 for t>0, given that for t=1 you have s=0 and dtds=0. Find s(t) and compute s(2).
b) y′′=sin2x with y(0)=0 and y′(0)=1. Compute y(π).
c) x2y′′=1 for x>0, with y(1)=0 and y(e)=0. Compute y′(1), then the coordinate x of the point where the tangent line is horizontal.
d) y′′+xy′=4 for x>0, with y(1)=1 and y′(1)=3. Compute y(e).
e) y′′=2yy′ with y(0)=1 and y′(0)=2. Compute y(12π) and the positive value of x at which the solution ceases to exist.
c)y=−lnx+e−1x−1, y′(1)=e−12−e≈−0.418, horizontal tangent at x=e−1≈1.718
d)μ=x; y=x2+lnx, y(e)=e2+1≈8.389
e)y=tan(x+4π), y(12π)=3≈1.732, blow-up at x=4π
a)
EXPAND the square, then split: t4(t+1)2=t4t2+2t+1=t−2+2t−3+t−4. First integration: dtds=−t−1−t−2−3t−3+C1. Condition dtds=0 at t=1: −1−1−31+C1=0, so C1=37. Pitfall: a zero velocity does not give C1=0, since the antiderivative equals −37 at t=1. Second integration, with ∫t−1dt=lnt (and not 0t0): s=−lnt+t1+6t21+37t+C2. At t=1: 0+1+61+37+C2=0, so C2=−27. Thus s(t)=−lnt+t1+6t21+37t−27, and s(2)=−ln2+21+241+314−27=2441−ln2≈1.015.
b)
sin2x has no immediate antiderivative: LINEARIZE it, sin2x=21−cos2x. First integration: y′=2x−4sin2x+C1. At x=0: C1=1, since sin0=0. Second integration: y=4x2+8cos2x+x+C2; watch the sign, the antiderivative of −sin2x is +2cos2x. At x=0: 81+C2=0, so C2=−81, and NOT 0, since cos0=1. Thus y=4x2+8cos2x−1+x. Check: y′′=21−2cos2x=sin2x. At x=π: cos2π=1, so y(π)=4π2+π≈5.609. Common pitfall: writing ∫sin2xdx=3sin3x, whose derivative is sin2xcosx.
c)
Divide by x2: y′′=x21. First integration: y′=−x1+C1; second: y=−lnx+C1x+C2. Both conditions are on y: no constant can be fixed before the end, you have to solve a system. y(1)=0 gives C1+C2=0. y(e)=0 gives −1+C1e+C2=0. Subtracting: C1(e−1)=1, so C1=e−11≈0.582 and C2=−C1. Thus y=−lnx+e−1x−1. Then y′(1)=−1+e−11=e−12−e≈−0.418: the initial slope was not given, it follows from the two points. The tangent line is horizontal when y′=0, that is x1=e−11 and x=e−1≈1.718. Since y′′=x21>0, it is a minimum, equal to y(e−1)=1−ln(e−1)−e−11≈−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′: you cannot integrate twice directly. Set v=y′, so y′′=v′: v′+x1v=4, a first-order LINEAR equation in v. Integrating factor μ=e∫xdx=elnx=x, and not ex. You get (xv)′=4x, so xv=2x2+C1 and v=2x+xC1. Condition y′(1)=3: 2+C1=3, C1=1. Back to y: y=x2+lnx+C2, and y(1)=1+C2=1 gives C2=0. Thus y=x2+lnx. Check: y′=2x+x1, y′′=2−x21, and y′′+xy′=2−x21+2+x21=4. Finally y(e)=e2+1≈8.389. You could also multiply the equation by x: xy′′+y′=(xy′)′, which integrates in one step to xy′=2x2+C1; it is the same integrating factor, read off directly.
e)
The right-hand side 2yy′ is the derivative of y2 by the chain rule. The equation therefore reads (y′)′=(y2)′, and a first integration gives y′=y2+C1. Condition at x=0: 2=1+C1, so C1=1. Pitfall: setting C1=0 by reflex, which would give y′=y2 and contradict y′(0)=2. You get y′=1+y2, which is separable: 1+y2dy=dx, so arctany=x+C2. At x=0: arctan1=4π=C2. Thus y=tan(x+4π). Check: y′=1+y2, then y′′=2yy′. At x=12π: 12π+4π=3π, so y=tan3π=3≈1.732. The solution ceases to exist when x+4π=2π, that is x=4π≈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+2 is a solution of y′+3y=6 for every constant C, then find the particular solution satisfying y(0)=5. What does y=2 represent?
b) Solve the separable equation dxdy=xy with y(0)=3.
c) Solve dxdy=−y2 with y(0)=1, and comment on the interval of validity of the solution.
d) Solve dxdy=−yx and show that the solution curves are the circles of the figure. Why does the solution remain implicit?
Show the solution
Answers
a)C=3; equilibrium y=2
b)y=3ex2/2
c)y=1+x1 on (−1,∞)
d)x2+y2=C: circles, implicit solution
a)
y′=−3Ce−3x, so y′+3y=−3Ce−3x+3Ce−3x+6=6: verified for every C, it is the GENERAL solution (one constant, first order). y(0)=C+2=5 gives C=3: y=3e−3x+2. The line y=2 is the EQUILIBRIUM solution (y′=0): all solutions converge to it as x→∞, the exponential only damping out the initial gap.
b)
Separation: ydy=xdx, then ln∣y∣=2x2+C1, so y=Cex2/2. With y(0)=3: C=3, hence y=3ex2/2. Note in passing that dividing by y hid the constant solution y=0: a reflex worth keeping, even though the initial condition does not select it here.
c)
y2dy=−dx gives −y1=−x+C1, that is y=x+C1. With y(0)=1: C=1, so y=1+x1. The solution is valid only on (−1,∞): at x=−1 it blows up. A perfectly regular differential equation can produce solutions with a limited lifespan: the interval is part of the answer.
d)
ydy=−xdx, so 2y2=−2x2+C1, that is x2+y2=C: the circles centred at the origin in the figure (radii 2, 3, 4 for C=4,9,16). The solution remains IMPLICIT because no single function y(x) describes a whole circle: two branches y=±C−x2 are needed. Geometrically, the equation says that the slope −yx 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). The integrating factor μ(x)=e∫P(x)dx turns the left-hand side into an exact derivative (μy)′.
a) Prove that the method works: show that multiplying the equation by μ=e∫Pdx makes the left-hand side equal to (μy)′.
b) Solve y′+2y=6 with an integrating factor, and recover the structure “equilibrium + exponential”.
c) Solve y′+x1y=x2 on (0,∞) with y(1)=1.
d) The RC circuit of physics obeys Rdtdq+Cq=E. Put the equation in standard form, identify the time constant, and solve with q(0)=0 for E=12 V, R=1500 Ω, C=20 μF. What do you recover?
Show the solution
Answers
a)(μy)′=μ(y′+Py)
b)y=3+Ce−2x
c)y=4x3+4x3
d)τ=RC=0.03 s; q=CE(1−e−t/RC)
a)
By construction μ′=Pμ (derivative of a composite exponential). Then (μy)′=μy′+μ′y=μy′+Pμy=μ(y′+Py): multiplying the equation by μ gives exactly (μy)′=μ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=2, μ=e2x: (e2xy)′=6e2x, so e2xy=3e2x+C, that is y=3+Ce−2x. A crystal-clear structure: the equilibrium y=3 (constant solution of y′=0) plus an exponential transient that dies out at the rate e−2x. Every linear equation with constant coefficients tells this same story.
c)
P=x1, μ=elnx=x: the equation becomes (xy)′=x3, so xy=4x4+C, that is y=4x3+xC. With y(1)=41+C=1: C=43, hence y=4x3+4x3. The integrating factor is not always an exponential: here it is x itself, and the check (xy)′=x3 takes one line.
d)
Divide by R: dtdq+RC1q=RE: linear with constant coefficients, with P=RC1: the time constant is τ=RC=(1500)(20×10−6)=0.030 s. Solution with q(0)=0: q(t)=CE(1−e−t/RC)=2.4×10−4(1−e−t/0.03) 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=τ, same equilibrium q∞=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 dtdN=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 k 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.04A). Value after 10 years? Doubling time? Compare with the financiers' “rule of 72” (72/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.
Show the solution
Answers
a)k=−5730ln2; age ≈13,300 years
b)≈29.9 h
c)7459 dollars; doubling 17.3 years
d)Unlimited resources and constant rate: logistic
a)
NdN=kdt gives N(t)=N0ekt. Half-life: ekt1/2=21, so k=−t1/2ln2=−5730ln2 per year. Age of the fossil: ekt=0.20 gives t=ln2ln5×5730≈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≈1000, so about 10 doublings, that is ≈30 hours. Exactly: k=3ln2 and t=kln1000=3ln2ln1000=3log21000≈29.9 h. The mental estimate through 210≈103 is an exam tool in its own right: it checks the order of magnitude before any computation.
c)
A(10)=5000e0.4≈7459 dollars. Doubling: 0.04ln2≈17.3 years. Rule of 72: 472=18 years: the financiers' rule is an approximation (calibrated for annual compounding) of the true rln2≈r in %69.3; for continuous compounding, the “exact rule” would be the rule of 69.
d)
The model assumes UNLIMITED resources (food, space) and a CONSTANT rate k (no competition, no predation, no saturation). In any real population, density eventually slows growth down: the effective rate decreases with N. The minimal patch is precisely the logistic model of exercise 10: replace k with k(1−MP), 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), where the slope depends only on the value of y, is entirely described by the sign of f: that is the meaning of the “read first” reflex.
a) For the autonomous equation y′=(y−1)(y−3), find the equilibrium solutions, then draw the PHASE LINE: the sign of y′ on each interval. Classify each equilibrium as stable or unstable.
b) Without solving, describe what happens to a solution starting from y(0)=0, from y(0)=2 and from y(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+hf(xn,yn). Apply it to y′=y, y(0)=1, with step h=0.1, to estimate y(0.2); compare with the exact value e0.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′=y2, that a solution can cease to exist in finite time.
Show the solution
Answers
a)y=1 stable, y=3 unstable
b)0 and 2 towards 1; 4 to infinity
c)1.21 against 1.2214: underestimate
d)Never any crossing; blow-up possible in finite time
a)
The equilibria make y′ zero: (y−1)(y−3)=0 gives y=1 and y=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<1, both factors are negative, their product is POSITIVE, so y′>0 and the solution rises; for 1<y<3, one factor changes sign, the product is NEGATIVE, y′<0, the solution falls; for y>3, both factors are positive, y′>0, the solution rises. Classification: around y=1, the arrows converge (rising below, falling above), so y=1 is STABLE; around y=3, the arrows diverge (falling below, rising above), so y=3 is UNSTABLE. This whole analysis holds without writing a single antiderivative.
b)
Starting from y(0)=0: you are below 1, so y′>0, the solution increases, and it is attracted by the stable equilibrium: it rises towards y=1 without ever reaching it, flattening out, like the lower curve of the figure. Starting from y(0)=2: you are between the two equilibria, y′<0, the solution DECREASES and it too joins y=1, from above: the middle curve of the figure. Starting from y(0)=4: you are above 3, y′>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=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)=y, so yn+1=yn+0.1yn=1.1yn. First step: y1=1.1×1=1.1, an approximation of y(0.1). Second step: y2=1.1×1.1=1.21, an approximation of y(0.2). Exact value: e0.2≈1.22140. The error is about 0.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=ex 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.05 over four steps gives 1.054≈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) 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′ 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′=y2 with y(0)=1 has the solution y=1−x1, a cousin of the solution y=1+x1 of y′=−y2 met in exercise 3: it blows up at x=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=xy, and Bernoulli equations, through u=y1−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′ depends only on the ratio xy. Solve xy′=x+y with the substitution v=xy, explaining in detail why it makes the equation separable.
b) A BERNOULLI equation has the form y′+P(x)y=Q(x)yn. Solve y′+y=y2 with y(0)=21 using the substitution u=y−1, which linearizes it.
c) Show that the logistic equation dtdP=kP(1−MP) is a Bernoulli equation, and use the substitution u=P1 to recover the solution P(t)=1+Ae−ktM 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=Kx are orthogonal to the circles x2+y2=C of exercise 3, then find the orthogonal trajectories of the parabolas y=Cx2.
Show the solution
Answers
a)y=x(ln∣x∣+C)
b)y=1+ex1
c)Bernoulli: P=1+Ae−ktM
d)Lines y=Kx; ellipses x2+2y2=C
a)
Rewrite in standard form: y′=xx+y=1+xy, where the right-hand side indeed depends only on xy, which signals a homogeneous equation. Set v=xy, so y=vx and, by the product rule, y′=v+xv′. The equation becomes v+xv′=1+v, and the term v cancels on both sides: xv′=1. That is the whole magic of the substitution: it removes the part that mixed x and y, and what remains is SEPARABLE. Isolate: dv=xdx, hence v=ln∣x∣+C, then go back to y: y=vx=x(ln∣x∣+C). Check: y′=ln∣x∣+C+x⋅x1=ln∣x∣+C+1, and 1+xy=1+ln∣x∣+C: identical. The general principle is worth remembering: v=xy turns every homogeneous equation into a separable equation, without exception.
b)
Here n=2; the Bernoulli substitution is u=y1−n=y−1=y1, so u′=−y−2y′. First divide the equation by y2 to make these pieces appear: y2y′+y1=1, that is −u′+u=1, or u′−u=−1. The equation in u is LINEAR, which was the whole point of the manoeuvre. Integrating factor μ=e−x: (ue−x)′=−e−x, so ue−x=e−x+C, that is u=1+Cex. Going back to y=u1=1+Cex1. Initial condition y(0)=21: 1+C1=21 gives C=1, hence y=1+ex1. Numerical check: y(0)=0.5 and y′(0.5)=−0.235, which matches y2−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: dtdP=kP−MkP2, that is dtdP−kP=−MkP2. It is exactly a Bernoulli equation in the unknown P, with n=2: the constant −k plays the role of the coefficient of the unknown in the standard form, and −Mk the role of the coefficient of the power (careful not to confuse the population P with the coefficient named P(x) in the standard form). So apply the same substitution as in b): u=P1, so u′=−P2P′. Dividing the equation by P2: P2P′−Pk=−Mk, that is −u′−ku=−Mk, or u′+ku=Mk. A linear equation, integrating factor μ=ekt: (uekt)′=Mkekt, so uekt=M1ekt+C, that is u=M1+Ce−kt. Going back to P=u1=M1+Ce−kt1=1+CMe−ktM. Setting A=CM, you get exactly P(t)=1+Ae−ktM, the formula taken for granted in exercise 10. The constant A is fixed by P(0)=P0, which gives back A=P0M−P0; with M=6000 and P0=500, you recover A=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. The case of the circles: the family x2+y2=C satisfies, by implicit differentiation, 2x+2yy′=0, so y′=−yx, the very equation of exercise 3. The orthogonal trajectories then have slope −−x/y1=xy, hence the equation y′=xy, which is separable: ydy=xdx gives ln∣y∣=ln∣x∣+C1, that is y=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) is (−32)(23)=−1. The case of the parabolas y=Cx2: first eliminate the constant, C=x2y, then differentiate y′=2Cx=x2y, the slope of the family. The orthogonal trajectories therefore have slope −2yx, hence 2ydy=−xdx, which integrates to y2=−2x2+C1, that is x2+2y2=C: a family of ELLIPSES. Check the orthogonality at a point such as (2,1): the parabola has slope 22⋅1=1 there, the ellipse −2⋅12=−1, and the product is indeed −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). The figure shows the exact curve.
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−kt, then fix C with the initial temperature.
c) Find k 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.
Show the solution
Answers
a)Gap that melts away; equilibrium 20 °C
b)T=20+70e−kt
c)k≈0.0673; 40 °C at 18.6 min
d)≈63 min; asymptote never reached
a)
The minus sign says that HOT coffee (T>20) cools down (T′<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=20, the room temperature, where T′=0: the only possible outcome.
b)
With u=T−20: udu=−kdt, so u=Ce−kt and T(t)=20+Ce−kt. Initial condition T(0)=90: C=70, the initial GAP: T(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)=70 gives 20+70e−5k=70, that is e−5k=7050=75: k=51ln57≈0.0673 min−1. For 40 °C: 70e−kt=20, so t=kln3.5≈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=1, so t=kln70≈63 minutes. And the exact equality T=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 k 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) be the mass of salt (kg) in the tank.
The figure below shows the situation; it is not to scale.
a) Set up the differential equation satisfied by 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)=5 and compute the mass of salt after 10 minutes.
d) What happens to A(t) as t→∞, and in what sense does the limit “forget” the initial condition? After how long does the mass reach 19 kg?
Show the solution
Answers
a)A′=1−20A
b)Equilibrium 20 kg, stable
c)A=20−15e−t/20; A(10)≈10.9 kg
d)Limit 20 kg; 19 kg at 54 min
a)
Inflow: 5 L/min ×0.2 kg/L =1 kg/min, constant. Outflow: each litre that leaves carries the CURRENT concentration 100A kg/L, that is 5×100A=20A kg/min. Balance: dtdA=1−20A. 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)
dtdA=0 for A=20 kg. A crystal-clear interpretation: at equilibrium, the tank has everywhere the concentration of the INCOMING brine, 0.2 kg/L × 100 L =20 kg: what comes in equals what goes out. Below 20, A′>0 (the tank gains salt); above, A′<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/20: the gap to equilibrium, −15 kg at the start, melts away with the time constant 20 min. A(10)=20−15e−0.5≈10.9 kg. Check: at t=10 min, that is half a time constant, the fraction of the way covered is 1−e−0.5≈39%, and 5+0.39×15≈10.9 kg: the two readings agree (the classic 63%, for their part, would be reached at t=τ=20 min).
d)
e−t/20→0: A→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 A0, dies out: the steady state erases the past. For 19 kg: 15e−t/20=1, so t=20ln15≈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=6000 fish. 500 fish are introduced, and the population follows the logistic model dtdP=kP(1−MP) with k=0.4 per year. The figure shows the exact solution.
a) Interpret the equation: what does the factor (1−MP) do when P is small, then close to M? Find the equilibrium solutions and their stability.
b) Take for granted the solution P(t)=1+Ae−ktM with A=P0M−P0: check the initial condition, compute A, and give the population after 5 years.
c) Show that the growth is MAXIMUM when P=2M, 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.
Show the solution
Answers
a)0 unstable, M stable
b)A=11; P(5)≈2410
c)Maximum growth at 3000, around 6.0 years
d)Exponential at first, plateau at the end
a)
When P≪M, the factor is almost 1: the equation becomes P′=kP again, the exponential growth of abundant resources. When P→M, the factor tends to 0: growth is choked off, the environment is full. Equilibria: P=0 and P=M. Between them, P′>0: every population moves away from 0 (UNSTABLE: the slightest introduction takes off) and rises towards M (STABLE: it is approached from below, and an overpopulation P>M would come back down to it, P′<0).
b)
At t=0: P(0)=1+AM=1+P0M−P0M=MMP0=P0 ✓. Here A=5006000−500=11. After 5 years: P(5)=1+11e−26000=1+1.4896000≈2410 fish: the population has almost quintupled but is still below half the capacity of the lake.
c)
P′=kP(1−MP) is, for fixed k, a parabola in P that vanishes at 0 and M: its maximum is at the vertex, P=2M. This is the INFLECTION POINT of the curve: there the population switches from accelerating to slowing down. Time: 1+Ae−ktM=2M⟺Ae−kt=1⟺t=klnA=0.4ln11≈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≫1): P≈AMekt=P0ekt to a good approximation: indistinguishable from the exponential, as on the figure before year 3. At the end: P→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 mdtdv=mg−kv. A skydiver of mass m=80 kg has a drag coefficient k=16 kg/s; take g=9.8 m/s².
The figure below shows the situation; it is not to scale.
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 τ=km, and solve with v(0)=0. Compute the velocity at t=τ, then at t=10 s.
c) After how long does the skydiver reach 90% of the terminal velocity? Then, by integrating v(t), compute the distance covered during the first 10 seconds.
d) Compare with free fall without air (v=gt) at t=10 s, and explain why the terminal velocity “forgets” the initial velocity. What changes when the parachute opens, multiplying k by a large factor?
Show the solution
Answers
a)vlim=49 m/s
b)τ=5 s; 30.97 then 42.37 m/s
c)11.5 s; 278 m
d)98 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=0, so vlim=kmg=1680×9.8=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 g, the fall is brisk; as v increases, the term −kv eats into the weight and the acceleration decreases; at 49 m/s, there is no acceleration left at all. This is exactly an EQUILIBRIUM solution of the equation, v=vlim, 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 m: dtdv=g−mkv, that is dtdv+mkv=g, linear with constant coefficients with P=mk. The time constant is τ=km=1680=5 s. Solve with an integrating factor, or directly with the structure “equilibrium plus transient”: v(t)=vlim+Ce−t/τ, and v(0)=0 forces C=−vlim, hence v(t)=vlim(1−e−t/τ)=49(1−e−t/5). At t=τ=5 s: v=49(1−e−1)≈49×0.632=30.97 m/s, the classic 63% of the final value. At t=10 s, that is two time constants: v=49(1−e−2)≈49×0.865=42.37 m/s, already very close to the limit.
c)
You want v=0.9vlim, so 1−e−t/τ=0.9, that is e−t/τ=0.1, hence t=τln10=5ln10≈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/τ)). At t=10 s: x=49(10−5(1−e−2))=49(10−5×0.8647)=49×5.677≈278 m. You can check consistency by differentiating: x′(10)≈42.37 m/s, which indeed reproduces v(10), as it should.
d)
Without air, the velocity would be v=gt=9.8×10=98 m/s at t=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/τ: it, and it alone, carries the memory of v(0), and it dies out exponentially. Two skydivers released at different velocities converge to the same 49 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 k, say by a factor of 15: the terminal velocity kmg is divided by as much and drops to a few metres per second, while the time constant km 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 down to a value that is survivable on landing. An honest caveat to finish: at high speeds, real drag behaves more like v2 than v, which makes the equation separable but nonlinear and gives a terminal velocity in 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=6000 fish and rate k=0.4 per year, is now being fished: h fish are harvested per year. The model becomes dtdP=kP(1−MP)−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 P, and show that, for a moderate harvest, there are TWO equilibria. State which one is stable.
b) Find the CRITICAL harvest hc beyond which there is no equilibrium at all. Show that it equals exactly 4kM and that it is reached for P=2M. Relate this result to the maximum growth rate found in exercise 10.
c) Compare three fishing regimes: h=320, h=560 and h=700 fish per year. Compute the equilibria when they exist, and describe what happens to the population in each case.
d) The critical harvest 4kM 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?
Show the solution
Answers
a)Two equilibria: the high one stable, the low one unstable
b)hc=4kM=600 at P=3000
c)951 and 5049; 2225 and 3775; extinction
d)Quota strictly below hc
a)
At equilibrium, kP(1−MP)−h=0. Expanding: kP−MkP2−h=0, which you multiply by −kM to get a monic quadratic: P2−MP+khM=0. The equilibria are therefore the roots of this quadratic, P=2M±M2−k4hM. For a moderate harvest, the discriminant M2−k4hM is positive and there are TWO equilibria, a low one P− and a high one P+, both between 0 and M. Their stability is read from the sign of P′: the right-hand side kP(1−MP)−h is a parabola in P opening downwards, negative before P−, positive between P− and P+, negative after P+. So below P− the population decreases (towards extinction), between the two it increases, above P+ it decreases: the HIGH equilibrium P+ is STABLE, the LOW equilibrium P− is UNSTABLE. The latter acts as a critical population threshold: a population that drops below 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−k4hcM=0, so hc=4kM. With k=0.4 and M=6000: hc=40.4×6000=600 fish per year. At this precise harvest, the discriminant is zero and the two equilibria MERGE into one, the double root P=2M=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=2M, where it equals kP(1−MP)=k⋅2M⋅21=4kM. 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=320: the quadratic P2−6000P+0.4320×6000=P2−6000P+4,800,000=0 has roots of about P−≈951 and P+≈5049. The population introduced at 500, below the unstable threshold 951, 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=560, closer to the critical value: P2−6000P+8,400,000=0 gives P−≈2225 and P+≈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=700, above the critical 600: the discriminant 36×106−42×106 is NEGATIVE, there is no equilibrium at all, and P′ is negative for every value of P, 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=4kM amounts to keeping the population on the DOUBLE root P=2M=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 P below 3000 puts the population in a zone where P′<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>hc makes the regime h=hc structurally fragile. The analysis of equilibria therefore advises setting the quota STRICTLY below hc, say at 80 or 90 percent, so as to keep two well-separated equilibria and a safety margin between the collapse threshold P− and the operating regime 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′=ycosx with y(0)=2. Compute y(2π).
b) y′=1+y2 with y(0)=0. On what interval does the solution exist? Compute y(4π).
c) xy′=3y with y(1)=2, for x>0. Compute y(2).
d) y′=2y with y(0)=0. Show that y=0 and y=x2 (for x≥0) are two solutions. What becomes of uniqueness?
e) y′=(2x+1)e−y with y(0)=0. Compute y(1).
Show the solution
Answers
a)y=2esinx; 2e
b)y=tanx on (−2π,2π)
c)y=2x3; 16
d)Two solutions: uniqueness fails
e)y=ln(x2+x+1); ln3
a)
ydy=cosxdx gives ln∣y∣=sinx+C1, that is y=Cesinx. With y(0)=2: C=2, so y=2esinx, defined on all of R and periodic. y(2π)=2e≈5.437.
b)
1+y2dy=dx gives arctany=x+C; with y(0)=0, C=0 and y=tanx. The solution exists only on (−2π,2π), that is up to x≈1.571: it blows up in finite time although the equation is defined everywhere. y(4π)=1.
c)
ydy=x3dx gives ln∣y∣=3lnx+C1, that is y=Cx3. With y(1)=2: y=2x3, and y(2)=16.
d)
y=0 gives y′=0=20 ✓. y=x2 gives y′=2x=2x2 for x≥0 ✓, and y(0)=0 in both cases. Two distinct solutions for the same initial condition: UNIQUENESS fails. The cause is the function y, whose slope is infinite at 0: the existence and uniqueness theorem requires a right-hand side that is regular enough in y, which is not the case here. For the nonzero solution, y(3)=9.
e)
eydy=(2x+1)dx gives ey=x2+x+C; with y(0)=0, C=1. So y=ln(x2+x+1), defined everywhere since x2+x+1>0. y(1)=ln3≈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), compute the integrating factor μ=e∫Pdx, solve, then apply the initial condition.
a) y′−2y=e3x, y(0)=0. Compute y(1).
b) y′+y=x, y(0)=0. Compute y(2).
c) y′+ytanx=cosx on (−2π,2π), y(0)=1. Compute y(3π).
d) xy′−2y=x3 for x>0, y(1)=0. Compute y(2).
e) y′+2xy=x, y(0)=1. What is the limit of y at +∞?
Show the solution
Answers
a)e3x−e2x
b)x−1+e−x
c)(x+1)cosx
d)x3−x2
e)21+21e−x2→21
a)
μ=e−2x: (e−2xy)′=ex, so e−2xy=ex+C and y=e3x+Ce2x. y(0)=1+C=0: C=−1, y=e3x−e2x. y(1)=e3−e2≈12.696.
b)
μ=ex: (exy)′=xex, and by parts ∫xexdx=(x−1)ex. So y=x−1+Ce−x; y(0)=−1+C=0 gives C=1. y(2)=1+e−2≈1.135. The solution joins the line y=x−1: the transient e−x dies out.
c)
μ=e∫tanxdx=e−ln(cosx)=cosx1, positive on the interval. The equation becomes (cosxy)′=1, so y=(x+C)cosx; y(0)=C=1. y(3π)=(3π+1)⋅21≈1.024.
d)
Standard form, dividing by x: y′−x2y=x2. μ=e−2lnx=x21: (x2y)′=1, so y=x3+Cx2; y(1)=1+C=0, C=−1. y(2)=8−4=4. Forgetting to divide by x before reading off P is the classic error.
e)
μ=ex2: (ex2y)′=xex2, so ex2y=21ex2+C and y=21+Ce−x2. y(0)=21+C=1: C=21. As x→+∞, y→21, the equilibrium solution y=21 that can be read directly from the equation.
Exercise 15: Euler and improved Euler against the exact solution
Consider y′=x−y with y(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).
b) Apply Euler's method yn+1=yn+hf(xn,yn) with h=0.5 to estimate y(1).
c) Start again with h=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+hf(xn,yn) then corrects with the average of the slopes: yn+1=yn+2h[f(xn,yn)+f(xn+1,y~)]. Apply it with h=0.5 and compare the error.
Show the solution
Answers
a)y=x−1+2e−x; y(1)=e2
b)0.5
c)0.6328
d)Ratio ≈2: order 1
e)Heun: 0.78125, error 0.0455
a)
y′+y=x: μ=ex, (exy)′=xex, so y=x−1+Ce−x. y(0)=−1+C=1: C=2 and y=x−1+2e−x. y(1)=e2≈0.7358.
b)
f(x,y)=x−y. Step 1: y1=1+0.5(0−1)=0.5 at x=0.5. Step 2: y2=0.5+0.5(0.5−0.5)=0.5 at x=1. Estimate: y(1)≈0.5.
c)
Four steps: y1=1+0.25(0−1)=0.75; y2=0.75+0.25(0.25−0.75)=0.625; y3=0.625+0.25(0.5−0.625)=0.59375; y4=0.59375+0.25(0.75−0.59375)≈0.6328.
d)
Errors: 0.7358−0.5=0.2358 and 0.7358−0.6328=0.1030. Ratio: 0.10300.2358≈2.3, close to 2: halving the step roughly halves the error. Euler's error is proportional to the step: the method is of order 1. Both estimates are too low: the solution is concave up (y′′=1−y′=y−x+1=2e−x>0) and the tangent line passes below the curve.
e)
Step 1: slope f(0,1)=−1, prediction y~=0.5, slope f(0.5,0.5)=0, average −0.5: y1=1−0.25=0.75. Step 2: slope f(0.5,0.75)=−0.25, prediction y~=0.625, slope f(1,0.625)=0.375, average 0.0625: y2=0.75+0.03125=0.78125. Error ∣0.7358−0.7813∣≈0.0455, five times smaller than Euler with the same step, for only two slope evaluations per step. Heun's method is of order 2: 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 h (in m) drops: dtdh=−kh, with time t in minutes. At the start, h(0)=4 m; after 5 minutes, the measured level is h(5)=2.25 m.
The figure below shows the situation; it is not to scale.
a) Solve the equation by separation and express h in terms of t, k and h(0).
b) Find k from the measurement at 5 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 dtdh=−kh would never empty. Explain the difference.
Show the solution
Answers
a)h=2−2kt
b)k=0.2
c)Empty at 20 min
d)Half height at 5.86 min
e)h dominates h near 0: finite time
a)
hdh=−kdt gives 2h=−kt+C, and C=2h(0)=4. So h=2−2kt, as long as this number is positive.
b)
2.25=1.5=2−25k, so k=0.2 (m1/2 per minute). Hence h=2−0.1t and h(t)=(2−0.1t)2.
c)
h=0 when 2−0.1t=0, that is t=20 minutes. Beyond that, the physical solution is h=0: the tank stays empty.
d)
h=2 gives 2=2−0.1t, that is t=10(2−2)≈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, weakens as the pressure of the water column decreases.
e)
With h′=−kh, the solution h=4e−kt never reaches 0: the rate of drop is proportional to h, and fades as fast as h does. With h, when h is small, h is MUCH larger than h (for example 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 at 0 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, the initial concentrations are [A]0=2 mol/L and [B]0=3 mol/L. The concentration x(t) of product formed (mol/L, t in minutes) satisfies the rate law dtdx=k(2−x)(3−x), with k=0.1 L/(mol·min) and x(0)=0.
a) Compute the initial rate of the reaction and decompose (2−x)(3−x)1 into partial fractions.
b) Solve the equation by separation and show that 2−x3−x=23ekt.
c) After how long does the concentration of the product reach 1 mol/L?
d) Express x(t) and compute x(10).
e) What value does x(t) tend to? Interpret chemically.
Show the solution
Answers
a)0.6; 2−x1−3−x1
b)2−x3−x=23ekt
c)10ln34≈2.88 min
d)x(10)≈1.675
e)Limit 2: limiting reactant
a)
x′(0)=0.1×2×3=0.6 mol/(L·min). Decomposition: (2−x)(3−x)1=2−xa+3−xb, that is 1=a(3−x)+b(2−x); at x=2, a=1; at x=3, b=−1. So (2−x)(3−x)1=2−x1−3−x1.
b)
∫(2−x1−3−x1)dx=−ln(2−x)+ln(3−x)=ln2−x3−x, for 0≤x<2. Hence ln2−x3−x=kt+C, and x(0)=0 gives C=ln23. Taking the exponential: 2−x3−x=23ekt.
c)
x=1 gives 12=23e0.1t, that is t=10ln34≈2.88 minutes.
d)
Let R=23ekt. From 3−x=R(2−x) you get x(R−1)=2R−3, so x(t)=R−12R−3. At t=10: R=1.5e≈4.077 and x(10)≈3.0775.155≈1.675 mol/L.
e)
As t→∞, R→∞ and x=1−1/R2−3/R→2. The reaction stops when A, the LIMITING REACTANT, is used up: 1 mol/L of B is then left in excess. The equation says so too: x′=0 for x=2, a stable equilibrium, whereas x=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.
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.