I have the following code:
$\begin{aligned}[t]
P\{X\in A\}&=\int_A\int_{-1}^1 f(x, y)dydx \\
&=\int_A\int_{-1}^1\frac{1}{4}dydx \\
&=\int_A\frac{1}{4}\times 2dx \\
&=\int_A\frac{1}{2}dx
\end{aligned}$
I want to label the last line as (2). How do I do this?
Best Answer
What you need is
split
. The number will be assigned automatically.Note how I got the right spacing for the differential symbols. If you change your mind and prefer a vertically centered number, remove the
tbtags
option.