在我开始编写大量解决方案之前,我想采用一种在我的文档中始终使用的风格。到目前为止,我编写了一个方程式的解,如下所示。你能看看这个吗?任何评论、建议、改进,使我的文章更好、更易读等,都欢迎。
\documentclass[border=12pt,preview]{standalone}
\usepackage{amsmath}
\begin{document}
Solve $-5(1 - 7 x) (3 x + 10) (2 x + 1)=0$ with factorization.
\begin{gather*}
-5(1 - 7 x) (3 x + 10) (2 x + 1)=0\\
1-7x =0 \qquad \text{or}\qquad 3x+10 = 0 \qquad \text{or}\qquad 2x+1=0 \\
-7x =-1 \qquad \text{or}\qquad 3x = -10 \qquad \text{or}\qquad 2x=-1 \\
\begin{aligned}[t]
x &= \frac{-1}{-7}\\
&= \frac{1}{7}
\end{aligned} \qquad \text{or}\qquad
\begin{aligned}[t]
x &= \frac{-10}{3}\\
&= -\frac{10}{3}
\end{aligned}
\qquad \text{or}\qquad
\begin{aligned}[t]
x &= \frac{-1}{2}\\
&= -\frac{1}{2}
\end{aligned}
\end{gather*}
Thus the solution is $x\in \{-\frac{10}{3},-\frac{1}{2},\frac{1}{7}\} $.
\end{document}
答案1
这看起来是对齐方程式的更好方法吗......
\documentclass[border=12pt,preview]{standalone}
\usepackage{amsmath}
\newcommand{\nxt}{& &&} %% next column
\newcommand{\nxr}{&\text{or} &&} %% next column with "or"
\begin{document}
Solve $-5(1 - 7 x) (3 x + 10) (2 x + 1)=0$ with factorization.
%
\begin{align*}
-5(1 - 7 x) (3 x + 10) (2 x + 1) = 0
\end{align*}
%
\begin{align*}
1-7x &= 0 \nxr 3x+10 &= 0 \nxr 2x+1 &= 0 \\
-7x &= -1 \nxr 3x &= -10 \nxr 2x &= -1 \\
x &= \frac{-1}{-7} \nxr x &= \frac{-10}{3} \nxr x &= \frac{-1}{2} \\
&= \frac{1}{7} \nxt &= -\frac{10}{3} \nxt &= -\frac{1}{2}
\end{align*}
%
Thus the solution is $x\in \{-\frac{10}{3},-\frac{1}{2},\frac{1}{7}\} $.
\end{document}