As Barbara Beeton has commented, forcing the first paragraph after an equation environment to indent can be achieved with \aftergroup -- use this command to add a \par after the group established by the environment.
Forcing the first paragraph after an environment not to indent isn't that straightforward. I came up with the following:
I defined a new macro \@doendeq that will redefine \everypar so that it a) removes the indentation from the first paragraph following it b) reverts to its original (empty) definition. (\@doendeq is an abridged version of LaTeX's \@doendpe which is used after paragraph-making environments.)
To change every instance of the equation environment to remove indents after it, one could simply add \aftergroup\@doendeq to the definition of \endequation. As you are looking for a command to modify only some instances of equation, I used \csappto from the etoolbox package to locally add\aftergroup\@doendeq to \end<\@currenvir> (\@currenvir being the name of the current environment).
I suspect that there are more elegant ways to do this.
\documentclass{article}
\usepackage{etoolbox}
\makeatletter
\newcommand*{\@doendeq}{%
\everypar{{\setbox\z@\lastbox}\everypar{}}%
}
\newcommand*{\eqend}{\,.\aftergroup\par}
\newcommand*{\eqcntd}{%
\,,%
\csappto{end\@currenvir}{%
\aftergroup\@doendeq
}%
}
\makeatother
\begin{document}
\begin{equation}
f(x) = x^2 + 1 \eqend
\end{equation}
Some text here, but it's gonna get indented.
\begin{equation}
f(x) = x^2 + 1 \eqcntd
\end{equation}
Some text here, but it's not gonna get indented.
\end{document}
\mboxnever gets out of the box, so\parcertainly won't indent the next text line. perhaps something with\aftergroupwould have a better chance, but i'm not in a position to experiment now. – barbara beeton Jul 21 '11 at 12:44