이미지에 표시된 대로 다음 방정식 세트를 정렬하려면 어떻게 해야 합니까?

이미지에 표시된 대로 다음 방정식 세트를 정렬하려면 어떻게 해야 합니까?

IEEEeqnarray환경이 이 특정 정렬에 가장 적합하지 않은 경우 사용하기에 가장 좋은 환경은 무엇입니까?

산출

\documentclass[11pt,a4paper]{article}
\usepackage{blindtext}
\usepackage{mathtools}
\usepackage{IEEEtrantools}
\begin{document}
\begin{IEEEeqnarray*}{rCl}
(x-a)(x-2a)(x-3a)(x-4a)=x^{4}-P_{1}x^{3}+P_{2}x^{2}-P_{3}x+P_{4}.\\
\shortintertext{Here}
P_{1}&=&a+2a+3a+4a=10a,\\
P_{2}&=&1\times 2a^{2}+1\times 3a^{2}+1\times 4a^{2}+2\times 4a^{2}+3\times 4a^{2}=35a^{2},\\
P_{3}&=&2\times 3\times 4a^{3}+1\times 3\times 4a^{2}+1\times 2\times 4a^{3}+1\times 2\times 3a^{3}=50a^{3},\\
P_{4}&=&1\times 2\times 3\times 4a^{4}=24a^{4}.
\shortintertext{so that}
(x-a)(x-2a)(x-3a)(x-4a)=x^{4}-10ax^{3}+35a^{2}x^{2}-50a^{3}x+24a^{4}.
\end{IEEEeqnarray*}
\end{document}

답변1

귀하의 정렬 표현은 실제로 그다지 정확하지 않습니다. 따라서 다음 사항이면 충분하다고 가정합니다.

여기에 이미지 설명을 입력하세요

\documentclass{article}
\usepackage{array}
\begin{document}
\[
  (x - a)(x - 2a)(x - 3a)(x - 4a) = x^4 - P_1 x^3 + P_2 x^2 - P_3 x + P_4.
\]
Here
\[
  \renewcommand{\arraystretch}{1.3}
  \begin{array}{r@{}>{{}}l@{}r@{}>{{}}l}
    P_1 &= a+2a+3a+4a &&= 10a, \\
    P_2 & \multicolumn{3}{@{}l}{{}= 1 \times 2a^2 + 1 \times 3a^2 + 1 \times 4a^2 + 2 \times 4a^2 + 3 \times 4a^2} \\
      &&&= 35a^2,\\
    P_3 & \multicolumn{3}{@{}l}{{}= 2 \times 3 \times 4a^3 + 1 \times 3 \times 4a^2 + 1 \times 2\times 4a^3 + 1 \times 2 \times 3a^3} \\
      &&&= 50a^3,\\
    P_4 &= 1 \times 2 \times 3 \times 4a^4 &&= 24a^4, \\
  \end{array}
\]
so that
\[
  (x - a)(x - 2a)(x - 3a)(x - 4a) = x^4 - 10ax^3 + 35a^2 x^{2} - 50a^3 x + 24a^4.
\]
\end{document}

엄격하게 준수되지 않는 다중 정렬(일부 선은 정렬 지점을 사용하고 일부는 사용하지 않음)은 표준 align및 친구와 함께 수행하기 어렵습니다. 를 사용하면 array의 도움으로 이러한 어려움을 피할 수 있습니다 \multicolumn.

의 사용array패키지위의 내용은 실제로 필요하지 않지만 어쨌든 사용했습니다.

답변2

왜 이렇게 간단한 방법이 없나요?

\documentclass{article}

\usepackage{mathtools}

\begin{document}

\noindent We have
\begin{align*}
\MoveEqLeft (x - a)(x - 2a)(x - 3a)(x - 4a)
  = x^{4} - P_{1}x^{3} + P_{2}x^{2} - P_{3}x + P_{4}\\
\intertext{where}
  P_{1} &= a + 2a + 3a + 4a = 10a,\\
  P_{2} &= 1 \cdot 2a^{2} + 1 \cdot 3a^{2} + 1 \cdot 4a^{2} + 2 \cdot 4a^{2} + 3 \cdot 4a^{2} = 35a^{2},\\
  P_{3} &= 2 \cdot 3 \cdot 4a^{3} + 1 \cdot 3 \cdot 4a^{2} + 1 \cdot 2 \cdot 4a^{3} + 1 \cdot 2 \cdot 3a^{3}= 50a^{3},\\
  P_{4} &= 1 \cdot 2 \cdot 3 \cdot 4a^{4} = 24a^{4},
\intertext{so that}
\MoveEqLeft (x - a)(x - 2a)(x - 3a)(x - 4a)
  = x^{4} - 10ax^{3} + 35a^{2}x^{2} - 50a^{3}x + 24a^{4}.
\end{align*}

\end{document} 

여기에 이미지 설명을 입력하세요

답변3

내가 할 방법은 다음과 같습니다.

\documentclass{article}

\usepackage{mathtools}

\begin{document}

\noindent We have
\begin{equation*}
  (x - a)(x - 2a)(x - 3a)(x - 4a)
  = x^{4} - P_{1}x^{3} + P_{2}x^{2} - P_{3}x + P_{4}
\end{equation*}
where
\begin{align*}
  P_{1} &= a + 2a + 3a + 4a\\
        &= 10a,\\
  P_{2} &= 1 \cdot 2a^{2} + 1 \cdot 3a^{2} + 1 \cdot 4a^{2} + 2 \cdot 4a^{2} + 3 \cdot 4a^{2}\\
        &= 35a^{2},\\
  P_{3} &= 2 \cdot 3 \cdot 4a^{3} + 1 \cdot 3 \cdot 4a^{2} + 1 \cdot 2 \cdot 4a^{3} + 1 \cdot 2 \cdot 3a^{3}\\
        &= 50a^{3},\\
  P_{4} &= 1 \cdot 2 \cdot 3 \cdot 4a^{4}\\
        &= 24a^{4},
\end{align*}
so that
\begin{equation*}
  (x - a)(x - 2a)(x - 3a)(x - 4a)
  = x^{4} - 10ax^{3} + 35a^{2}x^{2} - 50a^{3}x + 24a^{4}.
\end{equation*}

\end{document}

산출

관련 정보