The obvious alignment would be the =
and the +
signs, however, I do wish to align the e
s). alignat*
allows me to alternate between right and left alignment, so I can have right alignment before the e
s and left alignment after the e
s.
However, the e
s are enclosed by big ∫ brackets, and the alignment prohibits the compiler to realise that the closing brackets is associated with the opening brackets.
MWE
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\[ F(s) = \mathcal{L}\{f(t)\} = \int_{0}^{\infty} f(t)e^{-st} dt \]
\begin{alignat*}{8}
F(s)
&&= \int_{0}^{1} 1\cdot &e^{-st} dt
&+ \int_{1}^{2} -1\cdot &e^{-st} dt
&+ \int_{2}^{\infty} 0\cdot &e^{-st} dt\\
&&= \left[-\tfrac{1}{s}\cdot &e^{-st}\right]_{0}^{1}
&+ \left[ \tfrac{1}{s}\cdot &e^{-st}\right]_{1}^{2}
&+ \left[ 0 & \right]_{2}^{\infty}
\end{alignat*}
\end{document}
tfrac
?\left \right
by\Bigl \Bigr
? No errors with that. Also, move the ` =` before the&&
to have a better spacing around it.\left \right
with\Bigl \Bigr
works excellent. Cheers, @Sigur\[ a = b \]
.