Notes
1.  z = 2 lie outside C.
2.  The cut lies outside C.
3.  Substitute the arc coordinates and evaluate.
4.  Since f is analytic inside C.