Problem on chain rule and change of coordinates

$\newcommand{\bfA}{\mathbf{A}}$ $\newcommand{\bfB}{\mathbf{B}}$ $\newcommand{\bfC}{\mathbf{C}}$ $\newcommand{\bfF}{\mathbf{F}}$ $\newcommand{\bfI}{\mathbf{I}}$ $\newcommand{\bfa}{\mathbf{a}}$ $\newcommand{\bfb}{\mathbf{b}}$ $\newcommand{\bfc}{\mathbf{c}}$ $\newcommand{\bfd}{\mathbf{d}}$ $\newcommand{\bfe}{\mathbf{e}}$ $\newcommand{\bfi}{\mathbf{i}}$ $\newcommand{\bfj}{\mathbf{j}}$ $\newcommand{\bfk}{\mathbf{k}}$ $\newcommand{\bfn}{\mathbf{n}}$ $\newcommand{\bfr}{\mathbf{r}}$ $\newcommand{\bfu}{\mathbf{u}}$ $\newcommand{\bfv}{\mathbf{v}}$ $\newcommand{\bfw}{\mathbf{w}}$ $\newcommand{\bfx}{\mathbf{x}}$ $\newcommand{\bfy}{\mathbf{y}}$ $\newcommand{\bfz}{\mathbf{z}}$
Let $f$ be a function of cartesian coordinates $x,y$. It is possible to express $f$ in terms of polar coordinates $r,\theta$ by $f(r,\theta) = f\bigl(x(r,\theta), y(r, \theta)\bigr)$.

(a) What are the expressions for $x(r, \theta)$ and $y(r, \theta)$? That is, write down the $x$ and $y$ coordinates of a point with polar coordinates $r, \theta$.

(b) Use the chain rule to express $\begin{pmatrix}\partial_r f \\ \partial_\theta f \end{pmatrix}$ as a matrix times $\begin{pmatrix}\partial_x f \\ \partial_y f \end{pmatrix}$.