what is wrong with this
\documentclass{article}
\begin{document}
$$\phi\rightarrow\phi^'=\phi+\delta\phi=\phi+\Phi_\nu\omega^\nu$$
\end{document}
what is wrong with this
\documentclass{article}
\begin{document}
$$\phi\rightarrow\phi^'=\phi+\delta\phi=\phi+\Phi_\nu\omega^\nu$$
\end{document}
Your questions is not very clear about what you need and there is no minimal working example. However, I assume you are asking why the latex line doesn't compile inside a document? I must admit I don't exactly know why the syntax $x^'$ doesn't work, but I do know that the following does work:
$$\phi\rightarrow\phi^{'}=\phi+\delta\phi=\phi+\Phi_\nu\omega^\nu$$
giving
or
$$\phi\rightarrow\phi'=\phi+\delta\phi=\phi+\Phi_\nu\omega^\nu$$
giving
The second option is the standard way to denote a modified variable (i.e. no need for the dash being a superscript).
I hope this solves your problem!
^{'} which removes the error message but makes the wrong output as it is ^{^{\prime}} so a scriptscript style prime.
– David Carlisle
Dec 07 '16 at 19:40
$$...$$ in a LaTeX document: see Dai Bowen’s comment to the question.
– GuM
Dec 08 '16 at 00:11
'.
@GustavoMezzetti: again, that's not what the questions was about so I did not address that. In fact, I would recommend using \begin{equation}, \end{equation} instead of \[ and \], unless you know you will not need any equation numbering anywhere in the doc.
– Wolfgang
Dec 09 '16 at 14:22
x^{'} would give a superscript prime not what it does give which is x^{^{\prime}}
– David Carlisle
Dec 09 '16 at 14:25
^'by just a prime'(after phi). As a side note, replace$$...$$by\[...\]. – gernot Dec 07 '16 at 17:05^'should just be'and if it is latex$$should be\[\]– David Carlisle Dec 07 '16 at 17:06\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}to form a minimal working example (MWE) that illustrates your problem. You may wish to see Why is [ … ] preferable to $$ … $$? which recommends\[and\]as the preferred start/end display math. – Dai Bowen Dec 07 '16 at 17:06