1. Home
  2. Guides
  3. LaTeX and math

Math in Claude: LaTeX, explained

Understand the source behind a formula, choose a destination that can use it, and carry a physics derivation from a chat into a finished document.

Claude’s LaTeX is the text notation behind its formulas: commands describe fractions, roots, and other mathematical structures. If a neatly displayed equation becomes backslashes and braces after you copy it, you have source that the receiving app needs to interpret. Keep that source for editing, then choose a destination that understands equations or a PDF for reading.

The formula and its source are different things

A fraction has a numerator above a denominator, but its source can fit on one line. The command \frac{a}{b} tells a math renderer how those pieces belong together. Braces group the pieces without adding visible brackets to the result.

Anthropic’s prompting documentation says its latest models default to LaTeX for mathematical expressions. The notation belongs to a larger publishing system. As the LaTeX Project explains, “LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation.”

When claude.ai shows a stacked fraction, you are looking at a rendered expression. If the pasted version contains \frac, the receiving app has source without the same presentation. The symbols can remain intact even though the appearance has changed.

Find out what your particular copy contains by pasting one equation into a plain-text editor. Look for the command, both arguments, and any surrounding delimiters. If you need a dependable source passage, ask Claude to put the expression in a fenced code block without changing it, then compare it with the original. This avoids guessing what an ordinary clipboard operation preserved.

Keep the explanation beside its equations. A formula such as v_{\max} = \sqrt{k/m}\,A needs definitions for every letter and a statement of its assumptions. The Markdown explainer covers the outer layer of headings and paragraphs; LaTeX handles the expressions within it.

There are also two scopes hidden in the word LaTeX. A browser math renderer can interpret expressions, while a document compiler handles an entire publication and its supporting files. MathJax’s documentation, for example, describes its own implementation of a subset of LaTeX commands. Agreement on a fraction does not mean two programs understand the same packages, page layout, or custom notation. Choose the destination before relying on those extras.

Read the delimiters, then the commands

In math-enabled Markdown, a common convention is $…$ for an expression inside a sentence and $$…$$ for one displayed separately. Write The mass is $m$. when the symbol belongs to the prose. Give a long derivation its own display block so nested fractions don’t crowd the sentence.

Here is an illustrative source fragment:

The kinetic energy is $K = \frac{1}{2}mv^2$.

$$
K = \frac{1}{2}mv^2
$$

The equation is the same; the delimiter controls its placement. Overleaf documents inline and display modes, including the alternative pairs \(…\) and \[…\]. For a complete LaTeX document, its introductory guide recommends \[…\] instead of double-dollar display notation.

Delimiters belong to the destination’s input rules. An equation box may already supply the math context, so it wants only K = \frac{1}{2}mv^2. Keep the expression separate from a complete document’s opening commands and other wrappers.

A small vocabulary makes much of the source readable:

SourceMeaningWhat to notice
x^2, v_0A power or a subscriptThe raised or lowered part belongs to the preceding symbol.
x^{n+1}, a_{ij}A grouped power or indexBraces keep several characters together.
\frac{a}{b}, \sqrt{x}A fraction or square rootThe arguments say exactly what is divided or rooted.
\alpha, \theta, \DeltaGreek lettersCapitalization changes the requested symbol.
\times, \cdot, \pmMultiplication and plus-or-minusChoose the operation the calculation actually means.
\leq, \neq, \approxRelations between quantitiesAn approximation is different from an equality.
\sum_{i=1}^{n}, \int_0^TA sum or integral with boundsSubscripts and superscripts also carry limits.
\sin, \cos, \logNamed mathematical functionsThe backslash marks a function name.

Overleaf’s guides to scripts, symbols, and operators explain these conventions. One omission can change an equation: x^12 raises only the next character, while x^{12} groups the full exponent.

Read a complicated expression from the outside inward. In \frac{a+b}{c+d}, locate the fraction, then identify the entire numerator and denominator. In \sqrt{\frac{a+b}{c+d}}, the outer root encloses the fraction. This habit helps when a line of source looks intimidating: you can compare its structure with the displayed formula without translating every command at once.

LaTeX’s operator commands give function names upright lettering and appropriate spacing. An attractive rendering cannot tell you whether bare letters mean a function or multiplied variables. The source and accompanying definitions need to agree.

