Paper 4, Section I, 4F

Complex Analysis
Part IB, 2017

Let DD be a star-domain, and let ff be a continuous complex-valued function on DD. Suppose that for every triangle TT contained in DD we have

Tf(z)dz=0\int_{\partial T} f(z) d z=0

Show that ff has an antiderivative on DD.

If we assume instead that DD is a domain (not necessarily a star-domain), does this conclusion still hold? Briefly justify your answer.