{"id":752,"date":"2025-06-20T17:10:06","date_gmt":"2025-06-20T17:10:06","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/calculus2\/?post_type=chapter&#038;p=752"},"modified":"2025-09-10T14:35:17","modified_gmt":"2025-09-10T14:35:17","slug":"numerical-integration-methods-learn-it-4","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/calculus2\/chapter\/numerical-integration-methods-learn-it-4\/","title":{"raw":"Numerical Integration Methods: Learn It 4","rendered":"Numerical Integration Methods: Learn It 4"},"content":{"raw":"<h2>Error Bound for Simpson\u2019s Rule<\/h2>\r\n<p id=\"fs-id1165042108863\">Just as the trapezoidal rule is the average of the left-hand and right-hand rules for estimating definite integrals, Simpson\u2019s rule may be obtained from the midpoint and trapezoidal rules by using a weighted average. It can be shown that:<\/p>\r\n<p style=\"text-align: center;\">[latex]{S}_{2n}=\\left(\\frac{2}{3}\\right){M}_{n}+\\left(\\frac{1}{3}\\right){T}_{n}[\/latex].<\/p>\r\n<p id=\"fs-id1165042264461\">It is also possible to put a bound on the error when using Simpson\u2019s rule to approximate a definite integral. The bound in the error is given by the following rule:<\/p>\r\n\r\n<section class=\"textbox keyTakeaway\" aria-label=\"Key Takeaway\">\r\n<div>\r\n<h3>error bound for Simpson\u2019s Rule<\/h3>\r\nLet [latex]f\\left(x\\right)[\/latex] be a continuous function over [latex]\\left[a,b\\right][\/latex] having a fourth derivative, [latex]{f}^{\\left(4\\right)}\\left(x\\right)[\/latex], over this interval. If [latex]M[\/latex] is the maximum value of [latex]|{f}^{\\left(4\\right)}\\left(x\\right)|[\/latex] over [latex]\\left[a,b\\right][\/latex], then the upper bound for the error in using [latex]{S}_{n}[\/latex] to estimate [latex]{\\displaystyle\\int }_{a}^{b}f\\left(x\\right)dx[\/latex] is given by\r\n<p style=\"text-align: center;\">[latex]\\text{Error in}{S}_{n}\\le \\frac{M{\\left(b-a\\right)}^{5}}{180{n}^{4}}[\/latex].<\/p>\r\n\r\n<\/div>\r\n<\/section><section class=\"textbox example\" aria-label=\"Example\">\r\n<div id=\"fs-id1165042217551\" data-type=\"problem\">\r\n<p id=\"fs-id1165042217557\">Use [latex]{S}_{2}[\/latex] to approximate [latex]{\\displaystyle\\int }_{0}^{1}{x}^{3}dx[\/latex]. Estimate a bound for the error in [latex]{S}_{2}[\/latex].<\/p>\r\n\r\n<\/div>\r\n[reveal-answer q=\"44558799\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"44558799\"]\r\n<div id=\"fs-id1165041848372\" data-type=\"solution\">\r\n<p id=\"fs-id1165041848374\">Since [latex]\\left[0,1\\right][\/latex] is divided into two intervals, each subinterval has length [latex]\\Delta x=\\frac{1 - 0}{2}=\\frac{1}{2}[\/latex]. The endpoints of these subintervals are [latex]\\left\\{0,\\frac{1}{2},1\\right\\}[\/latex]. If we set [latex]f\\left(x\\right)={x}^{3}[\/latex], then<\/p>\r\n<p id=\"fs-id1165041962775\">[latex]{S}_{4}=\\frac{1}{3}\\cdot \\frac{1}{2}\\left(f\\left(0\\right)+4f\\left(\\frac{1}{2}\\right)+f\\left(1\\right)\\right)=\\frac{1}{6}\\left(0+4\\cdot \\frac{1}{8}+1\\right)=\\frac{1}{4}[\/latex]. Since [latex]{f}^{\\left(4\\right)}\\left(x\\right)=0[\/latex] and consequently [latex]M=0[\/latex], we see that<\/p>\r\n\r\n<div id=\"fs-id1167793627790\" class=\"unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\text{Error in }{S}_{2}\\le \\frac{0{\\left(1\\right)}^{5}}{180\\cdot {2}^{4}}=0[\/latex].<\/div>\r\n&nbsp;\r\n<p id=\"fs-id1165041971466\">This bound indicates that the value obtained through Simpson\u2019s rule is exact. A quick check will verify that, in fact, [latex]{\\displaystyle\\int }_{0}^{1}{x}^{3}dx=\\frac{1}{4}[\/latex].<\/p>\r\n\r\n<\/div>\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox example\" aria-label=\"Example\">\r\n<div id=\"fs-id1165042199253\" data-type=\"problem\">\r\n<p id=\"fs-id1165042199259\">Use [latex]{S}_{6}[\/latex] to estimate the length of the curve [latex]y=\\frac{1}{2}{x}^{2}[\/latex] over [latex]\\left[1,4\\right][\/latex].<\/p>\r\n\r\n<\/div>\r\n[reveal-answer q=\"44558699\"]Show Solution[\/reveal-answer]\r\n[hidden-answer a=\"44558699\"]\r\n<div id=\"fs-id1165040668581\" data-type=\"solution\">\r\n<p id=\"fs-id1165040668583\">The length of [latex]y=\\frac{1}{2}{x}^{2}[\/latex] over [latex]\\left[1,4\\right][\/latex] is [latex]{\\displaystyle\\int }_{1}^{4}\\sqrt{1+{x}^{2}}dx[\/latex]. If we divide [latex]\\left[1,4\\right][\/latex] into six subintervals, then each subinterval has length [latex]\\Delta x=\\frac{4 - 1}{6}=\\frac{1}{2}[\/latex], and the endpoints of the subintervals are [latex]\\left\\{1,\\frac{3}{2},2,\\frac{5}{2},3,\\frac{7}{2},4\\right\\}[\/latex]. Setting [latex]f\\left(x\\right)=\\sqrt{1+{x}^{2}}[\/latex],<\/p>\r\n\r\n<div id=\"fs-id1165040758286\" class=\"unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]{S}_{6}=\\frac{1}{3}\\cdot \\frac{1}{2}\\left(f\\left(1\\right)+4f\\left(\\frac{3}{2}\\right)+2f\\left(2\\right)+4f\\left(\\frac{5}{2}\\right)+2f\\left(3\\right)+4f\\left(\\frac{7}{2}\\right)+f\\left(4\\right)\\right)[\/latex].<\/div>\r\n&nbsp;\r\n<p id=\"fs-id1165042296653\">After substituting, we have<\/p>\r\n\r\n<div id=\"fs-id1165042296656\" class=\"unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{array}{cc}\\hfill {S}_{6}&amp; =\\frac{1}{6}\\left(1.4142+4\\cdot 1.80278+2\\cdot 2.23607+4\\cdot 2.69258+2\\cdot 3.16228+4\\cdot 3.64005+4.12311\\right)\\hfill \\\\ &amp; \\approx 8.14594.\\hfill \\end{array}[\/latex]<\/div>\r\n&nbsp;\r\n\r\n<\/div>\r\n[\/hidden-answer]\r\n\r\n<\/section><section class=\"textbox watchIt\" aria-label=\"Watch It\">Watch the following video to see the worked solution to the example above.<center><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/XZ_mr5QqQNA?controls=0&amp;start=290&amp;end=543&amp;autoplay=0\" width=\"750\" height=\"450\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/center>For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.You can view the <a href=\"https:\/\/oerfiles.s3.us-west-2.amazonaws.com\/Calculus+II\/Transcripts\/3.6.5_290to543_transcript.html\" target=\"_blank\" rel=\"noopener\">transcript for this segmented clip of \"3.6.5\" here (opens in new window)<\/a>.<\/section><section class=\"textbox tryIt\" aria-label=\"Try It\">[ohm_question hide_question_numbers=1]311297[\/ohm_question]<\/section>","rendered":"<h2>Error Bound for Simpson\u2019s Rule<\/h2>\n<p id=\"fs-id1165042108863\">Just as the trapezoidal rule is the average of the left-hand and right-hand rules for estimating definite integrals, Simpson\u2019s rule may be obtained from the midpoint and trapezoidal rules by using a weighted average. It can be shown that:<\/p>\n<p style=\"text-align: center;\">[latex]{S}_{2n}=\\left(\\frac{2}{3}\\right){M}_{n}+\\left(\\frac{1}{3}\\right){T}_{n}[\/latex].<\/p>\n<p id=\"fs-id1165042264461\">It is also possible to put a bound on the error when using Simpson\u2019s rule to approximate a definite integral. The bound in the error is given by the following rule:<\/p>\n<section class=\"textbox keyTakeaway\" aria-label=\"Key Takeaway\">\n<div>\n<h3>error bound for Simpson\u2019s Rule<\/h3>\n<p>Let [latex]f\\left(x\\right)[\/latex] be a continuous function over [latex]\\left[a,b\\right][\/latex] having a fourth derivative, [latex]{f}^{\\left(4\\right)}\\left(x\\right)[\/latex], over this interval. If [latex]M[\/latex] is the maximum value of [latex]|{f}^{\\left(4\\right)}\\left(x\\right)|[\/latex] over [latex]\\left[a,b\\right][\/latex], then the upper bound for the error in using [latex]{S}_{n}[\/latex] to estimate [latex]{\\displaystyle\\int }_{a}^{b}f\\left(x\\right)dx[\/latex] is given by<\/p>\n<p style=\"text-align: center;\">[latex]\\text{Error in}{S}_{n}\\le \\frac{M{\\left(b-a\\right)}^{5}}{180{n}^{4}}[\/latex].<\/p>\n<\/div>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">\n<div id=\"fs-id1165042217551\" data-type=\"problem\">\n<p id=\"fs-id1165042217557\">Use [latex]{S}_{2}[\/latex] to approximate [latex]{\\displaystyle\\int }_{0}^{1}{x}^{3}dx[\/latex]. Estimate a bound for the error in [latex]{S}_{2}[\/latex].<\/p>\n<\/div>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q44558799\">Show Solution<\/button><\/p>\n<div id=\"q44558799\" class=\"hidden-answer\" style=\"display: none\">\n<div id=\"fs-id1165041848372\" data-type=\"solution\">\n<p id=\"fs-id1165041848374\">Since [latex]\\left[0,1\\right][\/latex] is divided into two intervals, each subinterval has length [latex]\\Delta x=\\frac{1 - 0}{2}=\\frac{1}{2}[\/latex]. The endpoints of these subintervals are [latex]\\left\\{0,\\frac{1}{2},1\\right\\}[\/latex]. If we set [latex]f\\left(x\\right)={x}^{3}[\/latex], then<\/p>\n<p id=\"fs-id1165041962775\">[latex]{S}_{4}=\\frac{1}{3}\\cdot \\frac{1}{2}\\left(f\\left(0\\right)+4f\\left(\\frac{1}{2}\\right)+f\\left(1\\right)\\right)=\\frac{1}{6}\\left(0+4\\cdot \\frac{1}{8}+1\\right)=\\frac{1}{4}[\/latex]. Since [latex]{f}^{\\left(4\\right)}\\left(x\\right)=0[\/latex] and consequently [latex]M=0[\/latex], we see that<\/p>\n<div id=\"fs-id1167793627790\" class=\"unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\text{Error in }{S}_{2}\\le \\frac{0{\\left(1\\right)}^{5}}{180\\cdot {2}^{4}}=0[\/latex].<\/div>\n<p>&nbsp;<\/p>\n<p id=\"fs-id1165041971466\">This bound indicates that the value obtained through Simpson\u2019s rule is exact. A quick check will verify that, in fact, [latex]{\\displaystyle\\int }_{0}^{1}{x}^{3}dx=\\frac{1}{4}[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox example\" aria-label=\"Example\">\n<div id=\"fs-id1165042199253\" data-type=\"problem\">\n<p id=\"fs-id1165042199259\">Use [latex]{S}_{6}[\/latex] to estimate the length of the curve [latex]y=\\frac{1}{2}{x}^{2}[\/latex] over [latex]\\left[1,4\\right][\/latex].<\/p>\n<\/div>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q44558699\">Show Solution<\/button><\/p>\n<div id=\"q44558699\" class=\"hidden-answer\" style=\"display: none\">\n<div id=\"fs-id1165040668581\" data-type=\"solution\">\n<p id=\"fs-id1165040668583\">The length of [latex]y=\\frac{1}{2}{x}^{2}[\/latex] over [latex]\\left[1,4\\right][\/latex] is [latex]{\\displaystyle\\int }_{1}^{4}\\sqrt{1+{x}^{2}}dx[\/latex]. If we divide [latex]\\left[1,4\\right][\/latex] into six subintervals, then each subinterval has length [latex]\\Delta x=\\frac{4 - 1}{6}=\\frac{1}{2}[\/latex], and the endpoints of the subintervals are [latex]\\left\\{1,\\frac{3}{2},2,\\frac{5}{2},3,\\frac{7}{2},4\\right\\}[\/latex]. Setting [latex]f\\left(x\\right)=\\sqrt{1+{x}^{2}}[\/latex],<\/p>\n<div id=\"fs-id1165040758286\" class=\"unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]{S}_{6}=\\frac{1}{3}\\cdot \\frac{1}{2}\\left(f\\left(1\\right)+4f\\left(\\frac{3}{2}\\right)+2f\\left(2\\right)+4f\\left(\\frac{5}{2}\\right)+2f\\left(3\\right)+4f\\left(\\frac{7}{2}\\right)+f\\left(4\\right)\\right)[\/latex].<\/div>\n<p>&nbsp;<\/p>\n<p id=\"fs-id1165042296653\">After substituting, we have<\/p>\n<div id=\"fs-id1165042296656\" class=\"unnumbered\" style=\"text-align: center;\" data-type=\"equation\" data-label=\"\">[latex]\\begin{array}{cc}\\hfill {S}_{6}& =\\frac{1}{6}\\left(1.4142+4\\cdot 1.80278+2\\cdot 2.23607+4\\cdot 2.69258+2\\cdot 3.16228+4\\cdot 3.64005+4.12311\\right)\\hfill \\\\ & \\approx 8.14594.\\hfill \\end{array}[\/latex]<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<section class=\"textbox watchIt\" aria-label=\"Watch It\">Watch the following video to see the worked solution to the example above.<\/p>\n<div style=\"text-align: center;\"><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/XZ_mr5QqQNA?controls=0&amp;start=290&amp;end=543&amp;autoplay=0\" width=\"750\" height=\"450\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\" data-mce-fragment=\"1\"><\/iframe><\/div>\n<p>For closed captioning, open the video on its original page by clicking the Youtube logo in the lower right-hand corner of the video display. In YouTube, the video will begin at the same starting point as this clip, but will continue playing until the very end.You can view the <a href=\"https:\/\/oerfiles.s3.us-west-2.amazonaws.com\/Calculus+II\/Transcripts\/3.6.5_290to543_transcript.html\" target=\"_blank\" rel=\"noopener\">transcript for this segmented clip of &#8220;3.6.5&#8221; here (opens in new window)<\/a>.<\/section>\n<section class=\"textbox tryIt\" aria-label=\"Try It\"><iframe loading=\"lazy\" id=\"ohm311297\" class=\"resizable\" src=\"https:\/\/ohm.lumenlearning.com\/multiembedq.php?id=311297&theme=lumen&iframe_resize_id=ohm311297&source=tnh\" width=\"100%\" height=\"150\"><\/iframe><\/section>\n","protected":false},"author":15,"menu_order":8,"template":"","meta":{"_candela_citation":"[]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":667,"module-header":"- Select Header -","content_attributions":[],"internal_book_links":[],"video_content":null,"cc_video_embed_content":{"cc_scripts":"","media_targets":[]},"try_it_collection":null,"_links":{"self":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapters\/752"}],"collection":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/users\/15"}],"version-history":[{"count":7,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapters\/752\/revisions"}],"predecessor-version":[{"id":2290,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapters\/752\/revisions\/2290"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/parts\/667"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapters\/752\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/media?parent=752"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapter-type?post=752"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/contributor?post=752"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/license?post=752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}