%
% Thompson's LaTeX exam template
%
\documentclass[11pt]{exam}
\RequirePackage{amssymb, amsfonts, amsmath, latexsym, verbatim, xspace, setspace}
\RequirePackage{tikz, pgflibraryplotmarks}
\renewcommand\partlabel{(\thequestion.\arabic{partno})}
% By default LaTeX uses large margins.  This doesn't work well on exams; problems
% end up in the "middle" of the page, reducing the amount of space for students
% to work on them.
\usepackage[margin=1in]{geometry}


% Here's where you edit the Class, Exam, Date, etc.
\newcommand{\class}{Math 163 - Calculus - Exam 1}
\newcommand{\examnum}{Exam 1}
\newcommand{\examdate}{\today}
\newcommand{\must}{On the exam you must show your work to receive full credit.}
\newcommand{\Tau}{\mathcal{T}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Q}{\mathbb{Q}}
\newcommand{\ds}{\displaystyle}

% For an exam, single spacing is most appropriate
\singlespacing
% \onehalfspacing
% \doublespacing

% For an exam, we generally want to turn off paragraph indentation
\parindent 0ex

\begin{document} 

% These commands set up the running header on the top of the exam pages
\pagestyle{head}
\firstpageheader{}{}{}
\runningheader{\class}{Page \thepage\ of \numpages}{\examdate}
\runningheadrule

\begin{flushright}
\begin{tabular}{p{2.8in} r l}
\text{\class} &   \textbf{Name:} & \makebox[2in]{\hrulefill}\\
%\textbf{\class} &  \makebox[3.5in]{\hrulefill}\\
\examdate &&\\
\textbf{\must} &&\\
\end{tabular}\\
\end{flushright}
\rule[1ex]{\textwidth}{.1pt}
\begin{questions}

\question 
\[
    \int x^3 \sin(2x) \, dx = \hspace*{4in}
\]

\newpage

\question
You can also use this notation 
    $$ \frac{d}{dx} \left[ \int_0^x t^2 \, dt \right] = \hspace*{4in} $$

\end{questions}
\end{document}
