f(x) =

Limit a =

Limit b =

Upper sum

Lower sum

Show shaded area

True area

Show integral

a

b

f(x) = (0.5 * x^(2)) + 1
inputBox1 = Textfield(f)
a = -2 (slider from -5 to 5, step 0.1)
b = 3 (slider from -5 to 5, step 0.1)
inputBox2 = Textfield(a)
inputBox3 = Textfield(b)
n = 9 (slider from 1 to 100, step 1)
c = LowerSum(f, a, b, n)
d = UpperSum(f, a, b, n)
e = true
g = true
A = Integral(f, a, b)
text2: "\textrm{Upper sum} = " + (LaTeX[d]) + " \textrm{ units}^2"
text3: "\textrm{Lower sum} = " + (LaTeX[c]) + " \textrm{ units}^2"
text1_1: "\textrm{True area} = " + (LaTeX[A]) + " \textrm{ units}^2"
"\textrm{Exact area} = " + (FormulaText[A]) + " \textrm{ units}^2": "\textrm{True area} = " + (LaTeX[A]) + " \textrm{ units}^2"
j = true
l = true
text4: "\textrm{Area} =\int^{" + (LaTeX[b]) + "}_{" + (LaTeX[a]) + "}(" + (LaTeX[f]) + ")\:\textrm{d}x=" + (LaTeX[A]) + ""
m = true
P: (a, 0)
Q: (b, 0)