\documentclass{article}
                                    % comments follow percent like Matlab
\usepackage{amsmath,graphicx}       % access useful tools

\title{HW1 \\ {\small Math 56}}
\author{Alex}
\date{\today}

\begin{document}
\maketitle

Text.

New paragraph. See equation \eqref{fred}.

Even more hello. Even more hello. Even more hello. Even more hello.

\begin{enumerate}           % makes a numbered list of items.

\item

Solution to first question.

Now for a picture, which is an EPS file that must be in the current folder:

\includegraphics[width=6in]{squiggle.eps}

You can output an EPS file from MATLAB's current figure
via e.g.\ {\tt print -depsc squiggle.eps}

\item 

Solution to 2nd question.

\end{enumerate}

Math in text $4^{\sin 7}$ is possible.
Or a standalone, labelled, formula, like this one
\begin{equation}
\frac{\int_0^\infty x^{-2} dx}{56.7}
\label{fred}
\end{equation}
which gets its own line.

You can use {\tt latex test} to ``compile'' to a DVI file,
then {\tt dvipdf test} to turn this to a PDF,
the standard document format.

\end{document}
