For \( f(z) \) to be analytic, it must satisfy the Cauchy-Riemann equations:
\( \frac{\partial u}{\partial x} = \frac{\partial v}{\partial y}, \quad \frac{\partial u}{\partial y} = -\frac{\partial v}{\partial x} \)
Solving these equations for the given function, the values of \( a, b, c, \) and \( d \) are found as \( a = 2, b = -1, c = -1, \) and \( d = 2 \).