I need to color a portion of a displayed equation, but when I do that the equation gets turned into \textstyle instead of \displaystyle. Here is a minimal working example:
\documentclass{amsart}
\usepackage{amssymb, xcolor}
\begin{document}
\[
\prod_{a\in A} a
\]
\[
\textcolor{red}{\prod_{a\in A} a}
\]
\[
\textcolor{red}{\prod}_{a\in A} a
\]
\end{document}
In the third example (where the error appears) I tried to insert \displaystyle at the beginning, to no avail. I am confused; your help is most appreciated. Thanks!