f(x) = If[-1 ≤ x ≤ 3.5, (6 * sin((π * x) + π / 2))]
g(x) = If[-1 ≤ x ≤ 3.5, (8 * sin((π * x) - π / 4))]
h(x) = f(x) + g(x)