Riemann Sum and Definite Integral Approximation
2020-06-11 06:38
This interactive applet visually demonstrates the fundamental concept of Riemann Sums in calculus. By dynamically adjusting the number of subintervals n and the limits of integration a and b, users can observe how Left, Right, Upper, Lower, and Trapezoidal sums approximate the area under a curve. As the number of partitions n increases, these approximations converge to the exact value of the defin
Loading the GeoGebra board and drawing, please wait…
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.588.0" app="classic" platform="d" id="6be0d89b-d575-448c-b2e2-25313386e102" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/apps/xsd/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="1402" height="896" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.7339514978601998" orientation="1" />
</panes>
<views>
<view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 | 551 550 11 , 20 22 21 23 , 55 56 57 , 12 | 69 | 510 511 , 512 513 | 533 531 , 534 532 , 522 523 , 537 536 , 535 | 521 520 | 36 , 38 49 560 | 571 30 29 570 31 33 | 17 | 540 40 41 42 , 27 28 35 , 6 , 502" visible="false" inframe="false" stylebar="false" location="1,1,1" size="500" window="100,100,600,400" />
<view id="4" toolbar="0 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="false" location="1,1" size="300" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="false" location="3,3" size="219" window="100,100,600,400" />
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 || 1008 1009 || 66 68 || 6" visible="false" inframe="false" stylebar="false" location="1,3" size="300" window="100,100,600,400" />
<view id="4097" visible="false" inframe="true" stylebar="true" location="1,1" size="395" window="79,306,700,550" />
<view id="1" visible="true" inframe="false" stylebar="false" location="3" size="1029" window="100,100,600,400" />
<view id="16" visible="true" inframe="false" stylebar="false" location="1" size="339" window="50,50,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="64" toolbar="0" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
</views>
<toolbar show="true" items="0 39 73 62 | 1 501 67 , 5 19 , 72 75 76 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 14 68 | 30 29 54 32 31 33 | 25 17 26 60 52 61 | 40 41 42 , 27 28 35 , 6" position="1" help="false" />
<input show="true" cmd="true" top="algebra" />
<dockBar show="true" east="true" />
</perspective>
</perspectives>
<labelingStyle val="2"/>
<font size="24"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="1029" height="644"/>
<coordSystem xZero="110.50009106645138" yZero="579.5367779195324" scale="66.97813834193789" yscale="66.97813834193775"/>
<evSettings axes="true" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="3"/>
<bgColor r="0" g="0" b="0"/>
<axesColor r="255" g="255" b="255"/>
<gridColor r="160" g="160" b="160"/>
<lineStyle axes="1" grid="0"/>
<axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<euclidianView>
<viewNumber viewNo="2"/>
<size width="339" height="644"/>
<coordSystem xZero="357.0000000000001" yZero="319.0000000000001" scale="50.00000000000002" yscale="50.00000000000002"/>
<evSettings axes="false" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="3"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="1" grid="0"/>
<axis id="0" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="false" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<algebraView>
<mode val="1"/>
</algebraView>
<kernel>
<uses3D val="true"/>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="2"/>
<angleUnit val="degree"/>
<algebraStyle val="0" spreadsheet="0"/>
<coordStyle val="0"/>
</kernel>
<tableview min="-2.0" max="2.0" step="1.0"/>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<element type="boolean" label="D">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="14" y="512"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="中和"/>
</element>
<element type="numeric" label="n">
<value val="5.0"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="1" max="100" absoluteScreenLocation="true" width="240.0" x="17.0" y="325.0" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<element type="numeric" label="b">
<value val="5.0"/>
<show object="false" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="2"/>
<animation speed="1" type="0" playing="false"/>
</element>
<element type="numeric" label="a">
<value val="0.0"/>
<show object="false" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="2"/>
<animation speed="1" type="0" playing="false"/>
</element>
<command name="Sequence">
<input a0="a + (k * (b - a) / n)" a1="k" a2="0" a3="n"/>
<output a0="cutpoint"/>
</command>
<element type="list" label="cutpoint">
<objColor r="0" g="100" b="0" alpha="0.10000000149011612"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<expression label="f" exp="f(x) = ((-1 / 3 * (x + 2)) * (x - 19 / 3))" type="function"/>
<element type="function" label="f">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<lineStyle thickness="5" type="15" typeHidden="1" opacity="178"/>
</element>
<command name="Textfield">
<input a0="f"/>
<output a0="inputBox1"/>
</command>
<element type="textfield" label="inputBox1">
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="10" y="24"/>
<labelMode val="3"/>
<fixed val="true"/>
<auxiliary val="true"/>
<length val="14"/>
<caption val="f(x)="/>
</element>
<command name="Textfield">
<input a0="a"/>
<output a0="inputBox2"/>
</command>
<element type="textfield" label="inputBox2">
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="35" y="157"/>
<labelMode val="0"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript onUpdate="SetValue[A,(a,0)]"/>
<length val="3"/>
<caption val="a="/>
</element>
<command name="Textfield">
<input a0="b"/>
<output a0="inputBox3"/>
</command>
<element type="textfield" label="inputBox3">
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="33" y="94"/>
<labelMode val="0"/>
<fixed val="true"/>
<auxiliary val="true"/>
<ggbscript onUpdate="SetValue[B,(b,0)]"/>
<length val="3"/>
<caption val="b="/>
</element>
<element type="boolean" label="L">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="15" y="471"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="左和"/>
</element>
<element type="boolean" label="R">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="138" y="474"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="右和"/>
</element>
<element type="boolean" label="M">
<value val="true"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="76" y="382"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="上和"/>
</element>
<element type="boolean" label="m">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="74" y="422"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="下和"/>
</element>
<command name="LeftSum">
<input a0="f" a1="a" a2="b" a3="n"/>
<output a0="L1"/>
</command>
<element type="numeric" label="L1">
<value val="25.55555555555555"/>
<show object="true" label="false"/>
<condition showObject="L"/>
<objColor r="255" g="255" b="255" alpha="0.550000011920929"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="9" type="0" typeHidden="1"/>
</element>
<command name="RectangleSum">
<input a0="f" a1="a" a2="b" a3="n" a4="1"/>
<output a0="R1"/>
</command>
<element type="numeric" label="R1">
<value val="24.44444444444444"/>
<show object="true" label="false"/>
<condition showObject="R"/>
<objColor r="255" g="0" b="51" alpha="0.550000011920929"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="9" type="0" typeHidden="1"/>
</element>
<command name="UpperSum">
<input a0="f" a1="a" a2="b" a3="n"/>
<output a0="fmax"/>
</command>
<element type="numeric" label="fmax">
<value val="27.12037031144144"/>
<show object="true" label="false"/>
<condition showObject="M"/>
<objColor r="0" g="255" b="255" alpha="0.550000011920929"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="9" type="0" typeHidden="1"/>
</element>
<command name="LowerSum">
<input a0="f" a1="a" a2="b" a3="n"/>
<output a0="fmin"/>
</command>
<element type="numeric" label="fmin">
<value val="22.888889381038094"/>
<show object="true" label="false"/>
<condition showObject="m"/>
<objColor r="204" g="153" b="255" alpha="0.550000011920929"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="9" type="0" typeHidden="1"/>
</element>
<expression label="h" exp="h(x) = If[a ≤ x ≤ b, f]" />
<element type="function" label="h">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<lineStyle thickness="13" type="0" typeHidden="1"/>
</element>
<command name="RectangleSum">
<input a0="f" a1="a" a2="b" a3="n" a4="0.5"/>
<output a0="MD"/>
</command>
<element type="numeric" label="MD">
<value val="25.416666666666664"/>
<show object="true" label="false"/>
<condition showObject="D"/>
<objColor r="255" g="153" b="204" alpha="0.550000011920929"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="9" type="0" typeHidden="1"/>
</element>
<command name="Integral">
<input a0="f" a1="a" a2="b"/>
<output a0="i"/>
</command>
<element type="numeric" label="i">
<value val="25.27777777777778"/>
<show object="true" label="false"/>
<objColor r="255" g="215" b="0" alpha="0.25"/>
<layer val="0"/>
<labelMode val="2"/>
<lineStyle thickness="2" type="0" typeHidden="1"/>
</element>
<element type="boolean" label="c">
<value val="true"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="64" y="238"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
<caption val="分割"/>
</element>
<expression label="text1" exp=""函數:f(x)=" + (LaTeX[f]) + "\\
積分(面積):" + (LaTeX[i]) + "
\\" + (LaTeX[If[c, "分割成:" + n + "塊", ""]]) + """ />
<element type="text" label="text1">
<show object="true" label="false" ev="8"/>
<objColor r="255" g="255" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.2" size="5" style="1"/>
<absoluteScreenLocation x="464" y="13"/>
</element>
<element type="boolean" label="d">
<value val="true"/>
<show object="true" label="true" ev="3"/>
<condition showObject="M ∨ m ∨ L ∨ R ∨ D ∨ T"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="53" y="577"/>
<labelMode val="3"/>
<checkbox fixed="true"/>
<caption val="黎曼和面積"/>
</element>
<command name="Sequence">
<input a0="x = cutpoint(k)" a1="k" a2="1" a3="If[n ≤ 40, n + 1, 0]"/>
<output a0="cutline"/>
</command>
<element type="list" label="cutline">
<show object="true" label="true" ev="4"/>
<condition showObject="c"/>
<objColor r="224" g="224" b="224" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="15" typeHidden="1" opacity="153"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<command name="TrapezoidalSum">
<input a0="f" a1="a" a2="b" a3="n"/>
<output a0="Tra"/>
</command>
<element type="numeric" label="Tra">
<value val="24.999999999999996"/>
<show object="true" label="false"/>
<condition showObject="T"/>
<objColor r="0" g="204" b="0" alpha="0.5"/>
<layer val="0"/>
<labelMode val="2"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
</element>
<element type="boolean" label="T">
<value val="false"/>
<show object="true" label="true" ev="3"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="141" y="516"/>
<labelMode val="0"/>
<checkbox fixed="true"/>
<caption val="梯形和"/>
</element>
<command name="Point">
<input a0="xAxis"/>
<output a0="A"/>
</command>
<element type="point" label="A">
<show object="true" label="true" ev="4"/>
<objColor r="125" g="125" b="255" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="-31" y="-7"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="1" playing="false"/>
<ggbscript onUpdate="SetValue[a,x(A)]"/>
<coords x="0.0" y="0.0" z="1.0"/>
<pointSize val="7"/>
<pointStyle val="0"/>
</element>
<command name="Point">
<input a0="xAxis"/>
<output a0="B"/>
</command>
<element type="point" label="B">
<show object="true" label="true" ev="4"/>
<objColor r="125" g="125" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="1" speed="1" type="1" playing="false"/>
<ggbscript onUpdate="SetValue[b,x(B)]"/>
<coords x="5.0" y="0.0" z="1.0"/>
<pointSize val="7"/>
<pointStyle val="0"/>
</element>
<expression label="text0" exp=""" + (LaTeX[If[M, "上\,\,\,\,\,\,\,和:" + fmax + "\\", ""]]) + "" + (LaTeX[If[m, "下\,\,\,\,\,\,\,和:" + fmin + "\\", ""]]) + "" + (LaTeX[If[L, "左\,\,\,\,\,\,\,和:" + L1 + "\\", ""]]) + "" + (LaTeX[If[R, "右\,\,\,\,\,\,\,和:" + R1 + "\\", ""]]) + "" + (LaTeX[If[D, "中\,\,\,\,\,\,\,和:" + MD + "\\", ""]]) + "" + (LaTeX[If[T, "梯形和:" + Tra, ""]]) + """ />
<element type="text" label="text0">
<show object="true" label="true" ev="8"/>
<condition showObject="d"/>
<objColor r="255" g="255" b="255" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.0" size="0" style="1"/>
<absoluteScreenLocation x="751" y="199"/>
</element>
</construction>
</geogebra>