<< Chapter < Page Chapter >> Page >
  • Approximate the value of a definite integral by using the midpoint and trapezoidal rules.
  • Determine the absolute and relative error in using a numerical integration technique.
  • Estimate the absolute and relative error using an error-bound formula.
  • Recognize when the midpoint and trapezoidal rules over- or underestimate the true value of an integral.
  • Use Simpson’s rule to approximate the value of a definite integral to a given accuracy.

The antiderivatives of many functions either cannot be expressed or cannot be expressed easily in closed form (that is, in terms of known functions). Consequently, rather than evaluate definite integrals of these functions directly, we resort to various techniques of numerical integration    to approximate their values. In this section we explore several of these techniques. In addition, we examine the process of estimating the error in using these techniques.

The midpoint rule

Earlier in this text we defined the definite integral of a function over an interval as the limit of Riemann sums . In general, any Riemann sum of a function f ( x ) over an interval [ a , b ] may be viewed as an estimate of a b f ( x ) d x . Recall that a Riemann sum of a function f ( x ) over an interval [ a , b ] is obtained by selecting a partition

P = { x 0 , x 1 , x 2 ,… , x n } , where a = x 0 < x 1 < x 2 < < x n = b

and a set

S = { x 1 * , x 2 * ,… , x n * } , where x i 1 x i * x i for all i .

The Riemann sum corresponding to the partition P and the set S is given by i = 1 n f ( x i * ) Δ x i , where Δ x i = x i x i 1 , the length of the i th subinterval.

The midpoint rule    for estimating a definite integral uses a Riemann sum with subintervals of equal width and the midpoints, m i , of each subinterval in place of x i * . Formally, we state a theorem regarding the convergence of the midpoint rule as follows.

The midpoint rule

Assume that f ( x ) is continuous on [ a , b ] . Let n be a positive integer and Δ x = b a n . If [ a , b ] is divided into n subintervals, each of length Δ x , and m i is the midpoint of the i th subinterval, set

M n = i = 1 n f ( m i ) Δ x .

Then lim n M n = a b f ( x ) d x .

As we can see in [link] , if f ( x ) 0 over [ a , b ] , then i = 1 n f ( m i ) Δ x corresponds to the sum of the areas of rectangles approximating the area between the graph of f ( x ) and the x -axis over [ a , b ] . The graph shows the rectangles corresponding to M 4 for a nonnegative function over a closed interval [ a , b ] .

This figure is a graph of a non-negative function in the first quadrant. The function increases and decreases. The quadrant is divided into a grid. Beginning on the x-axis at the point labeled a = x sub 0, there are rectangles shaded whose heights are approximately the height of the curve. The x-axis is scaled by increments of msub1, x sub 1, m sub 2, x sub 2, m sub 3, x sub 3, m sub 4 and b = x sub 4.
The midpoint rule approximates the area between the graph of f ( x ) and the x -axis by summing the areas of rectangles with midpoints that are points on f ( x ) .

Using the midpoint rule with M 4

Use the midpoint rule to estimate 0 1 x 2 d x using four subintervals. Compare the result with the actual value of this integral.

Each subinterval has length Δ x = 1 0 4 = 1 4 . Therefore, the subintervals consist of

[ 0 , 1 4 ] , [ 1 4 , 1 2 ] , [ 1 2 , 3 4 ] , and [ 3 4 , 1 ] .

The midpoints of these subintervals are { 1 8 , 3 8 , 5 8 , 7 8 } . Thus,

M 4 = 1 4 f ( 1 8 ) + 1 4 f ( 3 8 ) + 1 4 f ( 5 8 ) + 1 4 f ( 7 8 ) = 1 4 · 1 64 + 1 4 · 9 64 + 1 4 · 25 64 + 1 4 · 21 64 = 21 64 .

Since

0 1 x 2 d x = 1 3 and | 1 3 21 64 | = 1 192 0.0052 ,

we see that the midpoint rule produces an estimate that is somewhat close to the actual value of the definite integral.

Got questions? Get instant answers now!
Got questions? Get instant answers now!

Using the midpoint rule with M 6

Use M 6 to estimate the length of the curve y = 1 2 x 2 on [ 1 , 4 ] .

