{"id":416,"date":"2025-02-13T19:44:44","date_gmt":"2025-02-13T19:44:44","guid":{"rendered":"https:\/\/content.one.lumenlearning.com\/calculus2\/chapter\/approximating-integrals-learn-it-1\/"},"modified":"2025-02-13T19:44:44","modified_gmt":"2025-02-13T19:44:44","slug":"approximating-integrals-learn-it-1","status":"publish","type":"chapter","link":"https:\/\/content.one.lumenlearning.com\/calculus2\/chapter\/approximating-integrals-learn-it-1\/","title":{"raw":"Approximating Integrals: Learn It 1","rendered":"Approximating Integrals: Learn It 1"},"content":{"raw":"\n<section class=\"textbox learningGoals\">\n<ul>\n\t<li>Understand that while all differentiable functions can be derived in a straightforward formula, not all functions can be integrated into a simple antiderivative<\/li>\n\t<li>Calculate bounds for the area calculations under curves when direct integration methods aren\u2019t applicable<\/li>\n\t<li>Explain how estimating the bounds of an integral affects the accuracy of the approximation<\/li>\n<\/ul>\n<\/section>\n<h2>Approximating Integrals<\/h2>\n<p>At this point on our calculus journey, we have developed the tools to find the derivative function of <em>any&nbsp;<\/em>differentiable function. Take, for example, the following function.<\/p>\n<p style=\"text-align: center;\">[latex]f(x)=\\left[\\ln\\left(\\tan^2\\left(\\frac{1}{x^{2}+3\\sqrt{x}}\\right)\\right)\\cos^{-1}\\left(\\frac{3x^{2}+5x-1}{22x+1}\\right)+10x^{3^{x^{2}}}\\right]^{e^{\\sin(x^{3.2})}}[\/latex]<\/p>\n<p>Finding the derivative of this function would take multiple pages using the Chain Rule, Quotient Rule, Product Rule, Sum Rule, and derivative formulas. By cutting some corners and letting Wolfram|Alpha find the derivative function for us, we see that it is:<\/p>\n<p><img class=\"aligncenter wp-image-4561 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5584\/2021\/06\/22171700\/long-division.png\" alt=\"Solution for the derivation of the given function above. The details of the final equation are not important, just that it is very long and extremely complex.\" width=\"475\" height=\"512\"><\/p>\n<p>Don\u2019t worry\u2014we won\u2019t be asked to do anything quite that crazy by hand. But the point is that for any differentiable function we are given, we can apply the tools in our calculus toolbelt to find the closed-form expression of its derivative function.<\/p>\n<p>However, integration is not always straightforward. There are many functions which are integrable but have no antiderivative in terms of standard [pb_glossary id=\"2976\"]elementary functions[\/pb_glossary] we\u2019ve seen so far.<\/p>\n<section class=\"textbox example\">\n<p>Consider:<\/p>\n<p style=\"text-align: center;\">[latex]g(x)=\\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}[\/latex]<\/p>\n<p>If we were asked to compute the definite integral [latex]\\displaystyle\\int _{0}^{1} g(x)dx[\/latex], the graphical area of which is shown in the figure below, could we use the Fundamental Theorem of Calculus, Part 2?<\/p>\n<p>Try this on your own for a moment. Can you find an antiderivative of [latex]g(x)[\/latex] in terms of elementary functions?<\/p>\n<p><img class=\"aligncenter wp-image-4563 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5584\/2021\/06\/22171803\/curve.png\" alt=\"Graph of a function that is a curve, peak at y-axis 0.4 and shaded under the curve from x=0 to x=1, to the x-axis.\" width=\"512\" height=\"245\"><\/p>\n<p>If your conclusion is \u201cno,\u201d then you are correct. While the function looks simple, it does not have an antiderivative in terms of elementary functions.<\/p>\n<\/section>\n<p>In Calculus II, we will learn additional techniques to find antiderivatives and indefinite integrals, such as integration by parts and partial fraction decomposition. However, even these methods cannot help us with the function [latex]g(x)[\/latex].<\/p>\n<p>Finding an antiderivative of [latex]g(x)[\/latex] requires introducing special functions that are themselves defined in terms of integrals. This makes the process too complicated to apply the Fundamental Theorem of Calculus, Part 2, directly. (If you're curious, you can look up the error function [latex]\\text{erf}(x)[\/latex].<\/p>\n<p>So, what can we do to find [latex]\\displaystyle\\int _{0}^{1} g(x)dx[\/latex] if we cannot find an antiderivative of [latex]g(x)[\/latex] in terms of elementary functions? We approximate the definite integral!<\/p>\n<p>Remember, earlier in this module, we learned about using Riemann Sums to approximate the area under a curve. This method may not give us an exact answer but can get us very close when we've exhausted other tools. There are also tricks in mathematics that make approximations extremely useful.<\/p>\n<p>Let\u2019s use a left-endpoint Riemann Sum to approximate [latex]\\displaystyle\\int _{0}^{1} g(x)dx[\/latex] where [latex]g(x)[\/latex] is defined as above. If we split the interval [latex][0,1][\/latex] into [latex]n[\/latex] subintervals of length [latex]\\frac{1}{n}[\/latex], then the left-endpoint Riemann sum is:<\/p>\n<p style=\"text-align: center;\">[latex]L_{n}={\\displaystyle\\sum _{i=1}^{n}} g\\left(\\frac{i-1}{n}\\right)\\cdot\\frac{1}{n}[\/latex].<\/p>\n<p>If we choose [latex]n=10[\/latex], then our approximation would be:<\/p>\n<p style=\"text-align: center;\">[latex]{\\displaystyle\\int _{0}^{1}} \\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}dx\\approx L_{10}={\\displaystyle\\sum_{i=1}^{10}}\\left[\\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}(i-1\/10)^{2}}\\cdot\\frac{1}{10}\\right]\\approx0.349[\/latex].<\/p>\n<p>Graphically, this left-endpoint sum with [latex]10[\/latex] subintervals looks as follows.<\/p>\n<p><img class=\"aligncenter wp-image-4567 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5584\/2021\/06\/22172010\/red-area-blocks.png\" alt=\"Curved function on graph, peak at y=0.4, rectangles are highlighted every increment of 0.1 along the x-axis using the left y-value to approximate the area under the curve. Bound from x=0 to x=1.\" width=\"512\" height=\"343\"><\/p>\n<p>If we tell someone, \"We have an approximation for [latex]\\displaystyle\\int _{0}^{1} g(x)dx[\/latex], and it is [latex]0.349[\/latex]!\u201d they might ask, \"That's great, but how close is your approximation to the true value? How large could your error be?\" This is where the concept of bounds comes in handy.<\/p>\n<p>Instead of just giving a single approximation, we can provide upper and lower bounds for the true value. This gives more information because it tells us an interval within which the true value lies. If we choose a value from this interval as our approximation, we can also determine the maximum possible error.<\/p>\n<p>To find these bounds, we use the concepts of upper sums and lower sums.<\/p>\n<section class=\"textbox recall\">\n<p>An upper sum uses the maximum function value on each subinterval, giving a weak over-approximation of the true area. A lower sum uses the minimum function value on each subinterval, giving a weak under-approximation of the true area.<\/p>\n<\/section>\n<p>Therefore, we can state:<\/p>\n<p style=\"text-align: center;\">[latex]\\text{Lower Sum}\\le\\text{True Value}\\le\\text{Upper Sum}[\/latex].<\/p>\n<p>In our example, [latex]g(x)=\\frac{1}{\\sqrt{2\\pi}} e^{-\\frac{1}{2}x^2}[\/latex] is decreasing over the interval [latex][0,1][\/latex]. Therefore, left endpoints of subintervals give maximum function values, making left-endpoint Riemann sums upper sums. Right endpoints give minimum function values, making right-endpoint Riemann sums lower sums.<\/p>\n<p>A right-endpoint Riemann Sum to approximate [latex]\\displaystyle\\int _{0}^{1} g(x)dx[\/latex] with [latex]n[\/latex] subintervals is:<\/p>\n<p style=\"text-align: center;\">[latex]R_{n}={\\displaystyle\\sum _{i=1}^{n}} g\\left(\\frac{i}{n}\\right)\\cdot\\frac{1}{n}[\/latex]<\/p>\n<p>With [latex]n=10[\/latex], our right-endpoint approximation is:<\/p>\n<p style=\"text-align: center;\">[latex]{\\displaystyle\\int _{0}^{1}} \\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}dx\\approx R_{10}={\\displaystyle\\sum_{i=1}^{10}}\\left[\\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}(i\/10)^{2}}\\cdot\\frac{1}{10}\\right]\\approx0.333[\/latex].<\/p>\n<p>Graphically, this right-endpoint sum with [latex]10[\/latex] subintervals looks as follows.<\/p>\n<p><img class=\"aligncenter\" src=\"https:\/\/lh3.googleusercontent.com\/qmHGxItvgSDG0feqpiUtvcMzB4e_vuRembwbVGR_94aOoPCfp1ZTnG7q0U5brA-bUeaxelY-uLFsdvBSWXfVNx-NjLIpXKKtrI5xk3q4-lpi27rNtzgx9MKB7GDm_zbHLNsxX2o6\" alt=\"Curved function on graph, peak at y=0.4, rectangles are highlighted every increment of 0.1 along the x-axis using the right y-value to approximate the area under the curve. Bound from x=0 to x=1.\" width=\"565\" height=\"383\"><\/p>\n<p>Now we have an upper sum [latex]L_{10}[\/latex] and a lower sum [latex]R_{10}[\/latex], meaning we can state:<\/p>\n<p style=\"text-align: center;\">[latex]R_{10}\\le\\displaystyle\\int _{0}^{1} g(x)dx\\le L_{10}[\/latex].<\/p>\n<p>Therefore,<\/p>\n<p style=\"text-align: center;\">[latex]0.333\\le{\\displaystyle\\int _{0}^{1}} \\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}dx\\le 0.349[\/latex].<\/p>\n<p>Another way to express this is that the true value of [latex]{\\displaystyle\\int _{0}^{1}} \\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}dx[\/latex] must lie in the interval [latex][0.333, 0.349][\/latex]. If we choose a value from that interval for our approximation, what is the maximum possible error from the true value?<\/p>\n<p>Suppose we choose the midpoint of the interval [latex][0.333,0.349][\/latex], which is:<\/p>\n<p style=\"text-align: center;\">[latex]\\text{midpoint }=\\frac{0.333+0.349}{2}=0.341[\/latex].<\/p>\n<p>Since the true value lies within [latex][0.333,0.349][\/latex], the maximum distance our approximation could be from [latex]{\\displaystyle\\int _{0}^{1}} \\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}dx[\/latex] is the distance from the midpoint to the endpoints of the interval. Let [latex]\\varepsilon (x)[\/latex] be the maximum error that could be associated with the approximation [latex]x[\/latex]. Then,<\/p>\n<p style=\"text-align: center;\">[latex]\\varepsilon(0.341)=0.349-0.341=0.341-0.333=0.008[\/latex].<\/p>\n<p>In words, our approximation [latex]0.341[\/latex] could be at most [latex]0.008[\/latex] away from the true value of from the true value of [latex]{\\displaystyle\\int _{0}^{1}} \\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}dx[\/latex].<\/p>\n<p>There is no specific reason we chose [latex]n=10[\/latex] for the number of subintervals. As we choose larger and larger [latex]n[\/latex], the interval for our approximation would become smaller, as would the maximum error. Computers can perform these calculations efficiently for very large [latex]n[\/latex], often necessary when computing a definite integral for a function with no antiderivative in terms of elementary functions.<\/p>\n<section class=\"textbox example\">\n<p>Consider the function [latex]f(x)=\\sqrt{1-x^{4}}[\/latex]. Can you find [latex]\\displaystyle\\int _{-1}^{0} f(x)dx[\/latex] using the Fundamental Theorem of Calculus, Part 2? If not, provide an upper bound and a lower bound for the true value of the definite integral. If you were to choose a single value from that interval to use as an approximation, what is the maximum error that could be associated with that approximation?<\/p>\n<p><br>\n[reveal-answer q=\"883418\"]Show Answer[\/reveal-answer]<br>\n[hidden-answer a=\"883418\"]<\/p>\n<p>Finding an antiderivative for [latex] f(x) = \\sqrt{1 - x^4} [\/latex] in terms of elementary functions is not straightforward. Thus, we cannot directly apply the Fundamental Theorem of Calculus, Part 2.<\/p>\n<p>Since we cannot find an antiderivative, we will approximate the definite integral using Riemann sums and provide an upper and lower bound for the true value of the integral.<\/p>\n<p>We are approximating the integral over the interval [latex] [-1, 0] [\/latex]. Let's split this interval into [latex] n [\/latex] equal subintervals.<\/p>\n<p>For simplicity, let [latex] n = 10 [\/latex].<\/p>\n<p>For the left-endpoint sum:&nbsp;<\/p>\n<p style=\"text-align: center;\">[latex] L_{n} = \\sum_{i=1}^{n} f\\left(a + (i-1)\\Delta x\\right) \\Delta x [\/latex]<\/p>\n<p>For the right-endpoint sum:<\/p>\n<p style=\"text-align: center;\">[latex] R_{n} = \\sum_{i=1}^{n} f\\left(a + i\\Delta x\\right) \\Delta x [\/latex]<\/p>\n<p>Where [latex] \\Delta x = \\frac{b-a}{n} = \\frac{0 - (-1)}{10} = 0.1 [\/latex].<\/p>\n<p>So the left-endpoint Riemann sum is:<\/p>\n<p style=\"text-align: center;\">[latex] L_{10} = \\sum_{i=1}^{10} \\sqrt{1 - \\left(-1 + (i-1) \\cdot 0.1\\right)^4} \\cdot 0.1 [\/latex]<\/p>\n<p>And the right-endpoint Riemann sum is:<\/p>\n<p style=\"text-align: center;\">[latex] R_{10} = \\sum_{i=1}^{10} \\sqrt{1 - \\left(-1 + i \\cdot 0.1\\right)^4} \\cdot 0.1 [\/latex]<\/p>\n<p>Calculating these sums:<\/p>\n<p style=\"text-align: center;\">[latex] L_{10} \\approx 0.360 [\/latex] [latex] R_{10} \\approx 0.332 [\/latex]<\/p>\n<p>Establishing the bounds:<\/p>\n<p style=\"text-align: center;\">[latex] R_{10} \\leq \\int_{-1}^{0} \\sqrt{1 - x^4} , dx \\leq L_{10} [\/latex]<\/p>\n<p>So,<\/p>\n<p style=\"text-align: center;\">[latex] 0.332 \\leq \\int_{-1}^{0} \\sqrt{1 - x^4} , dx \\leq 0.360 [\/latex]<\/p>\n<p>Let's choose the midpoint of the interval [latex] [0.332, 0.360] [\/latex]:<\/p>\n<p style=\"text-align: center;\">[latex] \\text{midpoint} = \\frac{0.332 + 0.360}{2} = 0.346 [\/latex]<\/p>\n<p>The maximum possible error would be the distance from the midpoint to either endpoint:<\/p>\n<p style=\"text-align: center;\">[latex] \\varepsilon(0.346) = 0.360 - 0.346 = 0.346 - 0.332 = 0.014 [\/latex]<\/p>\n<p>Thus, the maximum error associated with the approximation [latex] 0.346 [\/latex] is [latex] 0.014 [\/latex].<\/p>\n<p>[\/hidden-answer]<\/p>\n<\/section>\n","rendered":"<section class=\"textbox learningGoals\">\n<ul>\n<li>Understand that while all differentiable functions can be derived in a straightforward formula, not all functions can be integrated into a simple antiderivative<\/li>\n<li>Calculate bounds for the area calculations under curves when direct integration methods aren\u2019t applicable<\/li>\n<li>Explain how estimating the bounds of an integral affects the accuracy of the approximation<\/li>\n<\/ul>\n<\/section>\n<h2>Approximating Integrals<\/h2>\n<p>At this point on our calculus journey, we have developed the tools to find the derivative function of <em>any&nbsp;<\/em>differentiable function. Take, for example, the following function.<\/p>\n<p style=\"text-align: center;\">[latex]f(x)=\\left[\\ln\\left(\\tan^2\\left(\\frac{1}{x^{2}+3\\sqrt{x}}\\right)\\right)\\cos^{-1}\\left(\\frac{3x^{2}+5x-1}{22x+1}\\right)+10x^{3^{x^{2}}}\\right]^{e^{\\sin(x^{3.2})}}[\/latex]<\/p>\n<p>Finding the derivative of this function would take multiple pages using the Chain Rule, Quotient Rule, Product Rule, Sum Rule, and derivative formulas. By cutting some corners and letting Wolfram|Alpha find the derivative function for us, we see that it is:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4561 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5584\/2021\/06\/22171700\/long-division.png\" alt=\"Solution for the derivation of the given function above. The details of the final equation are not important, just that it is very long and extremely complex.\" width=\"475\" height=\"512\" \/><\/p>\n<p>Don\u2019t worry\u2014we won\u2019t be asked to do anything quite that crazy by hand. But the point is that for any differentiable function we are given, we can apply the tools in our calculus toolbelt to find the closed-form expression of its derivative function.<\/p>\n<p>However, integration is not always straightforward. There are many functions which are integrable but have no antiderivative in terms of standard elementary functions we\u2019ve seen so far.<\/p>\n<section class=\"textbox example\">\n<p>Consider:<\/p>\n<p style=\"text-align: center;\">[latex]g(x)=\\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}[\/latex]<\/p>\n<p>If we were asked to compute the definite integral [latex]\\displaystyle\\int _{0}^{1} g(x)dx[\/latex], the graphical area of which is shown in the figure below, could we use the Fundamental Theorem of Calculus, Part 2?<\/p>\n<p>Try this on your own for a moment. Can you find an antiderivative of [latex]g(x)[\/latex] in terms of elementary functions?<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4563 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5584\/2021\/06\/22171803\/curve.png\" alt=\"Graph of a function that is a curve, peak at y-axis 0.4 and shaded under the curve from x=0 to x=1, to the x-axis.\" width=\"512\" height=\"245\" \/><\/p>\n<p>If your conclusion is \u201cno,\u201d then you are correct. While the function looks simple, it does not have an antiderivative in terms of elementary functions.<\/p>\n<\/section>\n<p>In Calculus II, we will learn additional techniques to find antiderivatives and indefinite integrals, such as integration by parts and partial fraction decomposition. However, even these methods cannot help us with the function [latex]g(x)[\/latex].<\/p>\n<p>Finding an antiderivative of [latex]g(x)[\/latex] requires introducing special functions that are themselves defined in terms of integrals. This makes the process too complicated to apply the Fundamental Theorem of Calculus, Part 2, directly. (If you&#8217;re curious, you can look up the error function [latex]\\text{erf}(x)[\/latex].<\/p>\n<p>So, what can we do to find [latex]\\displaystyle\\int _{0}^{1} g(x)dx[\/latex] if we cannot find an antiderivative of [latex]g(x)[\/latex] in terms of elementary functions? We approximate the definite integral!<\/p>\n<p>Remember, earlier in this module, we learned about using Riemann Sums to approximate the area under a curve. This method may not give us an exact answer but can get us very close when we&#8217;ve exhausted other tools. There are also tricks in mathematics that make approximations extremely useful.<\/p>\n<p>Let\u2019s use a left-endpoint Riemann Sum to approximate [latex]\\displaystyle\\int _{0}^{1} g(x)dx[\/latex] where [latex]g(x)[\/latex] is defined as above. If we split the interval [latex][0,1][\/latex] into [latex]n[\/latex] subintervals of length [latex]\\frac{1}{n}[\/latex], then the left-endpoint Riemann sum is:<\/p>\n<p style=\"text-align: center;\">[latex]L_{n}={\\displaystyle\\sum _{i=1}^{n}} g\\left(\\frac{i-1}{n}\\right)\\cdot\\frac{1}{n}[\/latex].<\/p>\n<p>If we choose [latex]n=10[\/latex], then our approximation would be:<\/p>\n<p style=\"text-align: center;\">[latex]{\\displaystyle\\int _{0}^{1}} \\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}dx\\approx L_{10}={\\displaystyle\\sum_{i=1}^{10}}\\left[\\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}(i-1\/10)^{2}}\\cdot\\frac{1}{10}\\right]\\approx0.349[\/latex].<\/p>\n<p>Graphically, this left-endpoint sum with [latex]10[\/latex] subintervals looks as follows.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4567 size-full\" src=\"https:\/\/s3-us-west-2.amazonaws.com\/courses-images\/wp-content\/uploads\/sites\/5584\/2021\/06\/22172010\/red-area-blocks.png\" alt=\"Curved function on graph, peak at y=0.4, rectangles are highlighted every increment of 0.1 along the x-axis using the left y-value to approximate the area under the curve. Bound from x=0 to x=1.\" width=\"512\" height=\"343\" \/><\/p>\n<p>If we tell someone, &#8220;We have an approximation for [latex]\\displaystyle\\int _{0}^{1} g(x)dx[\/latex], and it is [latex]0.349[\/latex]!\u201d they might ask, &#8220;That&#8217;s great, but how close is your approximation to the true value? How large could your error be?&#8221; This is where the concept of bounds comes in handy.<\/p>\n<p>Instead of just giving a single approximation, we can provide upper and lower bounds for the true value. This gives more information because it tells us an interval within which the true value lies. If we choose a value from this interval as our approximation, we can also determine the maximum possible error.<\/p>\n<p>To find these bounds, we use the concepts of upper sums and lower sums.<\/p>\n<section class=\"textbox recall\">\n<p>An upper sum uses the maximum function value on each subinterval, giving a weak over-approximation of the true area. A lower sum uses the minimum function value on each subinterval, giving a weak under-approximation of the true area.<\/p>\n<\/section>\n<p>Therefore, we can state:<\/p>\n<p style=\"text-align: center;\">[latex]\\text{Lower Sum}\\le\\text{True Value}\\le\\text{Upper Sum}[\/latex].<\/p>\n<p>In our example, [latex]g(x)=\\frac{1}{\\sqrt{2\\pi}} e^{-\\frac{1}{2}x^2}[\/latex] is decreasing over the interval [latex][0,1][\/latex]. Therefore, left endpoints of subintervals give maximum function values, making left-endpoint Riemann sums upper sums. Right endpoints give minimum function values, making right-endpoint Riemann sums lower sums.<\/p>\n<p>A right-endpoint Riemann Sum to approximate [latex]\\displaystyle\\int _{0}^{1} g(x)dx[\/latex] with [latex]n[\/latex] subintervals is:<\/p>\n<p style=\"text-align: center;\">[latex]R_{n}={\\displaystyle\\sum _{i=1}^{n}} g\\left(\\frac{i}{n}\\right)\\cdot\\frac{1}{n}[\/latex]<\/p>\n<p>With [latex]n=10[\/latex], our right-endpoint approximation is:<\/p>\n<p style=\"text-align: center;\">[latex]{\\displaystyle\\int _{0}^{1}} \\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}dx\\approx R_{10}={\\displaystyle\\sum_{i=1}^{10}}\\left[\\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}(i\/10)^{2}}\\cdot\\frac{1}{10}\\right]\\approx0.333[\/latex].<\/p>\n<p>Graphically, this right-endpoint sum with [latex]10[\/latex] subintervals looks as follows.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/lh3.googleusercontent.com\/qmHGxItvgSDG0feqpiUtvcMzB4e_vuRembwbVGR_94aOoPCfp1ZTnG7q0U5brA-bUeaxelY-uLFsdvBSWXfVNx-NjLIpXKKtrI5xk3q4-lpi27rNtzgx9MKB7GDm_zbHLNsxX2o6\" alt=\"Curved function on graph, peak at y=0.4, rectangles are highlighted every increment of 0.1 along the x-axis using the right y-value to approximate the area under the curve. Bound from x=0 to x=1.\" width=\"565\" height=\"383\" \/><\/p>\n<p>Now we have an upper sum [latex]L_{10}[\/latex] and a lower sum [latex]R_{10}[\/latex], meaning we can state:<\/p>\n<p style=\"text-align: center;\">[latex]R_{10}\\le\\displaystyle\\int _{0}^{1} g(x)dx\\le L_{10}[\/latex].<\/p>\n<p>Therefore,<\/p>\n<p style=\"text-align: center;\">[latex]0.333\\le{\\displaystyle\\int _{0}^{1}} \\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}dx\\le 0.349[\/latex].<\/p>\n<p>Another way to express this is that the true value of [latex]{\\displaystyle\\int _{0}^{1}} \\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}dx[\/latex] must lie in the interval [latex][0.333, 0.349][\/latex]. If we choose a value from that interval for our approximation, what is the maximum possible error from the true value?<\/p>\n<p>Suppose we choose the midpoint of the interval [latex][0.333,0.349][\/latex], which is:<\/p>\n<p style=\"text-align: center;\">[latex]\\text{midpoint }=\\frac{0.333+0.349}{2}=0.341[\/latex].<\/p>\n<p>Since the true value lies within [latex][0.333,0.349][\/latex], the maximum distance our approximation could be from [latex]{\\displaystyle\\int _{0}^{1}} \\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}dx[\/latex] is the distance from the midpoint to the endpoints of the interval. Let [latex]\\varepsilon (x)[\/latex] be the maximum error that could be associated with the approximation [latex]x[\/latex]. Then,<\/p>\n<p style=\"text-align: center;\">[latex]\\varepsilon(0.341)=0.349-0.341=0.341-0.333=0.008[\/latex].<\/p>\n<p>In words, our approximation [latex]0.341[\/latex] could be at most [latex]0.008[\/latex] away from the true value of from the true value of [latex]{\\displaystyle\\int _{0}^{1}} \\frac{1}{\\sqrt{2\\pi}}e^{-\\frac{1}{2}x^{2}}dx[\/latex].<\/p>\n<p>There is no specific reason we chose [latex]n=10[\/latex] for the number of subintervals. As we choose larger and larger [latex]n[\/latex], the interval for our approximation would become smaller, as would the maximum error. Computers can perform these calculations efficiently for very large [latex]n[\/latex], often necessary when computing a definite integral for a function with no antiderivative in terms of elementary functions.<\/p>\n<section class=\"textbox example\">\n<p>Consider the function [latex]f(x)=\\sqrt{1-x^{4}}[\/latex]. Can you find [latex]\\displaystyle\\int _{-1}^{0} f(x)dx[\/latex] using the Fundamental Theorem of Calculus, Part 2? If not, provide an upper bound and a lower bound for the true value of the definite integral. If you were to choose a single value from that interval to use as an approximation, what is the maximum error that could be associated with that approximation?<\/p>\n<div class=\"wp-nocaption \"><\/div>\n<div class=\"qa-wrapper\" style=\"display: block\"><button class=\"show-answer show-answer-button collapsed\" data-target=\"q883418\">Show Answer<\/button><\/p>\n<div id=\"q883418\" class=\"hidden-answer\" style=\"display: none\">\n<p>Finding an antiderivative for [latex]f(x) = \\sqrt{1 - x^4}[\/latex] in terms of elementary functions is not straightforward. Thus, we cannot directly apply the Fundamental Theorem of Calculus, Part 2.<\/p>\n<p>Since we cannot find an antiderivative, we will approximate the definite integral using Riemann sums and provide an upper and lower bound for the true value of the integral.<\/p>\n<p>We are approximating the integral over the interval [latex][-1, 0][\/latex]. Let&#8217;s split this interval into [latex]n[\/latex] equal subintervals.<\/p>\n<p>For simplicity, let [latex]n = 10[\/latex].<\/p>\n<p>For the left-endpoint sum:&nbsp;<\/p>\n<p style=\"text-align: center;\">[latex]L_{n} = \\sum_{i=1}^{n} f\\left(a + (i-1)\\Delta x\\right) \\Delta x[\/latex]<\/p>\n<p>For the right-endpoint sum:<\/p>\n<p style=\"text-align: center;\">[latex]R_{n} = \\sum_{i=1}^{n} f\\left(a + i\\Delta x\\right) \\Delta x[\/latex]<\/p>\n<p>Where [latex]\\Delta x = \\frac{b-a}{n} = \\frac{0 - (-1)}{10} = 0.1[\/latex].<\/p>\n<p>So the left-endpoint Riemann sum is:<\/p>\n<p style=\"text-align: center;\">[latex]L_{10} = \\sum_{i=1}^{10} \\sqrt{1 - \\left(-1 + (i-1) \\cdot 0.1\\right)^4} \\cdot 0.1[\/latex]<\/p>\n<p>And the right-endpoint Riemann sum is:<\/p>\n<p style=\"text-align: center;\">[latex]R_{10} = \\sum_{i=1}^{10} \\sqrt{1 - \\left(-1 + i \\cdot 0.1\\right)^4} \\cdot 0.1[\/latex]<\/p>\n<p>Calculating these sums:<\/p>\n<p style=\"text-align: center;\">[latex]L_{10} \\approx 0.360[\/latex] [latex]R_{10} \\approx 0.332[\/latex]<\/p>\n<p>Establishing the bounds:<\/p>\n<p style=\"text-align: center;\">[latex]R_{10} \\leq \\int_{-1}^{0} \\sqrt{1 - x^4} , dx \\leq L_{10}[\/latex]<\/p>\n<p>So,<\/p>\n<p style=\"text-align: center;\">[latex]0.332 \\leq \\int_{-1}^{0} \\sqrt{1 - x^4} , dx \\leq 0.360[\/latex]<\/p>\n<p>Let&#8217;s choose the midpoint of the interval [latex][0.332, 0.360][\/latex]:<\/p>\n<p style=\"text-align: center;\">[latex]\\text{midpoint} = \\frac{0.332 + 0.360}{2} = 0.346[\/latex]<\/p>\n<p>The maximum possible error would be the distance from the midpoint to either endpoint:<\/p>\n<p style=\"text-align: center;\">[latex]\\varepsilon(0.346) = 0.360 - 0.346 = 0.346 - 0.332 = 0.014[\/latex]<\/p>\n<p>Thus, the maximum error associated with the approximation [latex]0.346[\/latex] is [latex]0.014[\/latex].<\/p>\n<\/div>\n<\/div>\n<\/section>\n<div class=\"glossary\"><span class=\"screen-reader-text\" id=\"definition\">definition<\/span><template id=\"term_416_2976\"><div class=\"glossary__definition\" role=\"dialog\" data-id=\"term_416_2976\"><div tabindex=\"-1\"><\/div><button><span aria-hidden=\"true\">&times;<\/span><span class=\"screen-reader-text\">Close definition<\/span><\/button><\/div><\/template><\/div>","protected":false},"author":6,"menu_order":17,"template":"","meta":{"_candela_citation":"[{\"type\":\"original\",\"description\":\"Approximating Integrals\",\"author\":\"Sidney Tate\",\"organization\":\"Lumen Learning\",\"url\":\"\",\"project\":\"\",\"license\":\"cc-by\",\"license_terms\":\"\"}]","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"part":399,"module-header":"","content_attributions":[{"type":"original","description":"Approximating Integrals","author":"Sidney Tate","organization":"Lumen Learning","url":"","project":"","license":"cc-by","license_terms":""}],"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\/416"}],"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\/6"}],"version-history":[{"count":0,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapters\/416\/revisions"}],"part":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/parts\/399"}],"metadata":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapters\/416\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/media?parent=416"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/pressbooks\/v2\/chapter-type?post=416"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/contributor?post=416"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/content.one.lumenlearning.com\/calculus2\/wp-json\/wp\/v2\/license?post=416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}