! 未定义的控制序列

! 未定义的控制序列

我正在不断地接收! Undefined control sequence

3. $f(x) = -3x^{2} -5x +7$\\
$-3x^{2} - 5x +7$\\
$-3x^{2} - 5x = -7$\\
$x^{2} - 5/3x = -7/3$\\
$x^{2} - 5/3x +25/36 = -7/3 + 25/3$\\
$(x+ -5/6)^{2}=\fraq{\pm\sqrt{109}}{36}$\\

一切都很好,直到

\fraq{\pm\sqrt{109}}{36}$\\

我已将此精确代码放在文档的单独部分,并且它运行良好,我不确定出了什么问题。

答案1

我强烈建议您 (a) 使用内联分数代替\frac(b) 使用align*环境来组织材料。

那么类似于以下内容(请注意,我修改了你的一些代数):

enter image description here

\documentclass{article}
\usepackage{amsmath} % for 'align*' environment
\begin{document}

\begin{enumerate}
\setcounter{enumi}{2} % just for this example
\item Find the roots (``zeros'') of $f(x) = -3x^{2} -5x +7$.
\begin{align*}
-3x^{2} - 5x +7 &= 0\\
-3x^{2} - 5x &= -7\\
x^{2} + 5/3x &= 7/3\\
x^{2} + 5/3x +25/36 &= 7/3 + 25/36\\
(x+5/6)^{2}&=(7\cdot12+25)/36=109/36\\
x_{1,2}+5/6 &= \pm\sqrt{109}/6\\
x_{1,2} &= (-5\pm\sqrt{109}\,)/6
\end{align*}
\end{enumerate}
\end{document}

相关内容