f(x) = cos(x)
g(x) = (-x^(2) + 2) / 2
a: -π ≤ x ≤ π
maksErotus = 2.934802200544679
ala = 4.0522402529203525