Solution to Example 1.    y = f(x) = sin( 1/2 x) + 2