This set practises the first three lectures of the course: direction fields, Euler's method and first-order linear equations, with separation of variables from the recitation before them. It follows MIT's Problem Set 1, in our own words.
MIT's set has two parts. Part II holds MIT's own four problems, and MIT's solutions to them are on OpenCourseWare (the solutions). All four are written out below, with hints and solutions in our own words. Where our result or our method differs from MIT's, the solution says so in brackets. Part I is a list of routine exercises, partly from a textbook that is not used on this site and partly from MIT's own Notes and Exercises. Those are not rewritten: the last section of this page lists them and links to MIT's exercises and solutions.
MIT numbers the problems 0 to 3 and marks each with the day of the lecture it belongs to. Problem 0 belongs to the recitation before Lecture 1 (separable equations, covered on this site in the lesson on separation of variables), Problem 1 to Lecture 1, Problem 2 to Lecture 2 and Problem 3 to Lecture 3. MIT's lecture numbers are the same as this site's here. MIT's fourth lecture of the sheet, on integrating factors, has no problem in Part II.
How to answer#
Work each problem on paper first. Then type your result in the answer box and press Check. A formula box takes plain typing, for example k0*x/(a+t)^2, and accepts every correct way of writing the answer. Type k0 for and x0 for . A number box wants a decimal number, not a fraction or a square root, and its question says how exact your value must be: keep all the digits your calculator shows while you work. Unless a box asks for more digits, give 3 significant figures in the box; an answer with only 2 significant figures may or may not be accepted. MIT prints a point value for each task in its solutions. Where MIT gives a value for a lettered part, we use it; where MIT gives one value for several parts, or a part of ours has no value at MIT (marked "our addition"), the split is ours. If you are stuck, open the hints one at a time. Each problem or part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Parts that ask you to sketch, explain or prove something have no answer box, or a box for only a piece of them: compare your work with the solution and mark it yourself. Your score is kept in this browser only.
Problem 0#
A herd of oryx whose growth rate fades away
In a nature reserve, the number of oryx at time is , measured in thousands of animals (kilo-oryx), with in years. When the herd is small compared with its food, it grows at a natural growth rate : in a short time interval the population changes by about . (MIT's recitation also studied hunting; we leave that aside, as MIT does.)
A virus infects the herd, and the growth rate then fades with time according to
In words
k(t) equals k nought over the quantity a plus t, all squared, t is greater than or equal to 0
where and are positive constants.
(a)4 points
What are the units of the constant and of the constant ?
Hint
The growth rate multiplies to give a change in . What must the units of be, so that is in thousands of animals?
Hint
In a sum such as , both terms must have the same units. Then ask what must be, so that divided by (years)² gives the units of .
Solution
The idea. Every term of an equation, and every term of a sum, must have the same units.
The units of the rate
A change has the units of . So has no units, and is in 1/years: it is a rate per year.
The units of a and k₀
The constant is added to , which is in years, so is in years. The fraction must be in 1/years. The denominator is in years squared, so is in years:
In words
( k nought ) equals ( k ) the quantity a plus t, all squared equals 1 over years times years squared equals years
Check the result
Take years and year. At the rate is per year, a rate indeed. If were in 1/years, the rate would be in 1/years³ and would not be in thousands of animals.
(b)3 points
Write down the differential equation for . Give the right-hand side, the formula for .
Hint
Start from the change in a short interval: . Divide by and let go to zero.
Solution
The idea. In a short time the change of the population is the growth rate times the population times the length of the time. Divide by the length and shrink it.
The change in a short time
Over a short interval, with evaluated at the start,
In words
x of the quantity t plus capital delta t, minus x(t) is approximately k(t) x(t) capital delta t
The differential equation
Dividing by and taking the limit :
In words
x prime equals k nought over the quantity a plus t, all squared, times x
Check the result
The right side is in thousands of animals per year: in years divided by years² gives 1/years, times in thousands of animals. That is also the unit of . And when , but the growth slows down as increases, as the virus is meant to do.
(c)4 points
Find the general solution of your equation, for all values of and where it makes sense, not only those that matter for oryx. MIT's two warnings: use the absolute value in correctly, and do not forget solutions that are lost when you divide by .
Write the answer as times an exponential, with an arbitrary constant.
Hint
Separate the variables: put everything with on the left and everything with on the right. You divide by here. Which function would you lose by doing so?
Hint
An antiderivative of with respect to is . After integrating you have on one side. Take the exponential of both sides and deal with the absolute value.
Solution
The idea. The equation is separable. Divide by , integrate both sides, take exponentials, and then put back the solution lost in the division.
Separate and integrate
For , divide by and multiply by :
In words
d x over x equals k nought the quantity a plus t, all to the power minus 2 d t
Integrating, with an arbitrary constant (the constants on the two sides are merged into one):
In words
log the absolute value of x equals minus k nought over the quantity a plus t, plus c
Remove the logarithm and the absolute value
Exponentiating gives . So is or minus that, and both are covered by writing with , any nonzero number.
The lost solution
Dividing by excluded . But for all does solve , since both sides are zero. It is the case of the formula, so the formula holds for every real :
In words
x(t) equals capital C e to the power minus k nought over the quantity a plus t, end of power, capital C any real number
The formula and the equation make sense for . For , and in fact for every , this is one solution for each . On the other side, for , the constant can be chosen independently, because the point cannot be crossed.
Check the result
Differentiate: , the equation of part (b). The exponent has no units, as an exponent must be: is in years, in years.
(d)4 points
At there is a positive population . Does the fading growth rate make the population settle at a limit for large , or does the population grow without bound? If it settles, give the limiting population as , in terms of , and .
Hint
Use to find . Then look at the exponent when is very large.
Solution
The idea. For large the exponent goes to zero, so the exponential goes to 1 and goes to .
Find C
With the general solution gives , so and
In words
x(t) equals x nought e to the power k nought over a, end of power, e to the power minus k nought over the quantity a plus t, end of power
The limit
As the exponent goes to and its exponential to 1. The population does not grow without bound. It settles at
In words
the limit as t goes to infinity of x(t) equals x nought e to the power k nought over a, end of power
The reason is that the total growth is limited: is finite, because falls off like .
Check the result
The factor is more than 1, so the herd ends up larger than it began, as it should: the growth rate stays positive. For a very large (a virus that acts only very late) the factor is near 1, and for (no growth at all) it is exactly 1.
Problem 1#
The direction field of y′ = y² − x
This problem studies the solutions of
In words
d y over d x equals y squared minus x
None of its solutions can be written with the functions of ordinary calculus, but a lot can be learned from the direction field. MIT asks you to use one of the course's Mathlets, the Isoclines mathlet (MIT's Mathlets page; the sheet gives the address math.mit.edu/mathlets/mathlets). The mathlets were Java applets, and a modern computer may not run them. Any other tool that draws direction fields and solution curves will do just as well: a graphing calculator, a notebook with a numerical solver, or an online direction-field plotter. The problem does not depend on the tool.
(a)3 points
On a large pair of axes, with and both from to , sketch the isoclines of slopes , , and , and draw a few short line elements on each. Then sketch a couple of solution curves, using only that information. Afterwards, draw the same isoclines in your tool and compare the solution curves with your sketch. (The sheet's instructions for the mathlet name the slopes , , and and its list above names , , and : use the list above.)
This part has no answer box: compare your sketch with the solution and mark it yourself.
Hint
The isocline of slope is the set of points where the right side equals . Solve that equation for in terms of : each isocline is a parabola opening in one direction.
Hint
On an isocline all the line elements are parallel. Then draw a solution so that it crosses each isocline with the slope of that isocline: it is steeper where is large.
Solution
The idea. The equation defines the isocline of slope . It is easiest to solve it for , because appears only once.
The isoclines
Setting and solving for :
In words
x equals y squared minus m
Each isocline is a parabola opening to the right, with its vertex at on the -axis. For the vertex is at the origin; for it is at ; for it is at . The line elements along the parabola for are horizontal, those for have slope 1, those for have slope 2, and those for have slope .
The solution curves
Where , that is to the left of the parabola for , all slopes are positive. Where , between the two branches of that parabola, the slopes are negative. A solution rises as it moves through the left region, flattens out on the parabola (the nullcline, where ), and where it enters the region on the right of it, it falls. Solutions that stay to the left keep rising steeply: the slope grows like , and they shoot up.
Check the result
At the origin, : the origin is on the isocline , and the line element there is flat. At the slope is : it is on the parabola , which is the isocline for . [MIT's solutions point out that the printed picture lacks the isocline.]
(b)3 points
A separatrix is a curve that separates solutions with two different kinds of behaviour. For this equation there is a separatrix such that solutions above it grow without bound as increases (they have a vertical asymptote), while solutions below it keep going, and eventually fall. With your tool, find the separatrix and sketch it.
Our addition: the box asks which curve the separatrix itself approaches as .
Hint
Start solutions at with different values of , and look at where they end up. Between the ones that blow up and the ones that fall, there is a narrow gap. That gap holds the separatrix.
Hint
For large the separatrix is also a solution that lives for ever, but does not fall. For such a solution cannot be much more than zero and cannot be much less. What does that say about and ?
Solution
The idea. Follow solutions with a numerical solver, starting each at the same and at different . A solution slightly too high goes to infinity in finite ; one slightly too low drops. The separatrix is the borderline solution.
What you see
In your tool, start solutions on the line with ranging from to , say. Those that start high blow up: they go to infinity at a finite (a vertical asymptote). Those that start lower rise, reach a maximum where they meet the parabola (on its upper half if they start between and the separatrix, on its lower half if they start below ), and then fall and follow its lower half, . The borderline solution rises more slowly and stays near the upper half of the parabola, the curve .
Computed with a numerical solver (our own check, not from the sheet), the separatrix passes through at about and then follows closely.
Why the upper branch
Write with small. Then , and the equation says , because itself rises with slope . A solution with a little more than has and is pushed further above the curve: it goes up and blows up. One with a little less is pushed down and falls through the lower region. So the region around the upper half of the nullcline repels, and only the separatrix itself, with close to , can stay there as grows. [MIT's solutions describe it in the same way: the separatrix lives for ever, has no maximum, and is asymptotic to .]
Check the result
Try itself in the equation: the left side is and the right side is . They are both small for large , but not equal, so the separatrix is near the curve and not equal to it.
(c)3 points
Suppose a solution is tangent to the isocline: it touches the isocline at a point , and the two curves have the same slope there. Find that point in your tool first, and then calculate and exactly. Enter the two numbers as decimals.
Hint
On the isocline the solution has slope . At the point of tangency the isocline also has slope . The isocline is the curve .
Hint
Differentiate with respect to , treating as a function of : . Put and find . Then use the isocline to find .
Solution
The idea. At the point of tangency the slope of the isocline must be , which is also the slope of every solution that crosses or touches the isocline .
The slope of the isocline
The isocline is . Differentiating with respect to , with a function of along the curve (the chain rule gives ):
In words
1 equals 2 y d y over d x, d y over d x equals 1 over the quantity 2 y
The point
Setting the slope of the isocline equal to gives . The point is on the isocline, so :
In words
(a, b) equals the quantity five quarters, minus one half, equals the quantity 1.25, minus 0.5
The lower branch of the isocline is the one with , and that is where the tangency takes place: the upper branch has positive slope and never reaches .
Check the result
At the equation gives , so the point is on the isocline and a solution through it has slope , the same as the isocline: a tangency.
(d)3 points
Now let be a solution with , where is the point of part (c). What happens to it as ? More exactly: find a function whose graph comes closer and closer to as grows, and say whether, for large , is above , below it, or whether this depends on .
The box takes as a constant times a power of . (MIT also accepts for any constant , the same curve shifted sideways, which differs from by an amount that goes to ; a single form is easier for a box to check.) The second box is our addition. Then explain, in your own words, why the following two observations are true, and how they give your answer. (MIT's sheet states three observations; its second and third are only loosely worded, and MIT's own solution replaces them by the second statement below. We follow MIT's solution.) These have no box: mark them yourself.
- The graph of cannot cross the isocline at a point with .
- A solution that is above the lower half of the nullcline stays above it; a solution that is below it at some must eventually reach it.
Hint
Use part (c): can the solution cross the isocline for ? Where must it be, compared with the nullcline, once is large?
Hint
Write the lower branches of the isocline and of the nullcline as functions of . What happens to the distance between them as grows?
Solution
The idea. Trap the solution between two curves that come together: the isocline from above, and the nullcline from below.
The solution stays below the isocline
Let , so the point is below the lower branch of the isocline , which is . Suppose the solution did reach this branch at a point with , and let it be the first such point. It would arrive from below, so its slope there would be at least the slope of the isocline. The slope of the lower branch is (from with ), which for is larger than , because there. But on the isocline every solution has slope exactly , which is smaller. The two requirements contradict each other, so the solution never reaches the isocline for (observation 1):
In words
y(x) less than minus the square root of x minus 1, end of root, (x greater than a)
The solution ends up above the nullcline
The lower branch of the nullcline is . Its slope is negative. First, a solution above it stays above it: to cross it downward it would need a slope at most equal to the (negative) slope of the nullcline, but a solution crossing the nullcline has slope . Second, suppose the solution is below the nullcline at some point and never reaches it. Below the nullcline , so the slope is positive and keeps increasing from that point on. But being below the nullcline also means , which goes to . A function that keeps increasing cannot stay below for ever. So it does reach the nullcline, and from then on stays above (observation 2).
In words
y(x) greater than minus the square root of x ( for large x)
Squeeze
Combining the two bounds, for large
In words
minus the square root of x less than y(x) less than minus the square root of x minus 1, end of root
The two bounds differ by , which goes to . So comes closer and closer to , and it stays above it, whatever the value of was, as long as it was below . [MIT writes "or indeed for any ": since , all of these are asymptotic to the same solutions. MIT then notes that for some solutions lie below for some , so with those the comparison would depend on . With the plain the answer is always "above".]
Check the result
A closer look at with a small : putting it into gives , so . A numerical solver agrees (our own check): for starting values the difference at is in every case, which is to four decimal places. The solution lies above by about , and the starting value no longer matters.
(e)3 points
Suppose a solution has a critical point at : that is, and . What is the relationship between and ? Give in terms of .
Hint
At a critical point the slope is zero. Which curve of the picture is the set of points where the slope is zero?
Solution
The idea. A critical point is a point where , so it lies on the isocline .
Put the point into the equation
At the equation reads , and the slope is zero:
In words
0 equals d squared minus c, c equals d squared
All critical points of all solutions lie on the parabola , the isocline , which is the nullcline.
Check the result
At the critical point is at : the point . The slope there is . In the picture of part (a) this is a point of the lower branch of the parabola for , , where the line element is horizontal.
(f)3 points
In the mathlet all the critical points look like local maxima. Is that true? Use the equation to find at a critical point and then decide. The box asks for the value of there. Give your reasoning for the answer: it has no box and you mark it yourself.
Hint
Differentiate with respect to . The derivative of is .
Solution
The idea. The second derivative test: at a point with , a negative means a local maximum.
The second derivative
Differentiating the equation with respect to , with a function of :
In words
y double prime equals 2 y y prime minus 1
At a critical point
There , so , whatever the value of . Every critical point is therefore a strict local maximum, and a solution has at most one of them. [MIT gives two arguments: this one, and a picture argument that solutions with a critical point rise and then follow downward.]
Check the result
In part (e) the critical point is on the nullcline. The slope on its left, in the region , is positive, and on its right, inside the parabola, negative: it rises and then falls, a maximum, as says.
Problem 2#
Euler's method for y′ = 2x
Let be the solution of with . Use Euler's method with equal steps from to . With steps the step size is , the points are , and each step is
In words
y sub k plus 1 equals y sub k plus h f( x sub k, y sub k )
with here.
MIT splits its points over the tasks as follows: 2 for , 5 for each of and , and 8 for the general . The split of the 8 between the general formula and the error is ours.
(a)2 points
What is ?
Hint
The equation needs only an antiderivative.
Solution
The idea. The right side does not contain , so this is an integral.
Integrate
An antiderivative of is , and fixes the constant:
In words
y(x) equals x squared, y(1) equals 1
Check the result
and , as required.
(b)5 points
Find the Euler approximation of with equal steps. Give it as a decimal.
Hint
The step size is . The slope at the start is .
Hint
The first step goes from to with slope . The second goes from to with slope .
Solution
The idea. Each step uses the slope at the left end of its interval.
The two steps
With : and give slope , so . At the slope is , so
In words
y two equals y one plus h times 1 equals 0 plus one half times 1 equals one half
Check the result
The estimate is below the exact value . That is right for a solution that curves upward: each step follows the tangent at its left end, and a convex curve lies above its tangents.
(c)5 points
Now find the Euler approximation of with equal steps. Give it as a decimal, to four decimal places.
Hint
and , , . You need the slopes at these three points.
Solution
The idea. Same as before, with three steps.
The three steps
The slopes are : , and . Each is multiplied by :
In words
y three equals 0 plus one third times 0 plus one third times two thirds plus one third times four thirds equals two ninths plus four ninths equals two thirds
Check the result
lies between the two-step value and the exact value : more steps give a better answer.
(d)5 points
Now let be any natural number. Find the Euler approximation of with equal steps, as a formula in . (MIT's hint: .) Then say whether the approximations converge to as .
Hint
Write the sum of the steps: with . Every term has the factor .
Hint
Take out : what remains is , and MIT's hint gives its sum. Then put .
Solution
The idea. Add up the steps and use the sum of the first whole numbers.
The sum
At the -th step, and the slope is , so the step adds . With ,
In words
y sub n equals the sum over k equals 0 of to the power n minus 1, end of power, 2 k h squared equals 2 h squared the quantity 0 plus 1 plus and so on plus the quantity n minus 1, equals 2 h squared n the quantity n minus 1, over 2 equals n the quantity n minus 1, h squared
Put
In words
y sub n equals n the quantity n minus 1, over n squared equals the quantity n minus 1, all over n equals 1 minus 1 over n
As , , so : the approximations do converge to the exact value.
Check the result
For the formula gives and for it gives , the values of parts (b) and (c). For it gives : one step with slope stays at .
(e)3 points
The lecture and the textbook claim that for small Euler's method has an error at most proportional to . The -step approximation has . What is the exact error , as a formula in ? Does it agree with the claim?
The box asks for the error. Whether it agrees with the claim is for you to mark.
Hint
You know from part (a) and from part (d). Subtract.
Solution
The idea. Subtract the approximation from the exact value.
The error
In words
y(1) minus y sub n equals 1 minus the quantity n minus 1, all over n equals 1 over n equals h
Does it agree with the claim?
Yes. The claim says the error is at most proportional to . Here it is exactly : the constant of proportionality is 1. The error halves when the step size halves, which is what a method of first order does. [MIT's solutions note that the error is "exactly ".]
Check the result
With the error is , and with it is .
Problem 3#
A trust fund for a nephew
Scrooge McDuck wants to set up a trust fund for his nephew Don. His sure-fire investments earn interest at the constant rate , measured in 1/years (so means 5 per cent per year), and he plans to pay out money to his spendthrift nephew at the constant rate dollars per year. Let be the value of the fund, in dollars, years after it is set up, and let the interest be added continuously.
(a)5 points
Model this by a differential equation. Use the symbols and , not particular numbers. Give the right-hand side for . Explain your steps.
Hint
In a short time the fund gains interest on its present value, and loses the payments. Write the two changes separately.
Solution
The idea. The fund changes by the interest it earns minus what is paid out. Write that for a short time and take the limit.
The change in a short time
In a short interval from to the fund earns interest and pays out :
In words
x of the quantity t plus capital delta t, minus x(t) is approximately I x(t) capital delta t minus q capital delta t
The differential equation
Divide by and let :
In words
x prime equals I x minus q
Check the result
The units match: is (1/years) times dollars, and is dollars per year, which is also the unit of . A fund with no interest () just loses dollars every year: .
(b)5 points
Find the solution of this equation that starts with dollars. (MIT asks for the general solution, with an arbitrary constant . We ask for it in terms of the starting value , which is the same family with , and which has only one correct form.)
Hint
The equation is linear and also separable: . Integrate both sides. The left side gives .
Hint
After integrating, multiply by , take the exponential, and remove the absolute value as in Problem 0. Solve for , and then use .
Solution
The idea. Separate, integrate, remove the logarithm, then fix the constant with the starting value.
Separate and integrate
For :
In words
d x over the quantity I x minus q, equals d t, 1 over I, times log the absolute value of I x minus q equals t plus c
Solve for x
Multiply by , exponentiate, and remove the absolute value. The solution lost by dividing by is the constant solution , and it is included again with a zero constant. This gives the general solution
In words
x(t) equals q over I plus capital C e to the power I t
Use the starting value
At , , so :
In words
x(t) equals q over I plus the quantity x nought minus q over I, e to the power I t
Check the result
At it gives . Differentiating, , and : the same, so the equation holds. If the exponential term vanishes and stays at .
(c)5 points
Now take per year. Uncle Scrooge wants to pay his nephew 1000 dollars per month for ever, while keeping the balance of the fund constant. Treat the payments as continuous, at the rate dollars per year. How much must he put in? Give the amount in dollars.
Hint
A constant balance means . Put that in the equation of part (a).
Solution
The idea. A constant balance means the interest exactly pays the payouts.
The constant solution
If then , so the balance is
In words
x equals q over I equals 12 000 over 0.05 equals 240 000 dollars
Check the result
Interest on 240 000 dollars at 5 per cent per year is 12 000 dollars per year, exactly the payout. [MIT adds that with more than this the fund would still grow while paying.]
(d)5 points
But Scrooge wants to teach his nephew self-reliance, and so plans for the fund to run out of money in exactly twenty years, still paying 1000 dollars per month ( dollars per year, continuous, per year). How much must he put in at the start? Give the answer in dollars, to the nearest cent.
Hint
Use the solution of part (b) and require . Solve for .
Hint
With you can write in terms of . Then solve for and put in the numbers.
Solution
The idea. Choose the starting value so that the solution of part (b) is zero at .
Require x(T) = 0
From part (b), . Solve for :
In words
x nought equals q over I, times the quantity 1 minus e to the power minus I capital T
The number
With :
In words
x nought equals 240 000 the quantity 1 minus e to the power minus 1, equals 240 000 times 0.632 120 56 equals 151 708.93 dollars
That is about 63 per cent of the sum in part (c).
Check the result
The fund is smaller than the amount of (c), since it is allowed to run down. It is larger than , and a fund that earned no interest would need dollars. A fund that does earn interest needs less, and 151 708.93 is less. For the formula gives back of part (c). [As MIT does, we treat the payments as a continuous flow; actual monthly payments would change the cents.]
More practice: MIT's own solved exercises#
Part I of MIT's Problem Set 1 is worth 23 points at MIT and is not scored here. It lists routine exercises. Some come from the textbook of the course (Edwards and Penney), which is not openly licensed and is not used on this site, so they are not part of this page. The others come from MIT's Notes and Exercises, which is on MIT OpenCourseWare under the same licence as the rest of the course, with solutions. They are not rewritten here: open the exercises of section 1, first-order ODE's, try them, then compare with MIT's solutions.
An exercise number such as 1C-4 means section 1, group C, exercise 4; letters after it name its parts. MIT assigned these Notes exercises, day by day:
| For | Exercises in section 1 of the Notes |
|---|---|
| The recitation before Lecture 1: natural growth and separable equations, see separation of variables | 1A-5c |
| Lecture 1: direction fields and isoclines | 1C-1a, b, e |
| Lecture 2: Euler's method | 1C-4 |
| Lecture 3: linear models | none from the Notes (two textbook exercises, not used here) |
MIT's list also gives the sections of the textbook to read and further textbook exercises for the recitation and for Lectures 1 to 3; the textbook is not used on this site.