This homework problem is giving me some trouble. My current thought process is this:
In order for $ f = u + iv $ to be analytic, it must differentiable. Therefore, it must satisfy the Cauchy-Riemann equation, $ f_{y} = if_{x} $ , and $ f_{x} \text{ and } f_{y} $ must be continuous. The Cauchy-Riemann equation is equivalent to:
$$ u_{x} = v_{y},\\ u_{y} = -v_{x} $$
Because the function must be analytic, they must be differentiable on open neighborhoods of $ z = x + iy $ as well as at z. Because of this fact, I tried doing this:
$$ u_{x} = v_{y} \implies v_{y} = 2x \implies v = 2xy + h(x)\\ u_{y} = -v_{x} \implies v_{x} = 2y \implies v = 2xy + g(y) $$
These two lines imply that $ h(x) = g(y) = constant $, so $ v = 2xy + c $. Thus, functions of the form $ f = x^{2} - y^{2} + i(2xy + c) $ should be analytic. I have two problems. The first problem is that I'm not confident my derivation of v is sound mathematics. Secondly, even if the equation I derived is analytic, how can be certain only equations of this form are analytic? Thanks for the help. I appreciate it.