Visual Comparison of Simpson's Rule and Trapezium Rule
Loading the math board and drawing, please wait…
This example visually demonstrates the approximation differences between Simpson's Rule and the Trapezium Rule in numerical integration. Key math concepts include numerical integration, error analysis, and function approximation. GeoGebra commands/objects used in construction include Sequence, Element, FitPoly, Integral, Sum, LaTeX, TrapezoidalSum, TableText, and Textfield. Suitable for high school and above mathematics learners to understand the accuracy and applicability of different integration approximation methods.
GeoGebra Commands & Parameters
Sequence(p, p, a, b, (b - a) / ((2 * n))) → L_1Sequence((Element[L_1, i], f(Element[L_1, i])), i, 1, (2 * n) + 1) → L_2Sequence(FitPoly[Take[L_2, i, i + 2], 2], i, 1, (2 * n), 2) → L_3Element(L_1, A1) → B1Element(L_1, A2) → B2Element(L_1, A3) → B3Element(L_1, A4) → B4Element(L_1, A5) → B5Element(L_1, A6) → B6Element(L_1, A7) → B7Element(L_1, A8) → B8Element(L_1, A9) → B9Element(L_1, A10) → B10Element(L_1, A11) → B11Element(L_1, A12) → B12Element(L_1, A13) → B13Element(L_1, A14) → B14Element(L_1, A15) → B15Element(L_1, A16) → B16Element(L_1, A17) → B17Element(L_1, A18) → B18Element(L_1, A19) → B19Element(L_1, A20) → B20Element(L_1, A21) → B21Element(L_1, A22) → B22Element(L_1, A23) → B23Element(L_2, A1) → C1Element(L_2, A2) → C2Element(L_2, A3) → C3Element(L_2, A4) → C4Element(L_2, A5) → C5Element(L_2, A6) → C6Element(L_2, A7) → C7Element(L_2, A8) → C8Element(L_2, A9) → C9Element(L_2, A10) → C10Element(L_2, A11) → C11Element(L_2, A12) → C12Element(L_2, A13) → C13Element(L_2, A14) → C14Element(L_2, A15) → C15Element(L_2, A16) → C16Element(L_2, A17) → C17Element(L_2, A18) → C18Element(L_2, A19) → C19Element(L_2, A20) → C20Element(L_2, A21) → C21Element(L_2, A22) → C22Element(L_2, A23) → C23FitPoly({C1, C2, C3}, 2) → D1FitPoly({C3, C4, C5}, 2) → D3FitPoly({C5, C6, C7}, 2) → D5FitPoly({C7, C8, C9}, 2) → D7FitPoly({C9, C10, C11}, 2) → D9FitPoly({C11, C12, C13}, 2) → D11FitPoly({C13, C14, C15}, 2) → D13FitPoly({C15, C16, C17}, 2) → D15FitPoly({C17, C18, C19}, 2) → D17FitPoly({C19, C20, C21}, 2) → D19FitPoly({C21, C22, C23}, 2) → D21Integral(D1, x(C1), x(C3)) → F1Integral(D3, x(C3), x(C5)) → F3Integral(D5, x(C5), x(C7)) → F5Integral(D7, x(C7), x(C9)) → F7Integral(D9, x(C9), x(C11)) → F9Integral(D11, x(C11), x(C13)) → F11Integral(D13, x(C13), x(C15)) → F13Integral(D15, x(C15), x(C17)) → F15Integral(D17, x(C17), x(C19)) → F17Integral(D19, x(C19), x(C21)) → F19Integral(D21, x(C21), x(C23)) → F21Element(L_1, A24) → B24Element(L_2, A24) → C24Element(L_1, A25) → B25Element(L_2, A25) → C25Element(L_1, A26) → B26Element(L_2, A26) → C26Element(L_1, A27) → B27Element(L_2, A27) → C27Element(L_1, A28) → B28Element(L_2, A28) → C28Element(L_1, A29) → B29Element(L_2, A29) → C29Element(L_1, A30) → B30Element(L_2, A30) → C30Element(L_1, A31) → B31Element(L_2, A31) → C31Element(L_1, A32) → B32Element(L_2, A32) → C32Element(L_1, A33) → B33Element(L_2, A33) → C33Element(L_1, A34) → B34Element(L_2, A34) → C34Element(L_1, A35) → B35Element(L_2, A35) → C35Element(L_1, A36) → B36Element(L_2, A36) → C36Element(L_1, A37) → B37Element(L_2, A37) → C37Element(L_1, A38) → B38Element(L_2, A38) → C38Element(L_1, A39) → B39Element(L_2, A39) → C39Element(L_1, A40) → B40Element(L_2, A40) → C40Element(L_1, A41) → B41Element(L_2, A41) → C41FitPoly({C23, C24, C25}, 2) → D23FitPoly({C25, C26, C27}, 2) → D25FitPoly({C27, C28, C29}, 2) → D27FitPoly({C29, C30, C31}, 2) → D29FitPoly({C31, C32, C33}, 2) → D31FitPoly({C33, C34, C35}, 2) → D33FitPoly({C35, C36, C37}, 2) → D35FitPoly({C37, C38, C39}, 2) → D37FitPoly({C39, C40, C41}, 2) → D39Integral(D23, x(C23), x(C25)) → F23Integral(D25, x(C25), x(C27)) → F25Integral(D27, x(C27), x(C29)) → F27Integral(D29, x(C29), x(C31)) → F29Integral(D31, x(C31), x(C33)) → F31Integral(D33, x(C33), x(C35)) → F33Integral(D35, x(C35), x(C37)) → F35Integral(D37, x(C37), x(C39)) → F37Integral(D39, x(C39), x(C41)) → F39Sum(Sequence[Element[L_4, (2 * i) - 1], i, 1, n]) → simpsonLaTeX($1) → exactLaTeX($2) → approxLaTeX("\text{Exact value = }" + exact + " ≈ " + approx) → text2LaTeX("\text{GeoGebra's approximation} = " + (LaTeX[$3])) → text4TrapezoidalSum(f, a, b, n) → trapeziumLaTeX("\text{Calculation from Trapezium Rule} = " + trapezium) → text5Sequence(p, p, a, b, (b - a) / n) → L_6Sequence(f(Element[L_6, i]), i, 1, n + 1) → L_7TableText({L_6, L_7}, "c_|h") → text6TableText({L_1, Append["", First[L_4, (2 * n)]]}, "c_|h") → text3Textfield(a) → InputBox1Textfield(b) → InputBox2Textfield(f) → InputBox3