我无法将方程式移动到我的表格旁边
代码:
\begin{enumerate}
\item[38]
\begin{align}
\int{e^{\sqrt{x}}}, y = \sqrt{x} \ \rightarrow dy = \frac{1}{2y} dx \Leftrightarrow \int{2ye^ydy}
\end{align}
\begin{tabular}{||c c||}
\hline
D & I \\ [0.5ex]
\hline\hline
2y & $e^y$\\
\hline
2 & $e^y$ \\
\hline
0 & $e^y$ \\
\hline
\end{tabular}
\begin{align}
\int{2ye^ydy} = 2ye^y - 2\int{e^ydy} \\
\rightarrow 2ye^y - 2e^y + C\\
\boxed{2\sqrt{x}e^{\sqrt{x}} - 2e^{\sqrt{x}} + C}
\end{align}
\end{enumerate}
答案1
像这样吗?(请注意,我把这四个方程式放在了 中minipage
。)
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{enumerate}
\item[38.]
\addtocounter{equation}{6}
\quad$\begin{array}{||c c||}
\hline
D & I \\ [0.5ex]
\hline\hline
2y & e^y\\
\hline
2 & e^y \\
\hline
0 & e^y \\
\hline
\end{array}$
\hfill
\begin{minipage}{0.7\textwidth}
\begin{align}
\int e^{\sqrt{x}},\ y = \sqrt{x}
\quad \rightarrow \quad
dy = \frac{1}{2y}\,dx \Leftrightarrow \int 2ye^y\,dy\\
\int 2ye^y\,dy = 2ye^y - 2\int e^y\,dy \\
\rightarrow 2ye^y - 2e^y + C \\
\boxed{2\sqrt{x}e^{\sqrt{x}} - 2e^{\sqrt{x}} + C}
\end{align}
\end{minipage}
\end{enumerate}
\end{document}