Navigation

Integration

1.11 Numerical Integration

33 problems · hints, answers and solutions shown beside each one

Recall that we are using log⁡x\log x to denote the logarithm of xx with base ee. In other courses it is often denoted ln⁡x\ln x.

1Stage 1Conceptual

Do you understand the idea? Usually little or no calculation.

Q1Stage 1

Suppose we approximate an object to have volume 1.5m31.5 \mathrm{m}^3, when its exact volume is 1.387m31.387 \mathrm{m}^3. Give the relative error, absolute error, and percent error of our approximation.

Hint

The absolute error is the difference of the two values; the relative error is the absolute error divided by the exact value; the percent error is one hundred times the relative error.

Answer

Relative error: ≈0.08147\approx 0.08147; absolute error: 0.1130.113; percent error: ≈8.147%\approx 8.147\%.

Full solution
Q2Stage 1

Consider approximating ∫210f(x) dx\displaystyle\int_2^{10} f(x)~\dee{x}, where f(x)f(x) is the function in the graph below.

Figure from prob_s1.11, line 2

Figure from prob_s1.11, line 2

  1. Draw the rectangles associated with the midpoint rule approximation and n=4n=4.

  2. Draw the trapezoids associated with the trapezoidal rule approximation and n=4n=4.

You don't have to give an approximation.

Hint

You should have four rectangles in one drawing, and four trapezoids in another.

Answer

Midpoint rule:

Figure from prob_s1.11, line 2

Figure from prob_s1.11, line 2

Trapezoidal rule:

Figure from prob_s1.11, line 2

Figure from prob_s1.11, line 2

Full solution
Q3Stage 1

Let f(x)=−112x4+76x3−3x2f(x) = -\dfrac{1}{12}x^4+\dfrac{7}{6}x^3-3x^2.

  1. Find a reasonable value MM such that ∣f′′(x)∣≤M|f''(x)| \leq M for all 1≤x≤61 \leq x \leq 6.

  2. Find a reasonable value LL such that ∣f(4)(x)∣≤L|f^{(4)}(x)| \leq L for all 1≤x≤61 \leq x \leq 6.

Hint

Sketch the second derivative–it's quadratic.

Answer

M=6.25M=6.25, L=2L=2

Full solution
Q4Stage 1

Let f(x)=xsin⁡x+2cos⁡xf(x) = x\sin x+2\cos x. Find a reasonable value MM such that ∣f′′(x)∣≤M|f''(x)| \leq M for all −3≤x≤2-3 \leq x \leq 2.

Hint

You don't have to find the actual, exact maximum the second derivative achieves–you only have to give a reasonable “ceiling" that it never breaks through.

Answer

One reasonable answer is M=3M=3.

Full solution
Q5Stage 1

Consider the quantity A=∫−ππcos⁡x dxA=\displaystyle\int_{-\pi}^{\pi} \cos x~\dee{x}.

  1. Find the upper bound on the error using Simpson's rule with n=4n=4 to approximate AA using Theorem 1.11.12 in the CLP-2 text.

  2. Find the Simpson's rule approximation of AA using n=4n=4.

  3. What is the (actual) absolute error in the Simpson's rule approximation of AA with n=4n=4?

Hint

To compute the upper bound on the error, find an upper bound on the fourth derivative of cosine, then use Theorem 1.11.12 in the CLP-2 text.

To find the actual error, you need to find the actual value of AA.

Answer

(a) π5180⋅8\dfrac{\pi^5}{180\cdot8} (b) 00 (c) 00

Full solution
Q6Stage 1

Give a function f(x)f(x) such that:

  • f′′(x)≤3f''(x) \leq 3 for every xx in [0,1][0,1], and

  • the error using the trapezoidal rule approximating ∫01f(x) dx\displaystyle\int_0^1 f(x)~\dee{x} with n=2n=2 intervals is exactly 116\dfrac{1}{16}.

Hint

Find a function with f′′(x)=3f''(x)=3 for all xx in [0,1][0,1].

Answer

Possible answers: f(x)=32x2+Cx+Df(x) = \dfrac{3}{2}x^2+Cx+D for any constants CC, DD.

Full solution
Q7Stage 1

