Solution (source code)

= Solution

By part (a), the <vector field> is <irrotational> exactly when $2a=0$. Thus
$$
\boxed{a=0.}
$$