Choose what needs to survive the transfer

A readable equation, editable source, and an equation you can modify inside a word processor are different results. With source, you revise characters that a renderer interprets; an equation object lets the receiving app work directly with structures such as fractions and powers. Decide which kind of editing you need. A PDF serves as a reading copy, while a document with editable equations suits ongoing revision.

For regular claude.ai conversations in desktop Google Chrome, DocMyChat exports one chat or reply at a time. Its PDF typesets the math, its Word file contains editable Office Math equations, and its Markdown file keeps LaTeX between dollar signs. Each receiving application has its own equation rules.

The destination choices below reflect documentation available as of November 3, 2026.

DestinationRoute to useWhat survives, and the limit
PDFExport the conversation, or compile a finished LaTeX document.Typeset equations remain on the saved pages. Keep the source separately for revisions.
WordOpen a .docx containing Office Math equations.The exporter’s equations are editable in Word. For manual LaTeX input, use Word’s equation conversion rather than pasting into ordinary body text.
Markdown appsKeep the .md and open it in an app with math support.Obsidian renders LaTeX notation with MathJax. Check another app’s math support separately from its Markdown support.
Google DocsTry the Word file through Drive, or build equations with Insert → Symbols → Equation.Check fractions, scripts, and editability after import. The exporter’s Copy route supplies LaTeX text for formulas.
NotionPut the bare expression into a Block equation, created with /math.Its KaTeX renderer supports a subset of LaTeX. Check imported notes separately; equation input and whole-file import are different routes.
OneNote for Windows desktopRebuild editable math with Insert → Equation, or attach a PDF for reference.Use UnicodeMath input rather than assuming Word’s LaTeX conversion is available. An attached file remains a separate document.

Microsoft describes linear input precisely: “Linear format is a representation of math on one line in documents.” Its guide distinguishes Word’s LaTeX and UnicodeMath choices and says other Office applications support only UnicodeMath linear input. The equations-to-Word guide covers the conversion procedure.

Google distinguishes editing an Office file in its original format from converting a copy into a Google document. Before transferring a long solution, open one fraction and try a harmless edit, then undo it. Keep the Word original until the document you will share passes that check.

Even dollar signs are contextual: Notion’s typed double-dollar shortcut creates inline math. That typing shortcut does not describe whole-file import. Use the Notion transfer guide for a whole page and equation blocks for expressions that need repair.

Choose one place to revise the document. If collaborators will change equations in Word, let the Word document become the working copy and make a new PDF after review. If you are maintaining a LaTeX report, edit its source instead. Repeatedly moving a solution between apps creates more opportunities for a small notation change to escape notice, without making the underlying argument any easier to check.

Ask for a document Overleaf can compile

A complete LaTeX file declares its document class, loads needed packages, and marks where content begins and ends. Overleaf’s introductory guide explains how a TeX engine processes that source into a PDF. This route gives you control over a report’s structure and layout.

Give Claude your checked derivation and specify the output. Here is a proposed prompt template:

Turn the verified derivation below into one complete main.tex file
for Overleaf using pdfLaTeX, the article class, and amsmath.
Keep the equations, assumptions, and variable definitions unchanged.
Use \( ... \) for inline math and \[ ... \] for display math.
Include the problem, derivation, physical interpretation, and checks.
Use only the references I provide; do not invent citations.
Return one latex code block. Do not replace equations with images.

Verified derivation and reference:
[Paste your checked material here.]

A complete file prevents an ambiguous handoff: a single equation is valid input in some places but cannot stand alone as a report. Asking to preserve the derivation also separates formatting from a new attempt to solve the problem. Compare the equations afterward to catch unintended changes.

If a course or journal supplies a template, provide its relevant package declarations and request only the section you need. Avoid introducing custom commands whose definitions are missing from the material you copied.

Follow a physics problem through to an assessment PDF

Consider this proposed symbolic exercise: a mass m on an ideal horizontal spring of stiffness k starts at rest at displacement A>0. The surface is frictionless, and displacement is measured from equilibrium. Find its speed at position x and the sign of its velocity on the first journey toward equilibrium.

The energy relations are covered in OpenStax’s treatment of simple harmonic motion. This constructed example shows the workflow. Use it for assessed work only under your course’s rules.

