LaTeX – Align a set of equations with a number line

This note will teach us to write multiple equations with numbers, specifically when writing articles in an in-line mode on microblogging sites. In simple words, it demonstrates how to align a set of multiline equations with a number line using LaTeX.

Align a set of multiline equations in LateX:

Example 1:

An example of string of equations

\begin{aligned} ((2x+3)^3)' &= 3(2x+3)^2  (2x+3)' & \hspace{20mm} \text{1} \\ &= 3(2x+3)^2  2 & \text{2} \\ &= 6(2x+3)^2 & \text{3}  \end{aligned}

begin{aligned}
((2x+3)^3)' &= 3(2x+3)^2 cdot (2x+3)' &\hspace{20mm}1 \\
&= 3(2x+3)^2 cdot &2 \\
&= 6(2x+3)^2 &3 
end{aligned}

Example 2:

\begin{aligned} f(u) & =sum_{j=1}^{n} x_j f(u_j) & \hspace{20mm} 1\\ & =sum_{j=1}^{n} x_j sum_{i=1}^{m} a_{ij}v_i & 2 \\ & =sum_{j=1}^{n} sum_{i=1}^{m} a_{ij}x_jv_i & 3 \end{aligned}

begin{aligned}
f(u) & =sum_{j=1}^{n} x_jf(u_j)& &\hspace{20mm} \text{1} \\
     & =sum_{j=1}^{n} x_j sum_{i=1}^{m} a_{ij}v_i& \text{2} \\
     & =sum_{j=1}^{n} sum_{i=1}^{m} a_{ij}x_jv_i & \text{3}
end{aligned}

References

 720 total views,  1 views today

Scroll to Top
Scroll to Top