左对齐方程式

左对齐方程式

我试图将方程式左对齐,如下所示: 在此处输入图片描述

我从其他帖子中获得了以下代码,但我不太明白到底该做什么。

\begin{flalign}
&& g_{1}(x^{*}_{1}(t + \Delta t), x^{*}_{2}(t + \Delta t), x^{*}_{3}(t + \Delta t)) \notag \\
&& = g_{1}(x^{*}_{1}(t) + \frac{\partial x^{*}_{1}}{\partial t} \Delta t, x^{*}_{2}(t) + \frac{\partial x^{*}_{2}}{\partial t} \Delta t, x^{*}_{3}(t) + \frac{\partial x^{*}_{3}}{\partial t} \Delta t) \notag\\
&& = g_{1}(x^{*}_{1}(t), x^{*}_{2}(t), x^{*}_{3}(t)) + \frac{\partial g_{1}}{\partial x^{*}_{1}} \frac{\partial x^{*}_{1}}{\partial t} \Delta t + \frac{\partial g_{1}}{\partial x^{*}_{2}} \frac{\partial x^{*}_{2}}{\partial t} \Delta t + \frac{\partial g_{1}}{\partial x^{*}_{3}} \frac{\partial x^{*}_{3}}{\partial t} \Delta t
\end{flalign}

答案1

您把附加内容放在&了错误的位置。

我提出了两种替代方法,但flalign似乎不太正确。

\documentclass{article}
\usepackage{amsmath}

\usepackage{showframe} % to show the margins

\begin{document}

\begin{flalign}
&g_{1}(x^{*}_{1}(t + \Delta t), x^{*}_{2}(t + \Delta t), x^{*}_{3}(t + \Delta t)) & \notag \\
& = g_{1}(x^{*}_{1}(t) + \frac{\partial x^{*}_{1}}{\partial t} \Delta t, x^{*}_{2}(t) 
    + \frac{\partial x^{*}_{2}}{\partial t} \Delta t, x^{*}_{3}(t)
    + \frac{\partial x^{*}_{3}}{\partial t} \Delta t) & \notag\\
& = g_{1}(x^{*}_{1}(t), x^{*}_{2}(t), x^{*}_{3}(t))
  + \frac{\partial g_{1}}{\partial x^{*}_{1}} \frac{\partial x^{*}_{1}}{\partial t} \Delta t
  + \frac{\partial g_{1}}{\partial x^{*}_{2}} \frac{\partial x^{*}_{2}}{\partial t} \Delta t
  + \frac{\partial g_{1}}{\partial x^{*}_{3}} \frac{\partial x^{*}_{3}}{\partial t} \Delta t &
\end{flalign}

\begin{align}
&g_{1}(x^{*}_{1}(t + \Delta t), x^{*}_{2}(t + \Delta t), x^{*}_{3}(t + \Delta t)) \notag \\
& = g_{1}(x^{*}_{1}(t) + \frac{\partial x^{*}_{1}}{\partial t} \Delta t, x^{*}_{2}(t) 
    + \frac{\partial x^{*}_{2}}{\partial t} \Delta t, x^{*}_{3}(t)
    + \frac{\partial x^{*}_{3}}{\partial t} \Delta t) \notag\\
& = g_{1}(x^{*}_{1}(t), x^{*}_{2}(t), x^{*}_{3}(t))
  + \frac{\partial g_{1}}{\partial x^{*}_{1}} \frac{\partial x^{*}_{1}}{\partial t} \Delta t
  + \frac{\partial g_{1}}{\partial x^{*}_{2}} \frac{\partial x^{*}_{2}}{\partial t} \Delta t
  + \frac{\partial g_{1}}{\partial x^{*}_{3}} \frac{\partial x^{*}_{3}}{\partial t} \Delta t
\end{align}

\begin{equation}
\begin{aligned}[b]
&g_{1}(x^{*}_{1}(t + \Delta t), x^{*}_{2}(t + \Delta t), x^{*}_{3}(t + \Delta t)) \\
& = g_{1}(x^{*}_{1}(t) + \frac{\partial x^{*}_{1}}{\partial t} \Delta t, x^{*}_{2}(t) 
    + \frac{\partial x^{*}_{2}}{\partial t} \Delta t, x^{*}_{3}(t)
    + \frac{\partial x^{*}_{3}}{\partial t} \Delta t) \\
& = g_{1}(x^{*}_{1}(t), x^{*}_{2}(t), x^{*}_{3}(t))
  + \frac{\partial g_{1}}{\partial x^{*}_{1}} \frac{\partial x^{*}_{1}}{\partial t} \Delta t
  + \frac{\partial g_{1}}{\partial x^{*}_{2}} \frac{\partial x^{*}_{2}}{\partial t} \Delta t
  + \frac{\partial g_{1}}{\partial x^{*}_{3}} \frac{\partial x^{*}_{3}}{\partial t} \Delta t
\end{aligned}
\end{equation}

\end{document}

在此处输入图片描述

最后两个实现是相同的,但最后一个更容易输入。

答案2

我建议你在环境aligned内使用环境equation。这样,你就不需要所有这些\notag指令了。接下来。我会将第 2 行和第 3 行稍微向右移动。最后,我会将第 2 行中“外”括号的大小增加到\Big

在此处输入图片描述

\documentclass{article}
\usepackage{amsmath} % for "aligned" environment

\begin{document}

\begin{equation}
\begin{aligned}[b]
& g_1\bigl(
  x^*_1(t +\Delta t),
  x^*_2(t +\Delta t),
  x^*_3(t +\Delta t)
  \bigr) \\
&\quad= g_1\Bigl(
  x^*_1(t) + \frac{\partial x^*_1}{\partial t}\Delta t,
  x^*_2(t) + \frac{\partial x^*_2}{\partial t}\Delta t,
  x^*_3(t) + \frac{\partial x^*_3}{\partial t}\Delta t
  \Bigr) \\
&\quad= g_1\bigl(x^*_1(t), x^*_2(t), x^*_3(t)\bigr)
+ \frac{\partial g_1}{\partial x^*_1} \frac{\partial x^*_1}{\partial t}\Delta t
+ \frac{\partial g_1}{\partial x^*_2} \frac{\partial x^*_2}{\partial t}\Delta t
+ \frac{\partial g_1}{\partial x^*_3} \frac{\partial x^*_3}{\partial t}\Delta t\,.
\end{aligned}
\end{equation}
\end{document} 

相关内容