BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Problem Set 6: root-mean-square voltage, radioactive decay and Simpson's rule

Four problems on average value, probability and numerical integration. You find the voltage that a meter shows for house current, turn areas into probabilities for a point in a square and for the decay of a radioactive particle, prove the formula for the area under a parabola on which Simpson's rule rests, and use the rule on an integral that has no formula.

You need this first

Full reading path (20 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
  8. Curve sketching with the first and second derivative (18.01)
  9. Sketching strategy and maximum–minimum problems (18.01)
  10. More max–min, and related rates (18.01)
  11. A ring on a string, and Newton's method (18.01)
  12. The mean value theorem and inequalities (18.01)
  13. Differentials and antiderivatives (18.01)
  14. Definite integrals and Riemann sums (18.01)
  15. The first fundamental theorem of calculus (18.01)
  16. The second fundamental theorem of calculus (18.01)
  17. The logarithm from an integral, and areas between curves (18.01)
  18. Volumes by disks and shells (18.01)
  19. Average value, weighted averages and probability (18.01)
  20. The dartboard, and numerical integration (18.01)
On this page · 6 sections
  1. How to answer
  2. Problem 2
  3. Problem 3
  4. Problem 4
  5. Problem 5
  6. More practice: MIT's own solved exercises

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 2\sqrt2 and pi for π\pi. 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#

Problem

The voltage a meter shows

4 points

The voltage of the electricity supply in a house swings back and forth. MIT models it by

Voltage of house current
V(t)=C sin⁡(120πt)V(t) = C\,\sin(120\pi t)
In words

V(t) equals C sine (120 pi t)

Source: MIT 18.01 Problem Set 6, Part II, Problem 2, p. 1

Here tt is the time in seconds and CC is a constant, the amplitude: the voltage swings between +C+C and −C-C. A period (or cycle) is the time after which V(t)V(t) repeats itself.

Take the average value of V2V^2 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. (V2V^2 is in square volts. The square root after averaging brings the result back to volts.)

Find the RMS voltage in terms of CC.

Hint

First find the period. The sine repeats when its angle has grown by 2π2\pi: 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 V2V^2 over one period.

Hint

To integrate sin⁡2\sin^2, write it with the cosine of twice the angle: sin⁡2θ=12(1−cos⁡2θ)\sin^2\theta = \tfrac12(1 - \cos 2\theta).

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 V2V^2 and the interval is one period.

The period

The sine repeats when its angle 120πt120\pi t grows by 2π2\pi. That takes a time 2π/(120π)=1/602\pi/(120\pi) = 1/60 second, so one period runs from t=0t = 0 to t=1/60t = 1/60. (The current goes through 60 cycles every second.)

Set up the average of V²

The lesson defines the average of ff over a≤x≤ba \le x \le b as

Average value
1b−a∫abf(x) dx\frac{1}{b - a}\int_a^b f(x)\,dx
In words

1 over the quantity b minus a, times the integral from a to b of f(x) d x

For V2V^2 over one period, b−a=1/60b - a = 1/60, so dividing by it is multiplying by 60:

Average of the squared voltage, set up
average of V2=60∫01/60C2sin⁡2(120πt) dt\text{average of } V^2 = 60\int_0^{1/60} C^2\sin^2(120\pi t)\,dt
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 2 (our own solution)

Integrate

Use sin⁡2θ=12(1−cos⁡2θ)\sin^2\theta = \tfrac12(1 - \cos 2\theta), a half-angle formula from trigonometry (the lesson on trigonometric integrals comes back to it), with θ=120πt\theta = 120\pi t:

Integral of the squared sine over one period
∫01/60sin⁡2(120πt) dt=[t2−sin⁡(240πt)480π]01/60=1120\int_0^{1/60} \sin^2(120\pi t)\,dt = \left[\frac{t}{2} - \frac{\sin(240\pi t)}{480\pi}\right]_0^{1/60} = \frac{1}{120}
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 2 (our own solution)

The sine term is zero at both ends, because 240π/60=4π240\pi/60 = 4\pi. So

Average of the squared voltage
average of V2=60 C2⋅1120=C22\text{average of } V^2 = 60\,C^2 \cdot \frac{1}{120} = \frac{C^2}{2}
In words

average of V squared equals 60 C squared times 1 over 120 equals C squared over 2

Source: MIT 18.01 Problem Set 6, Part II, Problem 2 (our own solution)

Take the square root

Root-mean-square voltage
Vrms=C22=C2≈0.7071 CV_{\text{rms}} = \sqrt{\frac{C^2}{2}} = \frac{C}{\sqrt2} \approx 0.7071\,C
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 2 (our own solution)

(The name VrmsV_{\text{rms}} is ours.) The meter shows about 71% of the peak voltage.

Check the result

The average of sin⁡2\sin^2 over a full period can be found without integrating. The graph of cos⁡2\cos^2 is the graph of sin⁡2\sin^2 shifted sideways, so over a full period the two have the same average. They add up to 11 at every moment, so each averages 12\tfrac12. That gives C2/2C^2/2 again. The units are right too: CC is in volts, and so is C/2C/\sqrt2. As an example with our own number: a meter that shows 120120 volts means a peak voltage of C=1202=169.7C = 120\sqrt2 = 169.7 volts.

After: MIT 18.01 Problem Set 6, Part II, Problem 2

Problem 3#

Problem

Probabilities from areas, and the decay of a particle

6 points

The lesson on probability works with one rule:

Probability as a ratio
probability=partwhole\text{probability} = \frac{\text{part}}{\text{whole}}
In words

probability equals part over whole

(a)1 point

A point (x,y)(x, y) is picked at random from the unit square 0≤x≤10 \le x \le 1, 0≤y≤10 \le y \le 1. The probability of landing in a region is the area of that region. What is the probability that x2<yx^2 < y? Give it as a decimal, correct to three decimal places.

Hint

Draw the square and the curve y=x2y = x^2. On which side of the curve is x2<yx^2 < y?

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 x2<yx^2 < y are the points of the square above the parabola y=x2y = x^2. The square has area 11, so the probability is the area of that region.

The area above the parabola

Above each xx between 00 and 11, the region runs from y=x2y = x^2 up to y=1y = 1:

Area above the parabola in the unit square
∫01(1−x2)dx=[x−x33]01=23\int_0^1 \left(1 - x^2\right)dx = \left[x - \frac{x^3}{3}\right]_0^1 = \frac23
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 3(a) (our own solution)

The whole is the area of the square, 11, so the probability is 23=0.667\tfrac23 = 0.667.

Check the result

The region under the parabola has area ∫01x2 dx=13\int_0^1 x^2\,dx = \tfrac13. Together with 23\tfrac23 that fills the square. More than half is reasonable: inside the unit square the parabola stays below the diagonal y=xy = x, which cuts the square in half.

(b)2 points

Now the point is picked from the larger square 0≤x≤20 \le x \le 2, 0≤y≤20 \le y \le 2, with a probability proportional to the area. What is the probability that x2<yx^2 < y? Give it as a decimal, correct to three decimal places.

Hint

The whole is no longer 11. What is it?

Hint

Draw the curve y=x2y = x^2 in this square. It leaves the square through the top edge, not through the corner. At which xx?

Solution

The idea. Part over whole. The whole is the area of the square, 44. 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 y=2y = 2 where x2=2x^2 = 2, at x=2=1.414x = \sqrt2 = 1.414. To the right of that, x2x^2 is larger than 22, so no point of the square has x2<yx^2 < y there.

The part

Area above the parabola in the larger square
∫02(2−x2)dx=[2x−x33]02=22−223=423=1.886\int_0^{\sqrt2} \left(2 - x^2\right)dx = \left[2x - \frac{x^3}{3}\right]_0^{\sqrt2} = 2\sqrt2 - \frac{2\sqrt2}{3} = \frac{4\sqrt2}{3} = 1.886
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 3(b) (our own solution)

Part over whole

Probability in the larger square
P=42/34=23=0.471P = \frac{4\sqrt2/3}{4} = \frac{\sqrt2}{3} = 0.471
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 3(b) (our own solution)

Check the result

A common slip is to integrate 2−x22 - x^2 all the way to x=2x = 2. That gives 43\tfrac43, and a probability of 13\tfrac13, but it counts the stretch from 2\sqrt2 to 22, where 2−x22 - x^2 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

The whole for the decay
W=∫0∞e−at dt=lim⁡N→∞∫0Ne−at dtW = \int_0^\infty e^{-at}\,dt = \lim_{N\to\infty}\int_0^N e^{-at}\,dt
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 3(c), p. 2

for a constant a>0a > 0. (That aa 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 WW stands for "whole".

Hint

Integrate from 00 to NN first. Only then let NN grow.

Hint

What happens to e−aNe^{-aN} as NN grows, when aa is positive?

Solution

The idea. Integrate up to a finite time NN, then see what is left when NN goes to infinity.

Integrate up to N

The area up to N
∫0Ne−at dt=[−e−ata]0N=1−e−aNa\int_0^N e^{-at}\,dt = \left[-\frac{e^{-at}}{a}\right]_0^N = \frac{1 - e^{-aN}}{a}
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 3(c) (our own solution)

Take the limit

For a>0a > 0 the exponential e−aNe^{-aN} goes to 00 as NN grows. So

The whole
W=lim⁡N→∞1−e−aNa=1aW = \lim_{N\to\infty}\frac{1 - e^{-aN}}{a} = \frac1a
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 3(c) (our own solution)

Check the result

If tt is in seconds, aa is in 1/second, because the exponent atat must be a pure number. Then 1/a1/a is in seconds, as an integral over time of a pure number must be. With a=2a = 2 and N=5N = 5 the area up to NN is already 0.499980.49998, close to 1/a=0.51/a = 0.5: 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 0≤t≤T0 \le t \le T is

Probability of decay before time T
P([0,T])=partwhole=1W∫0Te−at dtP([0, T]) = \frac{\text{part}}{\text{whole}} = \frac1W\int_0^T e^{-at}\,dt
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 3, p. 2

so that P([0,∞))=1P([0, \infty)) = 1: the particle is certain to decay at some time. The half-life is the time TT for which P([0,T])=12P([0, T]) = \tfrac12.

Find the values of aa and WW for which the half-life is T=1T = 1 second, each within 0.5%. Then, for a particle with that half-life, find the probability that it survives until t=1t = 1 but decays at some time in the interval 1≤t≤21 \le t \le 2: write it as an integral, and give its value (the box wants it within 0.0010.001).

Hint

Work out P([0,T])P([0, T]) with the WW of part (c). The result has no fraction left in it.

Hint

A particle that decays between t=1t = 1 and t=2t = 2 has survived until t=1t = 1. So the part is the area under e−ate^{-at} from 11 to 22.

Solution

The idea. With W=1/aW = 1/a the probability of decay before time TT is 1−e−aT1 - e^{-aT}. The half-life fixes aa, and the probability for any other interval is again part over whole.

The probability of decay before T

Decay before time T, worked out
P([0,T])=a∫0Te−at dt=a⋅1−e−aTa=1−e−aTP([0, T]) = a\int_0^T e^{-at}\,dt = a \cdot \frac{1 - e^{-aT}}{a} = 1 - e^{-aT}
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 3(d) (our own solution)

The half-life fixes a and W

Put T=1T = 1 and P=12P = \tfrac12:

The constants for a half-life of one second
1−e−a=12⟹e−a=12⟹a=ln⁡2=0.6931,W=1a=1ln⁡2=1.44271 - e^{-a} = \frac12 \quad\Longrightarrow\quad e^{-a} = \frac12 \quad\Longrightarrow\quad a = \ln 2 = 0.6931, \qquad W = \frac1a = \frac{1}{\ln 2} = 1.4427
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 3(d) (our own solution)

Here aa is in 1/second and WW in seconds.

Decay between t=1t = 1 and t=2t = 2

The particle decays in this interval exactly when its moment of decay lies between 11 and 22. That is the area under e−ate^{-at} from 11 to 22, divided by the whole:

Probability of decay in the second half-life
P([1,2])=1W∫12e−at dt=e−a−e−2a=12−14=14P([1, 2]) = \frac1W\int_1^2 e^{-at}\,dt = e^{-a} - e^{-2a} = \frac12 - \frac14 = \frac14
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 3(d) (our own solution)

With a calculator: ln⁡2×∫12e−0.6931t dt=0.25\ln 2 \times \int_1^2 e^{-0.6931t}\,dt = 0.25, a probability of 25%.

Check the result

The chance to survive the first second is 12\tfrac12. For a particle that has survived, the next second is one more half-life, so it decays in it with chance 12\tfrac12 again: 12×12=14\tfrac12 \times \tfrac12 = \tfrac14. The three possibilities also add up to certainty: 12\tfrac12 for decay before t=1t = 1, 14\tfrac14 between 11 and 22, and e−2a=14e^{-2a} = \tfrac14 for surviving beyond t=2t = 2.

After: MIT 18.01 Problem Set 6, Part II, Problem 3

Problem 4#

Problem

Why Simpson's rule works: the area under a parabola

6 points

The lesson on numerical integration states the formula behind Simpson's rule without proof. Here you prove it.

Take an interval from x0x_0 to x2x_2 of length 2h2h, with its midpoint x1x_1, and any three points (x0,y0)(x_0, y_0), (x1,y1)(x_1, y_1), (x2,y2)(x_2, y_2) above them. Exactly one quadratic function

The parabola through three points
y=Ax2+Bx+Cy = Ax^2 + Bx + C
In words

y equals capital A x squared plus capital B x plus C

Source: MIT 18.01 Problem Set 6, Part II, Problem 4, p. 2

has a graph through all three points. Simpson's rule rests on the claim that the area under this parabola, above the interval from x0x_0 to x2x_2, is

Area under the parabola
h3(y0+4y1+y2)\frac{h}{3}\left(y_0 + 4y_1 + y_2\right)
In words

h over 3, times the quantity y nought plus 4 y one plus y two

Source: MIT 18.01 Problem Set 6, Part II, Problem 4, p. 2

This is the lesson's formula with hh for Δx\Delta x (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: x0=−hx_0 = -h, x1=0x_1 = 0, x2=hx_2 = h. Everything below is to be expressed in hh, y0y_0, y1y_1 and y2y_2.

(a)1 point

Make a sketch of the three points and the parabola, and find CC.

Hint

One of the three points has x=0x = 0. Put it into the equation of the parabola.

Solution

The idea. At x=0x = 0 the terms Ax2Ax^2 and BxBx vanish, so the quadratic takes the value CC there.

The sketch

Mark −h-h, 00 and hh on the xx-axis, with the points (−h,y0)(-h, y_0), (0,y1)(0, y_1) and (h,y2)(h, y_2) above them, and draw a parabola through the three points. The area in question lies between the parabola and the xx-axis, from −h-h to hh.

Use the middle point

The parabola passes through (0,y1)(0, y_1):

The constant term
y1=A⋅02+B⋅0+C=Cy_1 = A \cdot 0^2 + B \cdot 0 + C = C
In words

y one equals capital A times 0 squared plus capital B times 0 plus C equals C

Source: MIT 18.01 Problem Set 6, Part II, Problem 4 (our own solution)

Check the result

CC is a height, like y1y_1. It does not depend on the other two points: they fix AA and BB.

(b)2 points

Show, by integrating, that the area can be found once you know AA alone (besides CC), or better still the combination 2Ah22Ah^2.

Hint

Integrate Ax2+Bx+CAx^2 + Bx + C from −h-h to hh, term by term. One term gives nothing. Why?

Hint

Take a factor h/3h/3 out of your result, to make it look like the formula you are aiming for.

Solution

The idea. The interval from −h-h to hh is symmetric about zero, so the odd term BxBx integrates to zero. BB never has to be found.

Integrate term by term

Area in terms of A and C
∫−hh(Ax2+Bx+C)dx=[Ax33+Bx22+Cx]−hh=2Ah33+2Ch\int_{-h}^{h}\left(Ax^2 + Bx + C\right)dx = \left[\frac{Ax^3}{3} + \frac{Bx^2}{2} + Cx\right]_{-h}^{h} = \frac{2Ah^3}{3} + 2Ch
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 4 (our own solution)

The middle term is the same at both ends, Bh2/2Bh^2/2, and drops out.

Take out the factor h/3

Area in terms of 2Ah² and C
2Ah33+2Ch=h3(2Ah2+6C)\frac{2Ah^3}{3} + 2Ch = \frac{h}{3}\left(2Ah^2 + 6C\right)
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 4 (our own solution)

CC is known from part (a). So the only thing still to find is 2Ah22Ah^2.

Check the result

For the flat line y=Cy = C (with A=0A = 0 and B=0B = 0) this gives 2Ch2Ch: width 2h2h times height CC, the area of a rectangle. With our own numbers A=3A = 3, B=5B = 5, C=2C = 2 and h=1h = 1 the formula gives 13(6+12)=6\tfrac13(6 + 12) = 6, and the integral of 3x2+5x+23x^2 + 5x + 2 from −1-1 to 11 is [x3+52x2+2x]−11=5.5−(−0.5)=6\left[x^3 + \tfrac52 x^2 + 2x\right]_{-1}^{1} = 5.5 - (-0.5) = 6 as well, whatever BB is.

(c)2 points

Find 2Ah22Ah^2 in terms of y0y_0, y1y_1 and y2y_2.

Hint

Write down what it means that the parabola passes through the two outer points. That gives two equations.

Hint

You do not want BB. Combine the two equations so that it disappears.

Solution

The idea. The two outer points give two equations in which BB appears with opposite signs. Adding them removes BB and leaves exactly the combination 2Ah22Ah^2.

The two outer points

The parabola at the two ends
y0=Ah2−Bh+C,y2=Ah2+Bh+Cy_0 = Ah^2 - Bh + C, \qquad y_2 = Ah^2 + Bh + C
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 4 (our own solution)

Add them

The combination that is needed
y0+y2=2Ah2+2C⟹2Ah2=y0+y2−2y1y_0 + y_2 = 2Ah^2 + 2C \quad\Longrightarrow\quad 2Ah^2 = y_0 + y_2 - 2y_1
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 4 (our own solution)

using C=y1C = y_1 from part (a).

Check the result

If the three points lie on a straight line, y1y_1 is the average of y0y_0 and y2y_2, and the result is 00: no x2x^2 term is needed, as it should be. For the parabola y=x2y = x^2 with h=1h = 1 the heights are 11, 00 and 11, and the result is 22, which is 2Ah22Ah^2 with A=1A = 1.

(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 2Ah22Ah^2 and CC. Parts (a) and (c) give those two in terms of the three heights.

Solution

The idea. Substitute.

Substitute into the area

The area under the parabola, proved
h3(2Ah2+6C)=h3(y0+y2−2y1+6y1)=h3(y0+4y1+y2)\frac{h}{3}\left(2Ah^2 + 6C\right) = \frac{h}{3}\left(y_0 + y_2 - 2y_1 + 6y_1\right) = \frac{h}{3}\left(y_0 + 4y_1 + y_2\right)
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 4 (our own solution)

Why the shift was allowed (our remark)

Sliding the parabola sideways keeps the three heights, the width 2h2h and the area. The shifted curve is still the graph of a quadratic function. So the formula, which contains only hh and the three heights, holds wherever the interval lies.

Check the result

For the constant function y=1y = 1 the formula gives h3(1+4+1)=2h\tfrac{h}{3}(1 + 4 + 1) = 2h, the area of a rectangle of width 2h2h and height 11. For y=x2y = x^2 from −1-1 to 11 it gives 13(1+0+1)=23\tfrac13(1 + 0 + 1) = \tfrac23, and indeed ∫−11x2 dx=23\int_{-1}^{1} x^2\,dx = \tfrac23. The middle height counts four times as much as each outer height: the weights 11, 44, 11 of the lesson.

After: MIT 18.01 Problem Set 6, Part II, Problem 4

Problem 5#

Problem

Simpson's rule on a Fresnel integral

4 points

The function cos⁡(t2)\cos(t^2) 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

The Fresnel integral of Problem 5
∫0acos⁡(t2) dtwith a=π/2\int_0^a \cos(t^2)\,dt \qquad \text{with } a = \sqrt{\pi/2}
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 5, p. 2

Use a calculator, set to radians, to make a table of values of cos⁡(t2)\cos(t^2), and approximate the integral with Simpson's rule:

Simpson's rule
∫abf(x) dx≈Δx3(y0+4y1+2y2+4y3+⋯+2yn−2+4yn−1+yn)\int_a^b f(x)\,dx \approx \frac{\Delta x}{3}\left(y_0 + 4y_1 + 2y_2 + 4y_3 + \cdots + 2y_{n-2} + 4y_{n-1} + y_n\right)
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 0.0000050.000005 of ours, so do not round aa or the values in your table while you work.

For comparison: to five decimal places the integral is 0.977450.97745. (MIT's sheet prints 1.225051.22505 as the exact value. That number is π/2\sqrt{\pi/2} times the integral, 1.253314×0.9774511.253314 \times 0.977451, 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 00 to aa need five values of tt. What is t2t^2 at each of them, as a multiple of π\pi?

Hint

The weights for four intervals are 1,4,2,4,11, 4, 2, 4, 1, and the sum is multiplied by Δx/3\Delta x/3 with Δx=a/4\Delta x = a/4.

Solution

The idea. Divide the interval into four equal pieces, tabulate the integrand at the five points, and add the values with the weights 1,4,2,4,11, 4, 2, 4, 1.

The table

Here a=π/2=1.253314a = \sqrt{\pi/2} = 1.253314 and Δx=a/4=0.313329\Delta x = a/4 = 0.313329. The points are t=i a/4t = i\,a/4 with ii from 0 to 4, so there t2=i2π/32t^2 = i^2\pi/32:

iittt2t^2cos⁡(t2)\cos(t^2)weight
00011
10.313329π/32\pi/320.9951854
20.626657π/8\pi/80.9238802
30.9399869π/329\pi/320.6343934
41.253314π/2\pi/201

Add with the weights

Simpson's rule with four intervals
0.3133293(1+4×0.995185+2×0.923880+4×0.634393+0)=0.1044428×9.366071=0.978219\frac{0.313329}{3}\left(1 + 4 \times 0.995185 + 2 \times 0.923880 + 4 \times 0.634393 + 0\right) = 0.1044428 \times 9.366071 = 0.978219
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 5 (our own solution)

Check the result

The value is 0.0007680.000768 above the integral, 0.9774510.977451: correct to about three decimal places, from only five values of the function. The last value in the table is exactly 00, because aa was chosen so that a2=π/2a^2 = \pi/2.

(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 1,4,2,4,2,4,2,4,11, 4, 2, 4, 2, 4, 2, 4, 1, and Δx=a/8\Delta x = a/8.

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 Δx=a/8=0.156664\Delta x = a/8 = 0.156664, the points are t=i a/8t = i\,a/8 with ii from 0 to 8, and there t2=i2π/128t^2 = i^2\pi/128:

iittcos⁡(t2)\cos(t^2)weight
0011
10.1566640.9996994
20.3133290.9951852
30.4699930.9757024
40.6266570.9238802
50.7833210.8175854
60.9399860.6343932
71.0966500.3598954
81.25331401

Add with the weights

The values with weight 4 add up to 3.1528813.152881 and those with weight 2 to 2.5534582.553458:

Simpson's rule with eight intervals
0.1566643(1+4×3.152881+2×2.553458+0)=0.0522214×18.718438=0.977503\frac{0.156664}{3}\left(1 + 4 \times 3.152881 + 2 \times 2.553458 + 0\right) = 0.0522214 \times 18.718438 = 0.977503
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

Source: MIT 18.01 Problem Set 6, Part II, Problem 5 (our own solution)

Check: compare the two approximations

With eight intervals the value is only 0.0000520.000052 above the integral, against 0.0007680.000768 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 (Δx)4(\Delta x)^4 (Lecture 24 notes, p. 5): half the step should give about 116\tfrac{1}{16} of the error.

After: MIT 18.01 Problem Set 6, Part II, Problem 5

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:

ForExercises in Section E
Lecture 22: volumes by disks and shells4B-2e, g, 4B-5; 4C-1a, 4C-2, 4C-3; 4J-3
Lecture 23: average value and probability4D-2, 4D-3, 4D-5
Lecture 24: numerical integration3G-1a, d, 3G-4
Lecture 27: trigonometric integrals, and direct substitution5B-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.

Symbols on this page

Show the 44 symbols used here
Δ\Delta capital delta.
A change or difference in a quantity, e.g. Δx = x₂ − x₁. Say it: “capital delta”.
θ\theta theta.
An angle. Say it: “theta” (sounds like “thay-ta or thee-ta”).
π\pi pi.
The ratio of a circle's circumference to its diameter, π ≈ 3.14159. Say it: “pi”.
∞\infty infinity.
Infinity: larger than any number. Say it: “infinity”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
≤\le less than or equal.
Is less than or equal to. Say it: “is less than or equal to”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
⇒\Rightarrow implies.
Implies: what follows is a consequence of what came before. Say it: “which gives”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
∫\int integral.
Integral: the sum of infinitely many small pieces, such as the area under a curve. Say it: “the integral of”.
lim⁡\lim limit.
Limit: the value approached as the variable written below approaches its target. Say it: “the limit”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
aa a.
In Problem 3, the positive constant in the exponential e^(−at), in 1/second. In Problem 5, the upper limit of the Fresnel integral, a = √(π/2). In the formulas for the average and for Simpson's rule, the left end of the interval. Say it: “a”.
TT T.
In Problem 3, the end of the interval of time from 0 to T; the half-life is the T for which the probability of decay is one half. Unit: s. Say it: “capital T”.
xx x.
A horizontal coordinate. In Problem 3, the first coordinate of the point picked from the square; in Problem 4, the position along the interval under the parabola. Say it: “x”.
yy y.
A vertical coordinate. In Problem 3, the second coordinate of the point picked from the square; in Problem 4, the height of the parabola. Say it: “y”.
tt t.
Time, in seconds (Problems 2 and 3). In Problem 5, the variable of integration of the Fresnel integral, a pure number. Say it: “t”.
dd d.
The d of an integral, as in dt and dx: it names the variable of integration. Say it: “d”.
ii i.
In Problem 5, the number of a point of the table, counted from 0. Say it: “i”.
ee e.
The base of the natural logarithm, e ≈ 2.718. Say it: “e”.
ff f.
In the formulas for the average and for Simpson's rule, the function that is averaged or integrated. Say it: “f”.
PP P.
A probability (a number between 0 and 1). P([0, T]) is the probability that the particle decays between time 0 and time T. Say it: “P”.
AA A.
In Problem 4, the coefficient of x² in the quadratic Ax² + Bx + C. Say it: “capital A”.
BB B.
In Problem 4, the coefficient of x in the quadratic Ax² + Bx + C. Say it: “capital B”.
CC C.
In Problem 2, the amplitude of the voltage: it swings between +C and −C. In Problem 4, the constant term of the quadratic Ax² + Bx + C. Say it: “C”.
bb b.
In the formulas for the average and for Simpson's rule, the right end of the interval. Say it: “b”.
hh h.
In Problem 4, half the length of the interval under the parabola: the distance from the midpoint to either end (the Δx of Simpson's rule). Say it: “h”.
NN N.
In Problem 3(c), the finite upper limit of the integral, which is then made larger and larger. Unit: s. Say it: “capital N”.
x0x_{0} x nought.
In Problem 4, the left end of the interval under the parabola. Say it: “x nought”.
y0y_{0} y nought.
In Problem 4, the height of the parabola at the left end, x₀. In Simpson's rule, the first value of the function. Say it: “y nought”.
x1x_{1} x 1.
In Problem 4, the midpoint of the interval under the parabola. Say it: “x one”.
x2x_{2} x 2.
In Problem 4, the right end of the interval under the parabola. Say it: “x two”.
y1y_{1} y 1.
In Problem 4, the height of the parabola at the midpoint, x₁. In Simpson's rule, the second value of the function. Say it: “y one”.
y2y_{2} y 2.
In Problem 4, the height of the parabola at the right end, x₂. In Simpson's rule, the third value of the function. Say it: “y two”.
VV V.
In Problem 2, the voltage of the house current at time t, V(t) = C sin(120πt). Unit: V. Say it: “V”.
WW W.
In Problem 3, the whole: the area under e^(−at) from t = 0 on, by which a part is divided to get a probability. Unit: s. Say it: “W”.
y3y_{3} y three.
In Simpson's rule, the fourth value of the function. Say it: “y three”.
yny_{n} y n.
In Simpson's rule, the last value of the function, at the right end of the interval. Say it: “y sub n”.
yn−1y_{n-1} y n minus 1.
In Simpson's rule, the next-to-last value of the function. Say it: “y sub n minus 1”.
yn−2y_{n-2} y n minus 2.
In Simpson's rule, the value of the function two before the last. Say it: “y sub n minus 2”.
VrmsV_{\text{rms}} V r m s.
In Problem 2, the root-mean-square voltage: the square root of the average of V² over one period. The name is ours. Unit: V. Say it: “V r m s”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 34 words used here

Also used

average value.
The integral of a function over an interval divided by the interval's length: the height of a rectangle with the same area. Explained in The second fundamental theorem of calculus.
weighted average.
An average in which some values count more: each is multiplied by its weight, and the total divided by the sum of the weights. Explained in Centre of mass and its motion.
integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
MIT.
Massachusetts Institute of Technology: the university in Cambridge, USA, whose free courses this site rewrites.
analytic.
Worked out exactly with formulas and algebra, rather than by drawing pictures or by computer. Explained in The derivative: slope of the tangent line and rate of change.
radian.
The natural unit of angle: the angle whose arc on a circle is as long as the radius. A full turn is 2π radians. Explained in Angles, radians and trigonometry.
voltage.
The difference in electric potential between two points, measured in volts: the energy each coulomb of charge gains or loses between them. Explained in Electric potential and voltage.
amplitude.
The size of an oscillation or wave: the largest distance from its middle position, or the number multiplying the sine. Explained in Oscillations and simple harmonic motion.
rms.
Root mean square: square the values, average them, then take the square root; for a sine wave it is the peak divided by √2. Explained in Kinetic theory: temperature is motion.
volt.
The SI unit of electric potential and voltage: one joule of energy for each coulomb of charge. Explained in Electric potential and voltage.
interval.
A stretch between two values or two moments; in maths, all the numbers between two end points. Explained in Time dilation, length contraction and the interval.
integral.
A sum of very many very small pieces, such as the area under a graph; it undoes taking a derivative. Explained in Rates of change and area under a graph.
graph.
The picture of a function: the curve y = f(x) for one variable, or the surface z = f(x, y) for two. Explained in Graphs, straight lines and slope.
parabola.
The U-shaped curve of y = ax² + bx + c, also the path of a thrown ball when air resistance is ignored. Explained in Quadratics and power laws.
proportional.
Of two quantities: always in the same ratio, so that doubling one doubles the other. Explained in Graphs, straight lines and slope.
improper integral.
An integral over an infinite range, or of a function that blows up, defined as a limit of ordinary integrals. Explained in Improper integrals.
Simpson's rule.
A way to estimate an integral by fitting parabolas through groups of three points; it is far more accurate than straight lines.
proof.
A chain of reasoning showing beyond doubt that a statement follows from definitions and results already known. Explained in Limits and continuity.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
symmetry.
A change, such as a reflection, a rotation or a shift, that leaves something looking exactly the same. Explained in The derivative: slope of the tangent line and rate of change.
symmetric.
Unchanged by some swap, reflection or turn; for an expression in two quantities, unchanged when they are exchanged. Explained in Introduction to Fourier series.
antiderivative.
A function whose derivative is the given function; any two antiderivatives differ only by a constant. Explained in Differentials and antiderivatives.
integrand.
The function being integrated: the f(x) in ∫ f(x) dx. Explained in The logarithm from an integral, and areas between curves.
weight.
How much one value counts in a weighted average or sum, compared with the others. Explained in Average value, weighted averages and probability.

Academic

numerically.
In terms of actual numbers rather than symbols; often worked out step by step, by computer, instead of from an exact formula.
problem set.
A weekly sheet of exercises that students work through and hand in, to practise what the lectures taught.
on paper.
In theory or in a calculation, as opposed to in a real experiment or in reality.
significant.
Large enough to matter or to be noticed; in statistics, too large to put down to chance.
model.
A simplified description of a real system, usually in equations, that keeps what matters and leaves out the rest.
vanish.
To become zero; sometimes, of a fixed point or solution, to stop existing.
drops out.
Disappears from an equation, usually because it cancels or appears on both sides.
approximation.
Close to, but not exactly, the true value; an approximation is such a value or formula, chosen because it is simpler.
error.
The difference between a measured or computed value and the true one; often how large that difference may be.
of order.
Roughly equal to, within a factor of a few; of order one means neither much bigger nor much smaller than one.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).