\[
P\{\text{ever enter}\ j\rvert \text{start in}\ i\}
= P\bigg\{\bigcup_{n=0}^{\infty} \{X_n = j \bigg\rvert X_0 = i \bigg\}
& \leq \sum_{n=0}^{\infty} P\{X_n = j \rvert X_0 = i\}
& = \sum_{n=0}^{\infty} P_{ij}^{n}
& = 0
\]
- 757,742
- 31
2 Answers
I assume there are missing new line commands as well as an inside aligned or similar:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\begin{aligned}
P\{\text{ever enter}\ j\rvert \text{start in}\ i\}
& = P\bigg\{\bigcup_{n=0}^{\infty} \{X_n = j \bigg\rvert X_0 = i \bigg\}
\\
& \leq \sum_{n=0}^{\infty} P\{X_n = j \rvert X_0 = i\}
\\
& = \sum_{n=0}^{\infty} P_{ij}^{n}
\\
& = 0
\end{aligned}
\]
\end{document}
The inner aligned makes sense, if the whole system gets one equation
number; e.g., if environment gather or equation replaces \[ and \].
Without numbers, the star form align* can be used instead of \[/\] and the inner aligned.
- 271,626
-
Thank you. I was unsure of the set up for aligned equations for a while now. – Adrian Oct 20 '16 at 20:07
While Heiko's answer addresses the main point, it doesn't fix several typographic mistakes in the source.
\rvertis a right vertical bar, used as a delimiter on the right; it should be\midwhen used as a separator for conditions and|if it follows\left,\rightor\[bB]ig[g]m(see below)\biggmakes an ordinary symbol; in order to produce a delimiter, it should be\bigglor\biggr, depending on the side; for a separator (technically a relation symbol) it should be\biggm; suchlrmvariants exist for\big,\Big,\biggand\Bigg.\text{ever enter }jand\text{ever enter}\ jare clumsy and error prone; much better is\text{ever enter $j$}When a big delimiter is followed by a
\sum-like operator (here\bigcup) having a wide condition underneath, it's better to give some more room with\,A brace is missing in the first summation.
Complete example
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\begin{aligned}
P\{\text{ever enter $j$} \mid \text{start in $i$}\}
& = P\biggl\{\,\bigcup_{n=0}^{\infty} \{X_n = j\} \biggm| X_0 = i \biggr\}
\\
& \leq \sum_{n=0}^{\infty} P\{X_n = j \mid X_0 = i\}
\\
& = \sum_{n=0}^{\infty} P_{ij}^{n}
\\
& = 0
\end{aligned}
\]
\end{document}
- 1,121,712


\[is for a single displayed equation it does not accept&as it is single line it would be meaningless, you need to delete the&or usealignor similar environment, – David Carlisle Oct 20 '16 at 19:30