This set practises two lessons: average value, weighted averages and probability and numerical integration. It follows MIT's Problem Set 6, in our own words.
MIT's set has two parts. Part II holds MIT's longer problems, for which MIT publishes no solutions. Four of them are written out below, with hints and solutions of our own (20 points). Part I is a list of short exercises from MIT's course reader, most of which MIT has solved itself. Those are not rewritten here: the last section of this page lists them and links to MIT's exercises and solutions.
Two items of MIT's Part II are left out, so the problem numbers below start at 2. MIT's Problem 0 (3 points) asks students to name the people they worked with, which is course administration. Problem 1 (7 points) is a pair of exercises on volumes from the course textbook (Simmons, Calculus with Analytic Geometry), which is not openly licensed and is not used on this site. It was the only Part II problem on volumes by disks and shells; the course-reader exercises on volumes are in the list at the end. With those two items, MIT's Part II is worth 30 points.
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 C/sqrt(2) or y0 + 4*y1, and accepts every correct way of writing the answer. Type sqrt(2) for and pi for . A number box wants a decimal number, not a fraction, 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. Set the calculator to radians for Problem 5. The points per problem are MIT's, and so is the split of Problem 3. The parts of Problems 4 and 5, their letters and their points are 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 show something have no answer box: compare your work with the solution and mark it yourself. Your score is kept in this browser only.
Problem 2#
The voltage a meter shows
The voltage of the electricity supply in a house swings back and forth. MIT models it by
In words
V(t) equals C sine (120 pi t)
Here is the time in seconds and is a constant, the amplitude: the voltage swings between and . A period (or cycle) is the time after which repeats itself.
Take the average value of over one period, and then the square root of that average. The result is called the root-mean-square voltage, RMS for short. It is the voltage that a meter on the house shows. ( is in square volts. The square root after averaging brings the result back to volts.)
Find the RMS voltage in terms of .
Hint
First find the period. The sine repeats when its angle has grown by : how much time does that take here?
Hint
The lesson gives the average of a function over an interval as its integral divided by the length of the interval. Apply that to over one period.
Hint
To integrate , write it with the cosine of twice the angle: .
Solution
The idea. The average of a function over an interval is its integral divided by the length of the interval. Here the function is and the interval is one period.
The period
The sine repeats when its angle grows by . That takes a time second, so one period runs from to . (The current goes through 60 cycles every second.)
Set up the average of V²
The lesson defines the average of over as
In words
1 over the quantity b minus a, times the integral from a to b of f(x) d x
For over one period, , so dividing by it is multiplying by 60:
In words
average of V squared equals 60 the integral over 0 of to the power 1 over 60, end of power, C squared sine squared (120 pi t) d t
Integrate
Use , a half-angle formula from trigonometry (the lesson on trigonometric integrals comes back to it), with :
In words
the integral over 0 of to the power 1 over 60, end of power, sine squared (120 pi t) d t equals the quantity t over 2 minus sine (240 pi t) over the quantity 480 pi, sub 0 to the power 1 over 60 equals 1 over 120
The sine term is zero at both ends, because . So
In words
average of V squared equals 60 C squared times 1 over 120 equals C squared over 2
Take the square root
In words
V r m s equals the square root of C squared over 2, end of root, equals C over the square root of 2 is approximately 0.7071 C
(The name is ours.) The meter shows about 71% of the peak voltage.
Check the result
The average of over a full period can be found without integrating. The graph of is the graph of shifted sideways, so over a full period the two have the same average. They add up to at every moment, so each averages . That gives again. The units are right too: is in volts, and so is . As an example with our own number: a meter that shows volts means a peak voltage of volts.
Problem 3#
Probabilities from areas, and the decay of a particle
The lesson on probability works with one rule:
In words
probability equals part over whole
(a)1 point
A point is picked at random from the unit square , . The probability of landing in a region is the area of that region. What is the probability that ? Give it as a decimal, correct to three decimal places.
Hint
Draw the square and the curve . On which side of the curve is ?
Hint
The area under the curve is an integral you know. The area you want is what is left of the square.
Solution
The idea. The points with are the points of the square above the parabola . The square has area , so the probability is the area of that region.
The area above the parabola
Above each between and , the region runs from up to :
In words
the integral from 0 to 1 of the quantity 1 minus x squared, d x equals the quantity x minus x cubed over 3, sub 0 to the power 1 equals two thirds
The whole is the area of the square, , so the probability is .
Check the result
The region under the parabola has area . Together with that fills the square. More than half is reasonable: inside the unit square the parabola stays below the diagonal , which cuts the square in half.
(b)2 points
Now the point is picked from the larger square , , with a probability proportional to the area. What is the probability that ? Give it as a decimal, correct to three decimal places.
Hint
The whole is no longer . What is it?
Hint
Draw the curve in this square. It leaves the square through the top edge, not through the corner. At which ?
Solution
The idea. Part over whole. The whole is the area of the square, . The part is the region above the parabola, and the parabola now reaches the top of the square before it reaches the right-hand side.
Where the parabola leaves the square
The parabola meets the top edge where , at . To the right of that, is larger than , so no point of the square has there.
The part
In words
the integral from 0 to the square root of 2 of the quantity 2 minus x squared, d x equals the quantity 2 x minus x cubed over 3, sub 0 to the power the square root of 2 equals 2 the square root of 2 minus 2 the square root of 2 over 3 equals 4 the square root of 2 over 3 equals 1.886
Part over whole
In words
P equals the quantity 4 the square root of 2 over 3, all over 4 equals the square root of 2 over 3 equals 0.471
Check the result
A common slip is to integrate all the way to . That gives , and a probability of , but it counts the stretch from to , where is negative, as negative area. The probability is smaller than in part (a), which makes sense: in the larger square the parabola climbs steeply and cuts off a strip on the right in which no point qualifies.
(c)1 point
Evaluate
In words
W equals the integral from 0 to infinity of e to the power minus a t d t equals the limit as capital N goes to infinity of the integral of sub 0 ^ capital N e to the power minus a t d t
for a constant . (That must be positive is our addition.) This is called an improper integral: it stands for the area of a region that goes on for ever. The letter stands for "whole".
Hint
Integrate from to first. Only then let grow.
Hint
What happens to as grows, when is positive?
Solution
The idea. Integrate up to a finite time , then see what is left when goes to infinity.
Integrate up to N
In words
the integral of sub 0 ^ capital N e to the power minus a t d t equals ( minus e to the power minus a t over a ) sub 0 ^ capital N equals the quantity 1 minus e to the power minus a capital N, all over a
Take the limit
For the exponential goes to as grows. So
In words
W equals the limit as capital N goes to infinity of the quantity 1 minus e to the power minus a capital N, all over a equals 1 over a
Check the result
If is in seconds, is in 1/second, because the exponent must be a pure number. Then is in seconds, as an integral over time of a pure number must be. With and the area up to is already , close to : the region is endless, but its area is finite.
(d)2 points
A radioactive particle decays at a moment that cannot be predicted. The probability that it decays at some time in the interval is
In words
P( ( 0, capital T ) ) equals part over whole equals 1 over W, times the integral of sub 0 ^ capital T e to the power minus a t d t
so that : the particle is certain to decay at some time. The half-life is the time for which .
Find the values of and for which the half-life is second, each within 0.5%. Then, for a particle with that half-life, find the probability that it survives until but decays at some time in the interval : write it as an integral, and give its value (the box wants it within ).
Hint
Work out with the of part (c). The result has no fraction left in it.
Hint
A particle that decays between and has survived until . So the part is the area under from to .
Solution
The idea. With the probability of decay before time is . The half-life fixes , and the probability for any other interval is again part over whole.
The probability of decay before T
In words
P( ( 0, capital T ) ) equals a the integral of sub 0 ^ capital T e to the power minus a t d t equals a times the quantity 1 minus e to the power minus a capital T, all over a equals 1 minus e to the power minus a capital T
The half-life fixes a and W
Put and :
In words
1 minus e to the power minus a equals one half which gives e to the power minus a equals one half which gives a equals log 2 equals 0.6931, W equals 1 over a equals 1 over the quantity log 2, equals 1.4427
Here is in 1/second and in seconds.
Decay between and
The particle decays in this interval exactly when its moment of decay lies between and . That is the area under from to , divided by the whole:
In words
P( ( 1, 2 ) ) equals 1 over W, times the integral from 1 to 2 of e to the power minus a t d t equals e to the power minus a minus e to the power minus 2 a equals one half minus one quarter equals one quarter
With a calculator: , a probability of 25%.
Check the result
The chance to survive the first second is . For a particle that has survived, the next second is one more half-life, so it decays in it with chance again: . The three possibilities also add up to certainty: for decay before , between and , and for surviving beyond .
Problem 4#
Why Simpson's rule works: the area under a parabola
The lesson on numerical integration states the formula behind Simpson's rule without proof. Here you prove it.
Take an interval from to of length , with its midpoint , and any three points , , above them. Exactly one quadratic function
In words
y equals capital A x squared plus capital B x plus C
has a graph through all three points. Simpson's rule rests on the claim that the area under this parabola, above the interval from to , is
In words
h over 3, times the quantity y nought plus 4 y one plus y two
This is the lesson's formula with for (Lecture 24 notes, p. 3). MIT points out what the proof teaches: a calculation becomes short when you use symmetry and look ahead to see what you really need.
Sliding the parabola to the left or to the right does not change the area under it. So you may put the midpoint at zero: , , . Everything below is to be expressed in , , and .
(a)1 point
Make a sketch of the three points and the parabola, and find .
Hint
One of the three points has . Put it into the equation of the parabola.
Solution
The idea. At the terms and vanish, so the quadratic takes the value there.
The sketch
Mark , and on the -axis, with the points , and above them, and draw a parabola through the three points. The area in question lies between the parabola and the -axis, from to .
Use the middle point
The parabola passes through :
In words
y one equals capital A times 0 squared plus capital B times 0 plus C equals C
Check the result
is a height, like . It does not depend on the other two points: they fix and .
(b)2 points
Show, by integrating, that the area can be found once you know alone (besides ), or better still the combination .
Hint
Integrate from to , term by term. One term gives nothing. Why?
Hint
Take a factor out of your result, to make it look like the formula you are aiming for.
Solution
The idea. The interval from to is symmetric about zero, so the odd term integrates to zero. never has to be found.
Integrate term by term
In words
the integral from minus h to h of the quantity capital A x squared plus capital B x plus C, d x equals the quantity capital A x cubed over 3 plus capital B x squared over 2 plus C x, sub minus h to the power h equals 2 capital A h cubed over 3 plus 2 C h
The middle term is the same at both ends, , and drops out.
Take out the factor h/3
In words
2 capital A h cubed over 3 plus 2 C h equals h over 3, times the quantity 2 capital A h squared plus 6 C
is known from part (a). So the only thing still to find is .
Check the result
For the flat line (with and ) this gives : width times height , the area of a rectangle. With our own numbers , , and the formula gives , and the integral of from to is as well, whatever is.
(c)2 points
Find in terms of , and .
Hint
Write down what it means that the parabola passes through the two outer points. That gives two equations.
Hint
You do not want . Combine the two equations so that it disappears.
Solution
The idea. The two outer points give two equations in which appears with opposite signs. Adding them removes and leaves exactly the combination .
The two outer points
In words
y nought equals capital A h squared minus capital B h plus C, y two equals capital A h squared plus capital B h plus C
Add them
In words
y nought plus y two equals 2 capital A h squared plus 2 C which gives 2 capital A h squared equals y nought plus y two minus 2 y one
using from part (a).
Check the result
If the three points lie on a straight line, is the average of and , and the result is : no term is needed, as it should be. For the parabola with the heights are , and , and the result is , which is with .
(d)1 point
Put the results of parts (a) to (c) together to prove the formula for the area.
Hint
Part (b) gave the area in terms of and . Parts (a) and (c) give those two in terms of the three heights.
Solution
The idea. Substitute.
Substitute into the area
In words
h over 3, times the quantity 2 capital A h squared plus 6 C, equals h over 3, times the quantity y nought plus y two minus 2 y one plus 6 y one, equals h over 3, times the quantity y nought plus 4 y one plus y two
Why the shift was allowed (our remark)
Sliding the parabola sideways keeps the three heights, the width and the area. The shifted curve is still the graph of a quadratic function. So the formula, which contains only and the three heights, holds wherever the interval lies.
Check the result
For the constant function the formula gives , the area of a rectangle of width and height . For from to it gives , and indeed . The middle height counts four times as much as each outer height: the weights , , of the lesson.
Problem 5#
Simpson's rule on a Fresnel integral
The function has no antiderivative that can be written with the usual functions, so its integrals have to be computed numerically. They are called Fresnel integrals. This problem is about
In words
the integral from 0 to a of cos (t squared ) d t with a equals the square root of pi over 2, end of root
Use a calculator, set to radians, to make a table of values of , and approximate the integral with Simpson's rule:
In words
the integral from a to b of f(x) d x is approximately capital delta x over 3, times the quantity y nought plus 4 y one plus 2 y two plus 4 y three plus and so on plus 2 y sub n minus 2 plus 4 y sub n minus 1 plus y sub n
Write your approximations to six decimal places. Each box accepts a value within of ours, so do not round or the values in your table while you work.
For comparison: to five decimal places the integral is . (MIT's sheet prints as the exact value. That number is times the integral, , so it is not the value to compare with. The correction is ours.)
(a)2 points
Use four intervals.
Hint
Four intervals of equal width from to need five values of . What is at each of them, as a multiple of ?
Hint
The weights for four intervals are , and the sum is multiplied by with .
Solution
The idea. Divide the interval into four equal pieces, tabulate the integrand at the five points, and add the values with the weights .
The table
Here and . The points are with from 0 to 4, so there :
| weight | ||||
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 |
| 1 | 0.313329 | 0.995185 | 4 | |
| 2 | 0.626657 | 0.923880 | 2 | |
| 3 | 0.939986 | 0.634393 | 4 | |
| 4 | 1.253314 | 0 | 1 |
Add with the weights
In words
0.313329 over 3, times the quantity 1 plus 4 times 0.995185 plus 2 times 0.923880 plus 4 times 0.634393 plus 0, equals 0.1044428 times 9.366071 equals 0.978219
Check the result
The value is above the integral, : correct to about three decimal places, from only five values of the function. The last value in the table is exactly , because was chosen so that .
(b)2 points
Use eight intervals.
Hint
The five points of part (a) are every second point of the new table, so only four values are new.
Hint
The weights are now , and .
Solution
The idea. The same, with half the step. The old points keep their values but most of them get a new weight.
The table
Now , the points are with from 0 to 8, and there :
| weight | |||
|---|---|---|---|
| 0 | 0 | 1 | 1 |
| 1 | 0.156664 | 0.999699 | 4 |
| 2 | 0.313329 | 0.995185 | 2 |
| 3 | 0.469993 | 0.975702 | 4 |
| 4 | 0.626657 | 0.923880 | 2 |
| 5 | 0.783321 | 0.817585 | 4 |
| 6 | 0.939986 | 0.634393 | 2 |
| 7 | 1.096650 | 0.359895 | 4 |
| 8 | 1.253314 | 0 | 1 |
Add with the weights
The values with weight 4 add up to and those with weight 2 to :
In words
0.156664 over 3, times the quantity 1 plus 4 times 3.152881 plus 2 times 2.553458 plus 0, equals 0.0522214 times 18.718438 equals 0.977503
Check: compare the two approximations
With eight intervals the value is only above the integral, against with four. Halving the step made the error about 15 times smaller. That fits the lecture's rough statement that the error of Simpson's rule is of the order of (Lecture 24 notes, p. 5): half the step should give about of the error.
More practice: MIT's own solved exercises#
Part I of MIT's Problem Set 6 (22 points at MIT, not scored here) is a list of short exercises from Section E of the course's Supplementary Notes. David Jerison, who wrote them, also wrote out their solutions, in Section S. Both are on MIT OpenCourseWare under the same licence as the rest of the course, so they are not rewritten here: open the exercises (Section E), try them, then compare with MIT's solutions (Section S).
An exercise number such as 4C-2 means Section 4, group C, exercise 2; the letters after it are its parts. MIT assigned these, lecture by lecture:
| For | Exercises in Section E |
|---|---|
| Lecture 22: volumes by disks and shells | 4B-2e, g, 4B-5; 4C-1a, 4C-2, 4C-3; 4J-3 |
| Lecture 23: average value and probability | 4D-2, 4D-3, 4D-5 |
| Lecture 24: numerical integration | 3G-1a, d, 3G-4 |
| Lecture 27: trigonometric integrals, and direct substitution | 5B-9, 5B-11, 5B-13, 5B-16; 5C-5, 5C-7, 5C-9, 5C-11 |
MIT's sheet calls the last of these Lecture 25, its number in the Fall 2006 calendar. In the lecture list of OpenCourseWare, and on this site, trigonometric integrals are Lecture 27, after the review for the third exam and the exam itself. MIT's list also has three exercises for Lecture 23 from the course textbook by Simmons, and sections of that book to read. They are not part of this page.