pdfLaTeX2 pages1.56s compile50.9 KB

Mathematics Problem Set LaTeX Template

Stylish homework sheet with indigo header band, tcolorbox problem cards, AMS theorem environments, and multi-part questions — beautiful for any analysis or algebra course.

Download PDF
\source{math-problem-set}
\documentclass[11pt]{article}
\usepackage[margin=1.3cm,top=1.2cm]{geometry}
\usepackage{amsmath,amssymb,amsthm}
\usepackage{xcolor}
\usepackage{tcolorbox}
\usepackage{enumitem}
\usepackage{fancyhdr}
\usepackage{microtype}
\usepackage{tikz}

\tcbuselibrary{skins,breakable}

% ── Colors ───────────────────────────────────────────────────────────────────
\definecolor{accent}{HTML}{4F46E5}
\definecolor{accentdark}{HTML}{312E81}
\definecolor{headerbg}{HTML}{1E1B4B}
\definecolor{probbg}{HTML}{F5F3FF}
\definecolor{rulecol}{HTML}{A5B4FC}
\definecolor{darktext}{HTML}{111827}
\definecolor{subtext}{HTML}{6B7280}

\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\small\textcolor{subtext}{MATH 301 --- Real Analysis}}
\fancyhead[R]{\small\textcolor{subtext}{Problem Set 4}}
\fancyfoot[C]{\small\textcolor{subtext}{\thepage}}
\renewcommand{\headrulewidth}{0pt}

% ── Problem box ───────────────────────────────────────────────────────────────
\tcbset{
  probstyle/.style={
    enhanced,breakable,
    colback=probbg,colframe=accent,
    arc=3pt,boxrule=0.5pt,
    left=10pt,right=10pt,top=6pt,bottom=6pt,
    fonttitle=\bfseries\small\color{white},
    attach boxed title to top left={yshift=-2mm,xshift=6mm},
    boxed title style={colback=accentdark,arc=2pt,boxrule=0pt}
  }
}

\newcommand{\R}{\mathbb{R}}
\newcommand{\N}{\mathbb{N}}

\begin{document}

% ── Header ────────────────────────────────────────────────────────────────────
\begin{tikzpicture}[remember picture,overlay]
  \fill[headerbg]
    (current page.north west)
    rectangle ([yshift=-2.4cm]current page.north east);
  \fill[accent] ([yshift=-2.4cm]current page.north west)
    rectangle ([yshift=-2.48cm]current page.north east);
\end{tikzpicture}
\vspace*{-0.3cm}
{\color{white}
  \noindent{\large\bfseries MATH 301 --- Real Analysis}\hfill
  {\normalsize Problem Set 4}\\[3pt]
  \noindent{\small Due: Friday, March 7\quad
  \textcolor{rulecol}{|}\quad
  Show all work for full credit}
}
\vspace{1.6cm}

% ── Problems ──────────────────────────────────────────────────────────────────
\begin{tcolorbox}[probstyle,title={Problem 1}]
\textbf{Cauchy sequences.}\quad
Let $(x_n)_{n\ge 1}$ be a Cauchy sequence in $\R$.
Prove that $(x_n)$ converges, carefully establishing
both the existence of the limit and that the sequence attains it.

\medskip
\textit{Hint: First show that every Cauchy sequence is bounded, then
extract a convergent subsequence via the Bolzano--Weierstrass theorem.}
\end{tcolorbox}

\vspace{8pt}

\begin{tcolorbox}[probstyle,title={Problem 2}]
\textbf{Integrability and absolute value.}\quad
Let $f:[a,b]\to\R$ be Riemann integrable.
\begin{enumerate}[label=(\alph*),leftmargin=*,nosep,itemsep=4pt]
  \item Prove that $|f|$ is Riemann integrable on $[a,b]$.
  \item Establish the \emph{triangle inequality for integrals}:
    \[
      \left|\int_a^b f(x)\,dx\right| \;\le\; \int_a^b |f(x)|\,dx.
    \]
\end{enumerate}
\end{tcolorbox}

\vspace{8pt}

\begin{tcolorbox}[probstyle,title={Problem 3}]
\textbf{Pathological example.}\quad
Construct an explicit function $f:\R\to\R$ such that:
\begin{itemize}[leftmargin=*,nosep,itemsep=3pt]
  \item $f$ is continuous \emph{nowhere}, yet
  \item $|f|$ is continuous \emph{everywhere}.
\end{itemize}
Prove that your construction has the claimed properties.
\end{tcolorbox}

\vspace{8pt}

\begin{tcolorbox}[probstyle,title={Problem 4}]
\textbf{Absolute convergence.}\quad
Let $(a_n)_{n\ge 1}$ be a sequence of real numbers.
\begin{enumerate}[label=(\alph*),leftmargin=*,nosep,itemsep=4pt]
  \item Prove: if $\displaystyle\sum_{n=1}^\infty|a_n|<\infty$,
    then $\displaystyle\sum_{n=1}^\infty a_n$ converges.
  \item Determine whether the converse holds. If false, provide a counterexample.
\end{enumerate}
\end{tcolorbox}

\end{document}

See the compiled PDF

No API key required

pdfLaTeX

\usepackage{used}

LaTeX packages used

\geometryPage margins and layout control
\amsmathAdvanced math environments and commands
\amssymbAMS symbol fonts and extra math symbols
\amsthmTheorem, lemma, and proof environments
\xcolorColor definitions and usage
\tcolorboxColored and framed text boxes
\enumitemCustomizable list environments
\fancyhdrCustom headers and footers
\microtypeMicro-typographic enhancements (kerning, tracking)
\tikzDrawing diagrams and vector graphics

\section{related}

More academic templates

\compile{instantly}

Customize and compile instantly

Load this template into the playground, edit, and see your PDF in seconds.