[Tex/LaTex] LaTex error : “Missing } inserted”

errors

I have written this :

\begin{multline}
\Delta T_s = \frac{T_s \times (\alpha \ln \frac{C}{C_0} + (\beta(\sqrt{M} - \sqrt{M_0})\\
- (f(M, N_0) - f(M_0, N_0))) + (\gamma (\sqrt{N} - \sqrt{N_0}) - (f(M_0, N) - f(M_0, N_0)))}{4F_{TOA}}
\end{multline}

but latex gives me the error "Missing } inserted", i tried some stuff but everytime latex gives me this.
Can you help me please ?

Best Answer

The immediate reason for the error is the fact that you've inserted \\ in the numerator term of the \frac directive. I have removed it and it is works correctly.

enter image description here

\documentclass[a4paper,12pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{multline}
\Delta T_s = \frac{T_s \times (\alpha \ln \frac{C}{C_0} + (\beta(\sqrt{M} - \sqrt{M_0})
- (f(M, N_0) - f(M_0, N_0))) + (\gamma (\sqrt{N} - \sqrt{N_0}) - (f(M_0, N) - f(M_0, N_0)))}{4F_{TOA}}
\end{multline}
\end{document}

To create a line break in the numerator, you can use \splitfrac, a macro provided by the mathtools package.

enter image description here

\documentclass{article}
\usepackage{mathtools}

\begin{document}
\begin{equation}
\Delta T_s =\frac{\splitfrac{T_s \times [\alpha \ln \frac{C}{C_0} + (\beta(\sqrt{M} - \sqrt{M_0}\,)
- (f(M, N_0) - f(M_0, N_0))] }{+\gamma (\sqrt{N} - \sqrt{N_0}\,) - (f(M_0, N) - f(M_0, N_0))}}{4F_{\mathit{TOA}}}
\end{equation}
\end{document}
Related Question