Teht. 456

a = -0.3 (slider from -5 to 5)
f(x) = If[0 < x < 2, (a * x) + 1]
g(x) = If[x < 0, 0, If[0 ≤ x ≤ 2, (-1 / 2 * x) + 1, 0]]
b = Integral(g, 0, 2)
F(x) = If[x < 0, 0, If[0 ≤ x ≤ 2, ((-x^(2)) + (4 * x)) / 4, 1]]