Suppose my mother is under 100 years old, and I am under 200 years old. (We're going somewhere with this.) Who is older?

Hint

You're allowed to use common sense for this one.

Answer

my mother

Full solution
Q8Stage 1
  1. True or False: for fixed positive constants MM, nn, aa, and bb, with b>ab>a,

    M24(b−a)3n2≤M12(b−a)3n2\dfrac{M}{24}\dfrac{(b-a)^3}{n^2}\leq \dfrac{M}{12}\dfrac{(b-a)^3}{n^2}
  2. True or False: for a function f(x)f(x) and fixed constants nn, aa, and bb, with b>ab>a, the nn-interval midpoint approximation of ∫abf(x) dx\displaystyle\int_a^b f(x)~\dee{x} is more accurate than the nn-interval trapezoidal approximation.

Hint

For part (b), consider Question 7.

Answer

(a) true (b) false

Full solution
Q9Stage 1Past exam · 2015A

Decide whether the following statement is true or false. If false, provide a counterexample. If true, provide a brief justification.

When f(x)f(x) is positive and concave up, any trapezoidal rule approximation for ∫abf(x) dx\displaystyle\int_{a}^{b} f(x) \,\dee{x} will be an upper estimate for ∫abf(x) dx\displaystyle\int_{a}^{b} f(x) \,\dee{x}.

Hint

Draw a sketch.

Answer

True. Because f(x)f(x) is positive and concave up, the graph of f(x)f(x) is always below the top edges of the trapezoids used in the trapezoidal rule.

Figure from prob_s1.11, line 2

Figure from prob_s1.11, line 2

Full solution
Q10Stage 1

Give a polynomial f(x)f(x) with the property that the Simpson's rule approximation of ∫abf(x) dx\displaystyle\int_a^b f(x)~\dee{x} is exact for all aa, bb, and nn.

Hint

The error bound for the approximation is given in Theorem 1.11.12 in the CLP-2 text. You want this bound to be zero.

Answer

Any polynomial of degree at most 3 will do. For example, f(x)=5x3−27f(x)=5x^3-27, or f(x)=x2f(x)=x^2.

Full solution

2Stage 2Procedural

Practising the skill itself, until applying it is automatic.

Questions 11 and 12 ask you to approximate a given integral using the formulas in Equations 1.11.2, 1.11.6, and 1.11.9 in the CLP-2 text.

Q11Stage 2

Write out all three approximations of ∫0301x3+1 dx\displaystyle\int_0^{30} \frac{1}{x^3+1}~\dee{x} with n=6n=6. (That is: midpoint, trapezoidal, and Simpson's.) You do not need to simplify your answers.

Hint

Follow the formulas in Equations 1.11.2, 1.11.6, and 1.11.9 in the CLP-2 text.

Answer

Midpoint:

∫0301x3+1 dx≈[1(2.5)3+1+1(7.5)3+1+1(12.5)3+1+1(17.5)3+1+1(22.5)3+1+1(27.5)3+1]5\displaystyle \int_0^{30} \frac{1}{x^3+1}\,\dee{x}\approx\left[\tfrac{1}{\left(2.5\right)^3+1} +\tfrac{1}{\left(7.5\right)^3+1} +\tfrac{1}{\left(12.5\right)^3+1} +\tfrac{1}{\left(17.5\right)^3+1} +\tfrac{1}{\left(22.5\right)^3+1} +\tfrac{1}{\left(27.5\right)^3+1} \right]5

Trapezoidal:

∫0301x3+1 dx≈[1/203+1+153+1+1103+1+1153+1+1203+1+1253+1+1/2303+1]5\displaystyle\int_0^{30} \frac{1}{x^3+1}\,\dee{x} \approx\left[ \frac{1/2}{0^3+1}+ \frac{1}{5^3+1}+ \frac{1}{10^3+1}+ \frac{1}{15^3+1}+ \frac{1}{20^3+1}+ \frac{1}{25^3+1}+ \frac{1/2}{30^3+1} \right]5

Simpson's:

∫0301x3+1 dx≈[103+1 ⁣+453+1 ⁣+2103+1 ⁣+4153+1 ⁣+2203+1 ⁣+4253+1 ⁣+1303+1]53\displaystyle\int_0^{30} \frac{1}{x^3+1}\,\dee{x}\approx \Big[\frac{1}{{0}^3+1}\!+\frac{4}{{5}^3+1}\!+\frac{2}{{10}^3+1}\!+\frac{4}{{15}^3+1}\!+\frac{2}{{20}^3+1}\!+\frac{4}{{25}^3+1}\!+ \frac{1}{{30}^3+1}\Big]\frac{5}{3}

Full solution
Q12Stage 2Past exam · M121 2012A

Find the midpoint rule approximation to ∫0πsin⁡x dx\displaystyle\int_0^\pi \sin x\ \dee{x} with n=3n = 3.

Hint

See Section 1.11.1 in the

CLP-2 text. You should be able to simplify your answer to an exact value (in terms of π\pi).

Answer

2π3\dfrac{2\pi}{3}

Full solution

Questions 13 though 17 ask you to approximate a quantity based on observed data.

Q13Stage 2Past exam · 1997D

The solid VV is 40 cm high and the horizontal cross sections are circular disks. The table below gives the diameters of the cross sections in centimeters at 10 cm intervals. Use the trapezoidal rule to estimate the volume of VV.

height010203040
diameter24161064
Hint

See Section 1.11.2 in the

CLP-2 text. To set up the volume integral, see Example 1.6.6 in the

CLP-2 text. Note the dimensions given for the cross sections are diameters, not radii.

Answer

1720π≈5403.5 cm31720\pi\approx 5403.5\ {\rm cm}^3

Full solution
Q14Stage 2Past exam · 1996D

A 66 metre long cedar log has cross sections that are approximately circular. The diameters of the log, measured at one metre intervals, are given below:

metres from left end of log0123456
diameter in metres1.210.80.8111.2

Use Simpson's Rule to estimate the volume of the log.

Hint

See Section 1.11.3 in the

CLP-2 text, and compare to Question 13. Note the table gives diameters, not radii.

Answer

π12(16.72)≈4.377 m3\displaystyle\frac{\pi}{12}(16.72)\approx4.377\ {\rm m}^3

Full solution
Q15Stage 2Past exam · 1998A

The circumference of an 8 metre high tree at different heights above the ground is given in the table below. Assume that all horizontal cross-sections of the tree are circular disks.

height (metres)02468
circumference (metres)1.21.11.30.90.2

Use Simpson's rule to approximate the volume of the tree.

Hint

See §1.11.3 in the

CLP-2 text. To set up the volume integral, see Example 1.6.6 in the

CLP-2 text, or Question 14.

Note that the table gives the circumference, not radius, of the tree at a given height.

Answer

12.946π≈0.6865 m3\dfrac{12.94}{6\pi} \approx0.6865\ {\rm m}^3

Full solution
Q16Stage 2Past exam · 2001A

By measuring the areas enclosed by contours on a topographic map, a geologist determines the cross sectional areas AA in m2\mathrm{m}^2 of a 6060 m high hill. The table below gives the cross sectional area A(h)A(h) at various heights hh. The volume of the hill is V=∫060A(h) dhV=\int_0^{60} A(h)\,\dee{h}.

hh0102030405060
AA10,2009,2008,0007,1004,5002,400100
  1. If the geologist uses the Trapezoidal Rule to estimate the volume of the hill, what will be their estimate, to the nearest 1,000m3\mathrm{m}^3?

  2. What will be the geologist's estimate of the volume of the hill if they use Simpson's Rule instead of the Trapezoidal Rule?

Answer

(a) 363,500 (b) 367,000

Full solution
Q17Stage 2Past exam · 2013A

The graph below applies to both parts (a) and (b).

Figure from prob_s1.11, line 897

Figure from prob_s1.11, line 897

  1. Use the Trapezoidal Rule, with n=4n = 4, to estimate the area under the graph between x=2x = 2 and x=6x = 6. Simplify your answer completely.

  2. Use Simpson's Rule, with n=4n = 4, to estimate the area under the graph between x=2x = 2 and x=6x = 6.

Answer

(a) 492\dfrac{49}{2} (b) 773\dfrac{77}{3}

Full solution

In Questions 18 through 24, we practice finding error bounds for our approximations.

Q18Stage 2Past exam · 2016Q4

The integral ∫−11sin⁡(x2) dx\displaystyle\int_{-1}^{1} \sin(x^2) \, \dee{x} is estimated using the Midpoint Rule with 10001000 intervals. Show that the absolute error in this approximation is at most 2⋅10−62\cdot 10^{-6}.

You may use the fact that when approximating ∫abf(x) dx\int_a^b f(x) \, \dee{x} with the Midpoint Rule using nn points, the absolute value of the error is at most M(b−a)3/24n2M(b-a)^3/24n^2 when ∣f′′(x)∣≤M\left|f''(x)\right|\leq M for all x∈[a,b]x\in[a,b].

Hint

The main step is to find an appropriate value of MM. It is not necessary to find the smallest possible MM.

Answer

Let f(x)=sin⁡(x2)f(x) = \sin(x^2). Then f′(x)=2xcos⁡(x2)f'(x) = 2x \cos(x^2) and

f′′(x)=2cos⁡(x2)−4x2sin⁡(x2).f''(x) = 2\cos(x^2) - 4x^2\sin(x^2).

Since ∣x2∣≤1|x^2|\le1 when ∣x∣≤1|x|\leq 1, and ∣sin⁡θ∣≤1\left|\sin\theta\right|\le1 and ∣cos⁡θ∣≤1\left|\cos\theta\right|\leq 1 for all θ\theta, we have

∣2cos⁡(x2)−4x2sin⁡(x2)∣≤2∣cos⁡(x2)∣+4x2∣sin⁡(x2)∣≤2×1+4×1×1=2+4=6\begin{align*} \left|2\cos(x^2) - 4x^2\sin(x^2)\right| \le 2|\cos(x^2)| + 4x^2|\sin(x^2)| \le 2\times 1 +4\times 1\times 1 = 2+4 = 6 \end{align*}

We can therefore choose M=6M=6, and it follows that the error is at most

M[b−a]324n2≤6⋅[1−(−1)]324⋅10002=2106=2⋅10−6\begin{align*} \frac{M[b-a]^3}{24n^2} \le \frac{6\cdot [1-(-1)]^3}{24 \cdot 1000^2} = \frac{2}{10^6} = 2\cdot 10^{-6} \end{align*}
Full solution
Q19Stage 2Past exam · 2016Q4

The total error using the midpoint rule with nn subintervals to approximate the integral of f(x)f(x) over [a,b][a,b] is bounded by M(b−a)3(24n2)\dfrac{M (b-a)^3}{(24n^2)}, if ∣f′′(x)∣≤M|f''(x)| \le M for all a≤x≤ba \le x \le b.

Using this bound, if the integral ∫−212x4 dx\displaystyle\int_{-2}^{1} 2x^4 \,\dee{x} is approximated using the midpoint rule with 6060 subintervals, what is the largest possible error between the approximation M60M_{60} and the true value of the integral?

Hint

The main step is to find MM. This question is unusual in that its wording requires you to find the smallest possible allowed MM.

Answer

3100\dfrac{3}{100}

Full solution
Q20Stage 2Past exam · 2016A

Both parts of this question concern the integral I=∫02(x−3)5 dxI = \displaystyle\int_{0}^{2} (x-3)^5\,\dee{x}.

  1. Write down the Simpson's Rule approximation to II with n=6n=6. Leave your answer in calculator-ready form.

  2. Which method of approximating II results in a smaller error bound: the Midpoint Rule with n=100n=100 intervals, or Simpson's Rule with n=10n=10 intervals? You may use the formulas

    ∣EM∣≤M(b−a)324n2and∣ES∣≤L(b−a)5180n4,\begin{align*} |E_M| \le \frac{M(b-a)^3}{24n^2} \qquad\text{and}\qquad |E_S| \le \frac{L(b-a)^5}{180n^4}, \end{align*}

    where MM is an upper bound for ∣f′′(x)∣|f''(x)| and LL is an upper bound for ∣f(4)(x)∣|f^{(4)}(x)|, and EME_M and ESE_S are the absolute errors arising from the midpoint rule and Simpson's rule, respectively.

Hint

The main steps in part (b) are to find the smallest possible values of MM and LL.

Answer

(a) 1/33((−3)5+4(13−3)5+2(23−3)5+4(−2)5+2(43−3)5+4(53−3)5+(−1)5)\dfrac{1/3}3 \Big( (-3)^5 + 4\Big( \frac13-3 \Big)^5 + 2\Big( \frac23-3 \Big)^5 + 4(-2)^5 + 2\Big( \frac43-3 \Big)^5 + 4\Big( \frac53-3 \Big)^5 + (-1)^5 \Big)

(b) Simpson's Rule results in a smaller error bound.

Full solution
Q21Stage 2Past exam · M105 2013A

Find a bound for the error in approximating ∫151x dx\displaystyle\int_1^5 \frac{1}{x}\,\dee{x} using Simpson's rule with n=4n = 4. Do not write down the Simpson's rule approximation S4S_4.

In general the error in approximating ∫abf(x) dx\int_a^b f(x)\ \dee{x} using Simpson's rule with nn steps is bounded by L(b−a)180(Δx)4\dfrac{L(b-a)}{180}(\De x)^4 where Δx=b−an\De x=\dfrac{b-a}{n} and L≥∣f(4)(x)∣L\ge |f^{(4)}(x)| for all a≤x≤ba\le x\le b.

Hint

As usual, the biggest part of this problem is finding LL. Don't be thrown off by the error bound being given slightly differently from Theorem 1.11.12 in the CLP-2 text: these expressions are equivalent, since Δx=b−an\De x = \frac{b-a}{n}.

Answer

815\dfrac{8}{15}

Full solution
Q22Stage 2Past exam · M105 2012A

Find a bound for the error in approximating

∫01(e−2x+3x3) dx\begin{equation*} \int_0^1 \big(e^{-2x}+3x^3\big)\,\dee{x} \end{equation*}

using Simpson's rule with n=6n = 6. Do not write down the Simpson's rule approximation SnS_n.

In general, the error in approximating ∫abf(x) dx\int_a^b f(x)\ \dee{x} using Simpson's rule with nn steps is bounded by L(b−a)180(Δx)4\dfrac{ L(b-a)}{180}(\De x)^4 where Δx=b−an\De x=\dfrac{b-a}{n} and L≥∣f(4)(x)∣L\ge |f^{(4)}(x)| for all a≤x≤ba\le x\le b.

Hint

The function e−2x=1e2xe^{-2x} = \dfrac{1}{e^{2x}} is positive and decreasing, so its maximum occurs when xx is as small as possible.

Answer

1180×34=114580\displaystyle\frac{1}{180\times 3^4} =\frac{1}{14580}

Full solution
Q23Stage 2Past exam · 2012A

Let I=∫12(1/x) dxI=\displaystyle\int_1^2 (1/x)\,\dee{x}.

  1. Write down the trapezoidal approximation T4T_4 for II. You do not need to simplify your answer.

  2. Write down the Simpson's approximation S4S_4 for II. You do not need to simplify your answer.

  3. Without computing II, find an upper bound for ∣I−S4∣|I - S_4|. You may use the fact that if ∣f(4)(x)∣≤L\big|f^{(4)}(x)\big|\le L on the interval [a,b][a, b], then the error in using SnS_n to approximate ∫abf(x) dx\int_a^b f(x)\,\dee{x} has absolute value less than or equal to L(b−a)5/180n4L(b-a)^5/180n^4.

Answer

(a) T4=14[(12×1)+45+23+47+(12×12)]\displaystyle T_4 =\frac{1}{4}\left[\left(\frac{1}{2}\times 1\right)+\frac{4}{5}+\frac{2}{3}+ \frac{4}{7}+\left(\frac{1}{2}\times\frac{1}{2}\right)\right],

(b) S4=112[1+(4×45)+(2×23)+(4×47)+12]\displaystyle S_4 =\frac{1}{12}\left[1+\left(4\times\frac{4}{5}\right)+\left(2\times \frac{2}{3}\right)+\left(4\times \frac{4}{7}\right)+\frac{1}{2}\right]

(c) ∣I−S4∣≤24180×44=11920\displaystyle\Big|I -S_4\Big| \le \frac{24}{180\times 4^4}=\frac{1}{1920}

Full solution
Q24Stage 2Past exam · M121 2000A

A function s(x)s(x) satisfies s(0)=1.00664s(0)=1.00664, s(2)=1.00543s(2)=1.00543, s(4)=1.00435s(4)=1.00435, s(6)=1.00331s(6)=1.00331, s(8)=1.00233s(8)=1.00233. Also, it is known to satisfy ∣s(k)(x)∣≤k1000\big|s^{(k)}(x)\big|\le \dfrac{k}{1000} for 0≤x≤80\le x\le 8 and all positive integers kk.

  1. Find the best Trapezoidal Rule and Simpson's Rule approximations that you can for I=∫08s(x) dx\displaystyle I=\int_0^8 s(x)\ \dee{x}.

  2. Determine the maximum possible sizes of errors in the approximations you gave in part (a). Recall that if a function f(x)f(x) satisfies ∣f(k)(x)∣≤Kk\big|f^{(k)}(x)\big|\le K_k on [a,b][a,b], then

    ∣∫abf(x) dx−Tn∣≤K2(b−a)312n2and∣∫abf(x) dx−Sn∣≤K4(b−a)5180n4\begin{equation*} \bigg|\int_a^b f(x)\ \dee{x} -T_n\bigg|\le \frac{K_2(b-a)^3}{12n^2} \quad\hbox{and}\quad \bigg|\int_a^b f(x)\ \dee{x} -S_n\bigg|\le \frac{K_4(b-a)^5}{180n^4} \end{equation*}
Hint

The “best ... approximations that you can" means using the maximum number of intervals, given the information available.

The final sentence in part (b) is just a re-statement of the error bounds we're familiar with from Theorem 1.11.12 in the CLP-2 text. The information ∣s(k)(x)∣≤k1000\big|s^{(k)}(x)\big|\le \dfrac{k}{1000} gives you values of MM and LL when you set k=2k=2 and k=4k=4, respectively.

Answer

(a) T4=8.03515T_4=8.03515, S4≈8.03509S_4\approx 8.03509

(b) ∣∫abf(x) dx−Tn∣≤210008312(4)2≤0.00533\displaystyle\Big|\int_a^b f(x)\ \dee{x} -T_n\Big| \le \frac{2}{1000}\frac{8^3}{12(4)^2} \le0.00533, ∣∫abf(x) dx−Sn∣≤4100085180(4)4≤0.00284\displaystyle\Big|\int_a^b f(x)\ \dee{x} -S_n\Big| \le \frac{4}{1000}\frac{8^5}{180(4)^4}\le0.00284

Full solution
Q25Stage 2Past exam · 2014A

Consider the trapezoidal rule for making numerical approximations to ∫abf(x) dx\displaystyle\int_a^b f(x)\ \dee{x}. The error for the trapezoidal rule satisfies ∣ET∣≤M(b−a)312n2|E_T| \le \dfrac{ M(b - a)^3}{12n^2} , where ∣f′′(x)∣≤M|f''(x)| \le M for a≤x≤ba \le x \le b. If −2<f′′(x)<0-2 < f''(x) < 0 for 1≤x≤41 \le x \le 4, find a value of nn to guarantee the trapezoidal rule will give an approximation for ∫14f(x) dx\displaystyle\int_1^4 f(x)\ \dee{x} with absolute error, ∣ET∣|E_T|, less than 0.0010.001.

Hint

Set the error bound to be less than 0.0010.001, then solve for nn.

Answer

Any n≥68n\ge 68 works.

Full solution

3Stage 3Application

Further than practice: several ideas at once, or an unfamiliar situation.

Q26Stage 3Past exam · 1996A

A swimming pool has the shape shown in the figure below. The vertical cross-sections of the pool are semi-circular disks. The distances in feet across the pool are given in the figure at 2–foot intervals along the sixteen–foot length of the pool. Use Simpson's Rule to estimate the volume of the pool.

Figure from prob_s1.11, line 1411

Figure from prob_s1.11, line 1411

Hint

See Section 1.11.3 in the

CLP-2 text. To set up the volume integral, see Example 1.6.2 in the

CLP-2 text.

Since the cross-sections of the pool are semi-circular disks, a section that is dd metres across will have area 12π(d2)2\frac{1}{2}\pi\left(\frac{d}{2}\right)^2 square feet. Based on the drawing, you may assume the very ends of the pool have distance 0 feet across.

Answer

4723≈494 ft3\dfrac{472}{3}\approx 494 \ {\rm ft}^3

Full solution
Q27Stage 3Past exam · 2002A,M121 2002A

A piece of wire 1m long with radius 1mm is made in such a way that the density varies in its cross-section, but is radially symmetric (that is, the local density g(r)g(r) in kg/m3{\rm kg/m^3} depends only on the distance rr in mm from the centre of the wire). Take as given that the total mass WW of the wire in kg is given by

W=2π10−6∫01rg(r) dr\begin{align*} W=2\pi 10^{-6}\int_0^1 rg(r)\,\dee{r} \end{align*}

Data from the manufacturer is given below:

rr01/41/23/41
g(r)g(r)80518100814481708190
  1. Find the best Trapezoidal Rule approximation that you can for WW based on the data in the table.

  2. Suppose that it is known that ∣g′(r)∣<200|g'(r)|<200 and ∣g′′(r)∣<150|g''(r)|<150 for all values of rr. Determine the maximum possible size of the error in the approximation you gave in part (a). Recall that if a function f(x)f(x) satisfies ∣f′′(x)∣≤M|f''(x)|\le M on [a,b][a,b], then

    ∣I−Tn∣≤M(b−a)312n2\begin{align*} |I-T_n|\le\frac{M(b-a)^3}{12n^2} \end{align*}

    where I=∫abf(x) dxI=\int_a^b f(x)\,\dee{x} and TnT_n is the Trapezoidal Rule approximation to II using nn subintervals.

Hint

See Example 1.11.14 in the

CLP-2 text.

Don't get caught up in the interpretation of the integral. It's nice to see how integrals can be used, but for this problem, you're still just approximating the integral given, and bounding the error.

When you find the second derivative to bound your error, pay attention to the difference between the integrand and g(r)g(r).

Answer

(a) 0.0256350.025635 (b) 1.8×10−51.8\times 10^{-5}

Full solution
Q28Stage 3Past exam · 1997A

Simpson's rule can be used to approximate log⁡2\log 2, since log⁡2=∫121x dx\displaystyle\log 2=\int_1^2\frac{1}{x}\,\dee{x}.

  1. Use Simpson's rule with 6 subintervals to approximate log⁡2\log 2.

  2. How many subintervals are required in order to guarantee that the absolute error is less than 0.000010.00001?

    Note that if EnE_n is the error using nn subintervals, then ∣En∣≤L(b−a)5180n4|E_n|\le\dfrac{L(b-a)^5}{180n^4} where LL is the maximum absolute value of the fourth derivative of the function being integrated and aa and bb are the end points of the interval.

Hint

See Example 1.11.15 in the

CLP-2 text. You'll want to use a calculator for the approximation in (a), and for finding the appropriate number of intervals in (b). Remember that Simpson's rule requires an even number of intervals.

Answer

(a) ≈0.6931698\approx 0.6931698 (b) n≥12n\ge 12 with nn even

Full solution
Q29Stage 3Past exam · 1997D

Let I=∫02cos⁡(x2) dxI={\displaystyle\int_0^2}\cos(x^2)\ \dee{x} and let SnS_n be the Simpson's rule approximation to II using nn subintervals.

  1. Estimate the maximum absolute error in using S8S_8 to approximate II.

  2. How large should nn be in order to ensure that ∣I−Sn∣≤0.0001|I-S_n|\le 0.0001?

Note: The graph of f′′′′(x)f''''(x), where f(x)=cos⁡(x2)f(x)=\cos(x^2), is shown below. The absolute error in the Simpson's rule approximation is bounded by L(b−a)5180n4\dfrac{L(b-a)^5}{180n^4} when ∣f′′′′(x)∣≤L|f''''(x)|\le L on the interval [a,b][a,b].

Figure from prob_s1.11, line 1623

Figure from prob_s1.11, line 1623

Hint

See Example 1.11.15 in the

CLP-2 text.

Rather than calculating the fourth derivative of the integrand, use the graph to find the largest absolute value it attains over our interval.

Answer

(a) 0.013450.01345 (b) n≥28n\ge 28 with nn even

Full solution
Q30Stage 3Past exam · 2000D

Define a function f(x)f(x) and an integral II by

f(x)=∫0x2sin⁡(t) dt,I=∫01f(t) dt\begin{align*} f(x)=\int_0^{x^2}\sin(\sqrt{t})\,\dee{t},\qquad I=\int_0^1 f(t)\,\dee{t} \end{align*}

Estimate how many subdivisions are needed to calculate II to five decimal places of accuracy using the trapezoidal rule.

Note that if EnE_n is the error using nn subintervals, then ∣En∣≤M(b−a)312n212|E_n|\le\dfrac{M(b-a)^3}{12n^2\vphantom{\frac{1}{2}}}, where MM is the maximum absolute value of the second derivative of the function being integrated and aa and bb are the limits of integration.

Hint

See Example 1.11.14 in the

CLP-2 text.

You'll have to differentiate f(x)f(x). To that end, you may also want to review the fundamental theorem of calculus and, in particular, Example 1.3.5 in the

CLP-2 text.

You don't have to find the best possible value for MM. A reasonable upper bound on ∣f′′(x)∣|f''(x)| will do.

To have five decimal places of accuracy, your error must be less than 0.000005. This ensures that, if you round your approximation to five decimal places, they will all be correct.

Answer

n≥259n\ge 259

Full solution
Q31Stage 3

Let f(x)f(x) be a function (For example, f(x)=16x3−12x2+(1+x)log⁡∣x+1∣f(x)=\frac{1}{6}x^3-\frac{1}{2}x^2+(1+x)\log|x+1| will do, but you don't need to know what f(x)f(x) is for this problem.) with f′′(x)=x2x+1f''(x) = \dfrac{x^2}{x+1}.

  1. Show that ∣f′′(x)∣≤1|f''(x)| \leq 1 whenever xx is in the interval [0,1][0,1].

  2. Find the maximum value of ∣f′′(x)∣|f''(x)| over the interval [0,1][0,1].

  3. Assuming M=1M=1, how many intervals should you use to approximate ∫01f(x) dx\displaystyle\int_{0}^{1}f(x)~\dee{x} to within 10−510^{-5}?

  4. Using the value of MM you found in (b), how many intervals should you use to approximate ∫01f(x) dx\displaystyle\int_0^1 f(x)~\dee{x} to within 10−510^{-5}?

Hint

To find the maximum value of ∣f′′(x)∣|f''(x)|, check its critical points and endpoints.

Answer

(a) When 0≤x≤10 \leq x \leq1, then x2≤1x^2 \leq 1 and x+1≥1x+1 \geq 1, so ∣f′′(x)∣=x2∣x+1∣≤11=1|f''(x)| = \dfrac{x^2}{|x+1|}\leq \dfrac{1}{1}=1.
(b) 12\dfrac{1}{2} (c) n≥65n \geq 65 (d) n≥46n \geq 46

Full solution
Q32Stage 3

Approximate the function log⁡x\log x with a rational function by approximating the integral ∫1x121t dt\displaystyle\int_1^{x\vphantom{\frac{1}{2}}} \frac{1}{t}~\dee{t} using Simpson's rule. Your rational function f(x)f(x) should approximate log⁡x\log x with an error of not more than 0.1 for any xx in the interval [1,3][1,3].

Hint

In using Simpson's rule to approximate ∫1x121t dt\displaystyle\int_1^{x\vphantom{\frac{1}{2}}} \frac{1}{t}~\dee{t} with nn intervals, a=1a=1, b=xb=x, and Δx=x−1n\De x = \dfrac{x-1}{n}.

Answer

x−112[1+16x+3+4x+1+163x+1+1x]\displaystyle\frac{x-1}{12}\left[1+\frac{16}{x+3}+\frac{4}{x+1}+\frac{16}{3x+1}+\frac{1}{x}\right]

Full solution
Q33Stage 3

Using an approximation of the area under the curve 1x2+1\dfrac{1}{x^2+1}, show that the constant arctan⁡2\arctan2 is in the interval [π4+0.321, π4+0.323]\left[\dfrac{\pi}{4}+0.321,\, \dfrac{\pi}{4}+0.323\right].

You may assume use without proof that d4dx4{11+x2}=24(5x4−10x2+1)(x2+1)5\displaystyle\ddiff{4}{}{x}\left\{\frac{1}{1+x^2}\right\} = \dfrac{24(5x^4-10x^2+1)}{(x^2+1)^5}. You may use a calculator, but only to add, subtract, multiply, and divide.

Hint
  • ∫1211+x2 dx=arctan⁡(2)−π4\int_1^2 \frac{1}{1+x^2}~\dee{x} = \arctan(2) - \frac{\pi}{4}, so arctan⁡(2)=π4+∫1211+x2 dx\arctan(2) = \frac{\pi}{4}+\int_1^2 \frac{1}{1+x^2}~\dee{x}

  • If an approximation AA of the integral ∫1211+x2 dx\int_1^2 \frac{1}{1+x^2}~\dee{x} has error at most ε\varepsilon, then A−ε≤∫1211+x2 dx≤A+εA-\varepsilon \leq \int_1^2 \frac{1}{1+x^2}~\dee{x} \leq A+\varepsilon.

  • Looking at our target interval will tell you how small ε\varepsilon needs to be, which in turn will tell you how many intervals you need to use.

  • You can show, by considering the numerator and denominator separately, that ∣f(4)(x)∣≤30.75|f^{(4)}(x)| \leq 30.75 for every xx in [1,2][1,2].

  • If you use Simpson's rule to approximate ∫1211+x2 dx\int_1^2 \frac{1}{1+x^2}~\dee{x}, you won't need very many intervals to get the requisite accuracy.

Answer

Note: for more detail, see the solutions.

First, we use Simpson's rule with n=4n=4 to approximate ∫1211+x2 dx\int_1^2 \frac{1}{1+x^2}\,\dee{x}. The choice of this method (what we're approximating, why n=4n=4, etc.) is explained in the solutions–here, we only show that it works.

∫1211+x2 dx≈112[12+6441+813+6465+15]≈0.321748\int_1^2 \frac{1}{1+x^2}\,\dee{x} \approx\frac{1}{12}\left[ \frac{1}{2} + \frac{64}{41}+\frac{8}{13}+\frac{64}{65}+\frac{1}{5} \right]\approx 0.321748

For ease of notation, define A=0.321748A=0.321748.

Now, we bound the error associated with this approximation. Define N(x)=24(5x4−10x2+1)N(x) = 24(5x^4-10x^2+1) and D(x)=(x2+1)5D(x) = (x^2+1)^5, so N(x)/D(x)N(x)/D(x) gives the fourth derivative of 11+x2\frac{1}{1+x^2}. When 1≤x≤21 \le x \le 2, ∣N(x)∣≤N(2)=984|N(x)| \le N(2)=984 (because N(x)N(x) is increasing over that interval) and ∣D(x)∣≥D(1)=25|D(x)| \geq D(1) = 2^5 (because D(x)D(x) is also increasing over that interval), so ∣d4dx4{11+x2}∣=∣N(x)D(x)∣≤98425=30.75\left| \ddiff{4}{}{x}\left\{\frac{1}{1+x^2}\right\}\right| = \left| \frac{N(x)}{D(x)}\right| \leq \frac{984}{2^5}=30.75. Now we find the error bound for Simpson's rule with L=30.75L=30.75, b=2b=2, a=1a=1, and n=4n=4.

∣∫1211+x2 dx−A∣=∣error∣≤L(b−a)5180⋅n4 =30.75180⋅44<0.00067\left| \int_1^2 \frac{1}{1+x^2}\,\dee{x} - A\right| =|\text{error}| \leq \frac{L(b-a)^5}{180\cdot n^4}\ =\frac{30.75}{180\cdot 4^4}<0.00067

So,

−0.00067<∫1211+x2 dx−A<0.00067A−0.0067<∫1211+x2 dx<A+0.00067A−0.00067<arctan⁡(2)−arctan⁡(1)<A+0.00067A−0.00067<arctan⁡(2)−π4<A+0.00067π4+A−0.00067<arctan⁡(2)<π4+A+0.00067π4+0.321748−0.00067<arctan⁡(2)<π4+0.321748+0.00067π4+0.321078<arctan⁡(2)<π4+0.322418π4+0.321<arctan⁡(2)<π4+0.323\begin{align*} -0.00067 &&<&& \int_1^2 \frac{1}{1+x^2}\,\dee{x} - A &&<&& 0.00067\\ A-0.0067 &&<&& \int_1^2 \frac{1}{1+x^2}\,\dee{x} &&<&& A+0.00067\\ A-0.00067 &&<&& \arctan(2)-\arctan(1) &&<&& A+0.00067\\ A-0.00067 &&<&& \arctan(2)-\frac{\pi}{4} &&<&& A+0.00067\\ \frac{\pi}{4}+A-0.00067 &&<&& \arctan(2) &&<&&\frac{\pi}{4}+ A+0.00067\\ \frac{\pi}{4}+0.321748-0.00067 &&<&& \arctan(2) &&<&&\frac{\pi}{4}+0.321748+0.00067\\ \frac{\pi}{4}+0.321078 &&<&& \arctan(2) &&<&&\frac{\pi}{4}+0.322418\\ \frac{\pi}{4}+0.321 &&<&& \arctan(2) &&<&&\frac{\pi}{4}+0.323 \end{align*}

This was the desired bound.

Full solution

My list

nothing marked yet

Loading…

Open the whole list →

Your tutor can open this list with you. It follows your account, so it is there on whichever device you study on.

From the UBC Math 101 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.