a

b

f(b)-f(a)

c = 1 (slider from -5 to 5, step 0.1)
f(x) = sin(x) + c
Df = Derivative(f)
A = Point(xAxis)
B = Point(xAxis)
a: x(A)
b: x(B)
P: (a, f(a))
Q: (b, f(b))
d = Segment(A, P)
e = Segment(B, Q)
C: (b, f(a))
g = Segment(P, C)
u = Vector(C, Q)
Integrale = Integral(Df, a, b)
testo1: "f(b) - f(a) = " + (f(b) - f(a))