You can indeed use tabular
type of environments, alternatively, you can use the minipage
environment which may give you more flexibility with what you want to achieve:
\documentclass[a4paper,12pt]{article}
\usepackage{lipsum}
\begin{document}
\begin{minipage}[t]{.4\linewidth}
\lipsum[1]
\end{minipage}
\hfill
\vline
\hfill
\begin{minipage}[t]{.4\linewidth}
\lipsum[2]
\begin{align*}
x^2 + y^2 &= 1\\
y &= \sqrt{1 - x^2}.
\end{align*}
\begin{align}
u &= \arctan x & dv &= 1 \, dx\\
du &= \frac{1}{1 + x^2} dx & v &= x.
\end{align}
\end{minipage}
\end{document}
This will give:
\documentclass
and the appropriate packages so that those trying to help don't have to recreate it. As it is a simple\begin{tabular}{l|l} <left content> & <right content> \end{tabular}
will produce output with a vertical bar.