I'm using Exam class to create solutions, but the flaign* environment does not align my equation with the \part. How do I make them align?
\documentclass[a4paper, twoside, 12pt]{exam}
\usepackage{amssymb,amsmath}
\usepackage{graphicx}
\marksnotpoints
\pointsinrightmargin
\bracketedpoints
\printanswers
\begin{document}
\begin{questions}
\question The functions $f$ and $g$ are defined by
\begin{align*}
f : x &\mapsto 4-x^2, \ \ x \in \mathbb{R} \\
g : x &\mapsto \frac{1}{x-4}, \ \ x\in \mathbb{R}, \ x \not= 4.
\end{align*}
\begin{parts}
\part[3] Define $f\circ g$ in a similar form.
\end{parts}
\begin{solution}
\begin{parts}
\part
\begin{flalign*}
fg(x) &= f(g(x)) &\\
&=f(\frac{1}{x-4}) \\
&= 4 - \frac{1}{(x-4)^2}
\end{flalign*}
\end{parts}
\end{solution}
Specifically, my problem is here in this image: