a

d

c

b

k_h = 2 (slider from 0 to 8, step 1)
k_g = 8 (slider from 0 to 8, step 1)
A = Point(xAxis)
a: x(A)
D = Point(xAxis)
d: x(D)
k = 3 (slider from 0 to 8, step 1)
C = Point(xAxis)
c: x(C)
B = Point(xAxis)
b: x(B)
f(x) = ((k / 8 * (x - a)) * (x - b))
I1 = Integral(f, 0, a)
I2 = Integral(f, a, b)
h(x) = (((-(k_h / 8)) * (x - a)) * (x - d))
Ida = Integral(h, d, a)
g(x) = (((-(k_g / 8)) * (x - b)) * (x - c))
Ibc = Integral(g, b, c)
gL: -5
gU: -4
Text1: "f(x) =\frac{" + (LaTeX[k]) + "}{8}x(x-4)"
Igh: Ibc + Ida
Text2: "g(x) = -\frac{" + (LaTeX[k_g]) + "}{8}(x-4)(x-6)"
Text3: "h(x) = -\frac{" + (LaTeX[k_h]) + "}{8}x(x+3)"