Skip to main content

Physics & Math Homework Templates

Problem sets, exams, lab reports, lecture notes. Solution toggle, difficulty stars, bra-ket macros. Gradescope-ready.

⚛️

Build Your Homework Visually

Fill the form → Live KaTeX preview → Export student + instructor PDF + .tex.

Open Homework Builder →
homeworkMost Popular

Problem Set (Weekly HW)

Standard problem set format with boxed problems, parts (a,b,c), solution toggle, difficulty stars. Gradescope-ready.

% Generated by LaTeXTool (https://latextool.com/builders/homework)
% Style: problem-set. Compile with pdfLaTeX.
\documentclass[11pt,letterpaper]{article}
\usepackage[margin=1in]{geometry}
\usepackage[T1]{fontenc}
\usepac…

Topic-Specific Guides

FAQ

Is the PDF Gradescope-compatible?▼

Yes. Header on every page, numbered problems, boxed statements, solution toggle — designed to match Gradescope expectations.

Can I generate both student and instructor versions?▼

Yes. Toggle "Hide Solutions" in options, then print to PDF once for the student version (problems only) and once for the instructor version (with solutions).

Are physics macros included?▼

Yes — bra-ket, Dirac notation, derivatives, Feynman slashes, and SI units are pre-loaded and render in the KaTeX preview. TikZ diagrams are included in the exported .tex.

Can I create exams with version A/B?▼

Yes. Exam style supports versioning (A/B/C) with version-specific content. Point values per problem.

Topic Guides

Electromagnetism Homework Templates

Maxwell, waves, radiation, relativity. Vector calculus macros, solution toggle, Gradescope-ready.

EM Macros

\grad, \div, \curl, \laplacian\dAlembertian\vect{}, \uvect{}, \cross, \dotp\pdv{}, \fdv{}, \pddv{}{}{}\fddv{}{}\Slash{}, \pslash, \kslash, \qslash\quantity{}, \unit{}\comm{}, \anticomm{}\vsub{}, \vsup{}
Are vector calculus macros included?

Yes. \grad, \div, \curl, \laplacian, \dAlembertian, \vect{}, \uvect{}, \cross, \dotp all pre-loaded.

Can I write Maxwell equations cleanly?

Yes. Use \grad, \div, \curl, \pdv{}, \fdv{} for differential form. \braket{} for integrals.

Does it support radiation problems?

Yes. Poynting vector, retarded potentials, Larmor formula. Feynman slash for relativistic notation.

Can I do relativistic electromagnetism?

Yes. \Slash{}, \pslash, \kslash, four-vectors, Lorentz transformations with vector macros.

Open Builder (Problem Set)

Gradescope-Optimized Homework Templates

Header on every page, numbered problems, solution toggle, boxed statements. Perfect for Gradescope submission.

Header Every Page

Name, Student ID, Course, Problem number on every page

Numbered Problems

Auto-numbered matching Gradescope problem index

Solution Toggle

Student version (no solutions) + Instructor version

Boxed Statements

Clear problem boundaries for easy grading

Why is this Gradescope-optimized?

Header on every page (name, ID, course), numbered problems matching Gradescope problem index, boxed statements for clear boundaries, solution toggle for separate student/instructor uploads.

Can I upload directly to Gradescope?

Yes. Export PDF from builder → Upload to Gradescope. Problems auto-match if numbered correctly.

Does it support page-per-problem?

Yes. Enable "One Problem Per Page" in options. Each problem starts on new page for easy scanning.

How do I handle multiple versions (A/B)?

Exam style supports Version A/B/C with version-specific content. Select in options dropdown.

Open Builder (Problem Set)

Math Proofs Homework Templates

Analysis, algebra, topology, logic. Theorem/lemma/proof environments, solution toggle, Gradescope-ready.

Proof Environments

\begin{theorem}...\end{theorem}\begin{lemma}...\end{lemma}\begin{proposition}...\end{proposition}\begin{corollary}...\end{corollary}\begin{proof}...\end{proof}\begin{definition}...\end{definition}\begin{example}...\end{example}\begin{remark}...\end{remark}
Are theorem/proof environments included?

Yes. \begin{theorem}, \begin{lemma}, \begin{proposition}, \begin{corollary}, \begin{proof}, \begin{definition}, \begin{example}, \begin{remark} all pre-loaded.

Can I write analysis problems (epsilon-delta)?

Yes. Use parts for (a) prove limit, (b) prove continuity, (c) prove differentiability. Math macros for limits, sup/inf.

Does it support topology problems?

Yes. Definition environment for open/closed sets, compactness, connectedness. Proof environment for theorems.

Are logic/set theory symbols available?

Yes. \forall, \exists, \implies, \iff, \subset, \cup, \cap, \emptyset, \RR, \CC, \ZZ, \NN, \QQ all work.

Open Builder (Problem Set)

Classical Mechanics Homework Templates

Lagrangian, Hamiltonian, oscillations, central forces. Solution toggle, difficulty stars, Gradescope-ready.

Mechanics Macros

\Ham = Hamiltonian\Lag = Lagrangian\pdv{q}{t} = partial deriv\fdv{q}{t} = total deriv\grad, \div, \curl, \laplacian\vect{}, \uvect{}, \cross, \dotp\comm{}, \anticomm{}\vsub{}, \vsup{}
Are there macros for Lagrangian mechanics?

Yes. The physics macros include \Ham for Hamiltonian, \Lag for Lagrangian, \pdv for partial derivatives, and variational derivatives.

Can I write normal mode problems?

Yes. Matrix macros (\mat{}, \vect{}, \expect{}) work for normal mode matrices. Use parts (a,b,c) for multi-part problems.

Is there a template for central force problems?

Use the Problem Set style with parts for orbit equation, effective potential, precession. Difficulty stars for ★/★★/★★★.

Does it support Hamiltonian phase space plots?

TikZ/pgfplots is pre-loaded. Use the Lab Report style for figures with \labFigure{} helper.

Open Builder (Problem Set)

Quantum Mechanics Homework Templates

Bra-ket, operators, perturbation theory, scattering. Solution toggle, difficulty stars, Gradescope-ready.

Quantum Macros

\bra{}, \ket{}, \braket{}{}\braopket{}{}{}\expect{}, \comm{}, \anticomm{}\Ham, \Ann, \Cre, \Num, \Pos, \Mom\coherent{}, \squeeze{}, \displace{}\pdv{}, \fdv{}, \grad, \div, \curl\Slash{}, \pslash, \kslash\vac, \rmi, \rmd, \rme
Are bra-ket macros included?

Yes. \bra{}, \ket{}, \braket{}{}, \braopket{}{}{}, \expect{}, \comm{}, \anticomm{}, \proj{}, \outer{}{} all pre-loaded.

Can I write perturbation theory problems?

Yes. Use parts for orders (a) 1st order, (b) 2nd order. Operators \Ann/\Cre for creation/annihilation.

Does it support scattering problems?

Yes. Use parts for partial wave expansion, phase shifts, cross sections. Matrix macros for S-matrix.

Are coherent/squeezed states supported?

Yes. \coherent{}, \squeeze{}, \displace{} macros for quantum optics problems.

Open Builder (Problem Set)

Statistical Mechanics Homework Templates

Ensembles, phase transitions, thermodynamics. Partition functions, free energy, entropy. Gradescope-ready.

Stat Mech Macros

\partition{}, \freeEnergy{}, \entropy{}\chemPot, \betaTherm, \avg{}, \fluct{}\Tr{}, \Det{}, \Rank{}, \sgn{}\erf{}, \erfc{}, \Real{}, \Imag{}\vect{}, \mat{}, \tensor{}\pdv{}, \fdv{}, \grad, \div, \curl\Slash{}, \pslash, \kslash\vsub{}, \vsup{}
Are partition function macros included?

Yes. \partition{}, \freeEnergy{}, \entropy{}, \chemPot, \betaTherm, \avg{}, \fluct{} all pre-loaded.

Can I write Ising model problems?

Yes. Matrix macros for transfer matrix, \Tr{}, \expect{} for correlation functions. Parts for 1D/2D.

Does it support quantum statistics?

Yes. Fermi-Dirac/Bose-Einstein distributions. \rmi, \rmd, \rme for complex integrals.

Are phase transition macros available?

Use \grad, \div, \curl for field theory approach. \vect{} for order parameter fields.

Open Builder (Problem Set)