我不明白为什么我的代码不起作用。我需要尽快得到答案。
\[
\begin{split}
\therefore \delta F \left(E_{x} \right )&=\int \left [ \frac{\partial F}{\partial E }\delta E+\frac{\partial F}{\partial\dot{E}}\delta \dot{E}\right ]dx=0\\
&=\int\left {\left[\frac{\partial H_{z}}{\partial y}-\frac{\partial H_{y}}{\partial x}-2i\omega\varepsilon_{0}\varepsilon \\E_{x} \right ]\delta E_{x}-\left[ \frac{\partial}{\partial x}\left ( \frac{\partial F}{\partial E/\partial x}\right )+\frac{\partial}{\partial y}\left ( \frac{\partial F}{\partial E/\partial y}\right )+\frac{\partial}{\partial z}\left ( \frac{\partial F}{\partial E/\partial z}\right )\right ]\delta E_{x}\right } \ dx\\
&=\int\left[\left(\frac{\partial H_{z}}{\partial y}-\frac{\partial H_{y}}{\partial x}-2i\omega\varepsilon_{0}\varepsilon \\E_{x} \right ) - \left(-\frac{\partial H_{z}}{\partial y}+\frac{\partial H_{y}}{\partial x} \right )\right ]\delta E_{x} \ dx\\
&=\int 2 \(\frac{\partial H_{z}}{\partial y}-\frac{\partial H_{y}}{\partial x}-i\omega\varepsilon_{0}\varepsilon \\E_{x}\)\delta E_{x} \ dx &=0.
\end{split}
\]
我收到的错误是:
! 缺少分隔符(插入 .)。{ l.50 \end{split}
请帮忙!
答案1
你\\
之前有些放错了E_x
对于此显示,我会避免使用\left
和,而更喜欢大小。无论如何,和不能跨越对齐的不同部分。\right
\bigg
\left
\right
\documentclass{article}
\usepackage{amsmath,amssymb}
\newcommand{\pder}[2]{\frac{\partial #1}{\partial #2}}
\begin{document}
\[
\begin{split}
\therefore \delta F(E_{x})
&=\int \biggl[ \pder{F}{E}\delta E+\pder{F}{\dot{E}}\delta \dot{E} \biggr]\,dx=0 \\[2ex]
&=\int
\biggl\{
\biggl[
\pder{H_{z}}{y}-\pder{H_{y}}{x}-2i\omega\varepsilon_{0}\varepsilon E_{x}
\biggr]\delta E_{x} \\
&\qquad\quad
-\biggl[
\pder{}{x}
\biggl( \pder{F}{E/\partial x} \biggr)+\pder{}{y} \biggl( \pder{F}{E/\partial y} \biggr)
+\pder{}{z} \biggl( \pder{F}{E/\partial z} \biggr)
\biggr]\delta E_{x}
\biggr\}\,dx \\[2ex]
&=\int
\biggl[
\biggl(\pder{H_{z}}{y}-\pder{H_{y}}{x}-2i\omega\varepsilon_{0}\varepsilon E_{x} \biggr)
-
\biggl(-\pder{H_{z}}{y}+\pder{H_{y}}{x} \biggr)
\biggr]\delta E_{x} \, dx\\[2ex]
&=\int 2
\biggl(
\pder{H_{z}}{y}-\pder{H_{y}}{x}-i\omega\varepsilon_{0}\varepsilon E_{x}
\biggr)\delta E_{x} \, dx\\[2ex]
& =0.
\end{split}
\]
\end{document}
第二个积分需要分成多行,我添加了一些间距以清楚地表明第三行是第二行的延续,并且在主线之间添加了垂直间距。
已经定义了偏导数的缩写,以方便输入。
我还会省略\therefore
符号:只需在显示之前拼出“因此”。