The length of y = 1 2 x 2 on [ 1 , 4 ] is

1 4 1 + ( d y d x ) 2 d x .

Since d y d x = x , this integral becomes 1 4 1 + x 2 d x .

If [ 1 , 4 ] is divided into six subintervals, then each subinterval has length Δ x = 4 1 6 = 1 2 and the midpoints of the subintervals are { 5 4 , 7 4 , 9 4 , 11 4 , 13 4 , 15 4 } . If we set f ( x ) = 1 + x 2 ,

M 6 = 1 2 f ( 5 4 ) + 1 2 f ( 7 4 ) + 1 2 f ( 9 4 ) + 1 2 f ( 11 4 ) + 1 2 f ( 13 4 ) + 1 2 f ( 15 4 ) 1 2 ( 1.6008 + 2.0156 + 2.4622 + 2.9262 + 3.4004 + 3.8810 ) = 8.1431.
Got questions? Get instant answers now!
Got questions? Get instant answers now!

Questions & Answers

Discuss the differences between taste and flavor, including how other sensory inputs contribute to our  perception of flavor.
John Reply
taste refers to your understanding of the flavor . while flavor one The other hand is refers to sort of just a blend things.
Faith
While taste primarily relies on our taste buds, flavor involves a complex interplay between taste and aroma
Kamara
which drugs can we use for ulcers
Ummi Reply
omeprazole
Kamara
what
Renee
what is this
Renee
is a drug
Kamara
of anti-ulcer
Kamara
Omeprazole Cimetidine / Tagament For the complicated once ulcer - kit
Patrick
what is the function of lymphatic system
Nency Reply
Not really sure
Eli
to drain extracellular fluid all over the body.
asegid
The lymphatic system plays several crucial roles in the human body, functioning as a key component of the immune system and contributing to the maintenance of fluid balance. Its main functions include: 1. Immune Response: The lymphatic system produces and transports lymphocytes, which are a type of
asegid
to transport fluids fats proteins and lymphocytes to the blood stream as lymph
Adama
what is anatomy
Oyindarmola Reply
Anatomy is the identification and description of the structures of living things
Kamara
what's the difference between anatomy and physiology
Oyerinde Reply
Anatomy is the study of the structure of the body, while physiology is the study of the function of the body. Anatomy looks at the body's organs and systems, while physiology looks at how those organs and systems work together to keep the body functioning.
AI-Robot
what is enzymes all about?
Mohammed Reply
Enzymes are proteins that help speed up chemical reactions in our bodies. Enzymes are essential for digestion, liver function and much more. Too much or too little of a certain enzyme can cause health problems
Kamara
yes
Prince
how does the stomach protect itself from the damaging effects of HCl
Wulku Reply
little girl okay how does the stomach protect itself from the damaging effect of HCL
Wulku
it is because of the enzyme that the stomach produce that help the stomach from the damaging effect of HCL
Kamara
function of digestive system
Ali Reply
function of digestive
Ali
the diagram of the lungs
Adaeze Reply
what is the normal body temperature
Diya Reply
37 degrees selcius
Xolo
37°c
Stephanie
please why 37 degree selcius normal temperature
Mark
36.5
Simon
37°c
Iyogho
the normal temperature is 37°c or 98.6 °Fahrenheit is important for maintaining the homeostasis in the body the body regular this temperature through the process called thermoregulation which involves brain skin muscle and other organ working together to maintain stable internal temperature
Stephanie
37A c
Wulku
what is anaemia
Diya Reply
anaemia is the decrease in RBC count hemoglobin count and PVC count
Eniola
what is the pH of the vagina
Diya Reply
how does Lysin attack pathogens
Diya
acid
Mary
I information on anatomy position and digestive system and there enzyme
Elisha Reply
anatomy of the female external genitalia
Muhammad Reply
Organ Systems Of The Human Body (Continued) Organ Systems Of The Human Body (Continued)
Theophilus Reply
what's lochia albra
Kizito
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply
Practice Key Terms 5

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Calculus volume 2. OpenStax CNX. Feb 05, 2016 Download for free at http://cnx.org/content/col11965/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Calculus volume 2' conversation and receive update notifications?

Ask