Begin the chat with a bounded request: explain the energy argument, define the variables, and distinguish speed from signed velocity. Ask for each displayed equation’s source alongside the explanation. Check that material before turning the answer into a document.

The energy equation to verify is:

12kA2=12kx2+12mv2.

Solving gives speed lvertvrvert=km(A2−x2). While the mass moves toward equilibrium for the first time, signed velocity is negative. A response that labels the positive square root “velocity” needs correction even if every symbol renders beautifully.

After checking the derivation, use the Overleaf prompt above. Here is an illustrative complete source file for this example:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\section*{Speed of a mass on a spring}
An ideal spring has stiffness \(k>0\) and carries a mass \(m>0\).
On a frictionless horizontal surface, the mass is released
from rest at \(x=A>0\), measured from equilibrium.

Conservation of mechanical energy gives
\[
  \frac12 kA^2=\frac12 kx^2+\frac12 mv^2.
\]
Rearranging,
\[
  v^2=\frac{k}{m}(A^2-x^2),\qquad
  |v|=\sqrt{\frac{k}{m}(A^2-x^2)}.
\]
While moving inward for the first time, \(v<0\).
The speed vanishes at \(x=\pm A\) and reaches
\(A\sqrt{k/m}\) at equilibrium.

\section*{Checks}
The factor \(k/m\) has units of inverse seconds squared,
so the result has units of speed.
The square root is real for \(-A\leq x\leq A\).

\section*{Physics reference}
OpenStax, University Physics Volume 1, Section 15.2:
Energy in Simple Harmonic Motion.
\end{document}

The file contains the reasoning and its conditions. Add the identification, problem reference, and truthful AI disclosure your assignment requires. A template cannot decide which work your course permits.

To turn the source into a PDF:

  1. In Overleaf, choose New Project → Blank project, name the project, and select Create.
  2. Replace the starter document’s contents with the source inside the code block. Leave the Markdown fence lines out.
  3. Select Recompile, then resolve any errors reported in the log.
  4. Select the Download PDF icon beside Recompile in the PDF display window.

Before handing in a file such as spring-energy-solution.pdf, open that downloaded copy. Confirm that the radical covers the entire expression, both squared quantities keep their exponents, and the minus sign in the allowed interval survived. Page layout should not separate a qualification from the result it limits.

Then check the physics independently. Substituting either turning point should give zero speed, while equilibrium should give the maximum. Because stiffness divided by mass has units of inverse time squared, multiplying its square root by a length gives speed. These checks test different possible mistakes, so a correct unit alone doesn’t settle the sign or the allowed range.

Save the source with the final PDF for revisions; Overleaf’s source download and PDF download are separate files. If the instructor also requires the chat, the assignment transcript guide explains how to prepare that record separately from the edited solution.

Fix the layer that actually failed

If backslashes remain visible, identify the input you are editing. Plain text, a Markdown code block, and an equation box have different purposes. Move the bare expression into the appropriate math input, keeping the original source while making repairs.

If only one command fails, investigate that command before rewriting the whole answer. A macro that works in an Overleaf project may depend on a package or definition that never traveled with the copied expression. Ask for a version using the destination’s supported notation. That can fix the problem without changing the mathematical claim.

A PDF preview is also weaker evidence than it seems. Overleaf can attempt to produce a PDF despite compilation errors, so read the log and fix the first error before trusting the pages. If a sound equation extends beyond a margin, break the derivation at a meaningful equality instead of shrinking the entire page.

Typesetting cannot validate a derivation. Anthropic recommends independent verification for complex or consequential calculations. The spring PDF should explain why energy is conserved, what the square root represents, and where the result applies. Those are the things a reader needs to assess alongside the printed symbols.

Questions

Can I ask Claude to avoid LaTeX completely?

Yes. Anthropic recommends explicitly requesting plain text, with ordinary characters for division, multiplication, and powers. Ask for parentheses around grouped terms so a nested fraction remains understandable.

Should I request exact answers or decimals?

Request an exact expression first and a rounded value afterward when the problem needs one. Specify the units and required precision. Extra decimal places cannot repair an incorrect assumption.

Should I include a diagram with the equations?

Include one when geometry or force directions explain an assumption the algebra hides. Label it with the same variables used in the derivation and make any sign convention explicit.