Skip to content
latexci
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademics
Sign inFree
PreviewDiffWord → LaTeXBibTeXSymbolsTableTemplatesAcademicsFree
Discord community ↗GitHub ↗
Sign in
LaTeX symbols›Operators›Tanh

Tanh in LaTeX

The LaTeX command for tanh is \tanh.

tanh⁡\tanhtanh
\tanh
Operators · no package needed

Writing a paper? The table generator and the BibTeX cleaner are one click away, no account.

How to type Tanh

Write \tanh inside math mode, that is between $…$ for inline math or in a \[ … \] or equation block for display math. It is part of core LaTeX math, so no extra package is required.

\tanh sets the name upright with operator spacing; typed as plain letters it would print in italics, as a product of variables.

Example
$\tanh_{i=1}^{n} x_i$tanh⁡i=1nxi\tanh_{i=1}^{n} x_itanhi=1n​xi​

Open this example in the live preview: it renders as you type, with no compiler and no signup.

Related Operators symbols

cos\costan\tanarcsin\arcsinarccos\arccosarctan\arctansinh\sinhcosh\coshcot\cotsec\seccsc\cscexp\explog\logln\lndet\det

Math operators in LaTeX: the full table or search all 350+ LaTeX symbols.

FAQ

How do you write tanh (tanh) in LaTeX?

Use \tanh in math mode; it needs no extra package. For example, $\tanh_{i=1}^{n} x_i$.

Which package provides \tanh?

None: \tanh is built into LaTeX, so no extra package is required.

latexci

Free LaTeX tools for researchers and students, in any browser. No paid plan, no advertising.

Star on GitHubBuy me a coffee

Tools

Live PreviewBibTeX ToolsDOI → BibTeXarXiv → BibTeXPubMed → BibTeXISBN → BibTeXLaTeX DiffWord → LaTeXSymbol SearchTable GeneratorTemplatesCV Generator

Learn

Academics hubLife after OverleafFreeGitHub

Community

DiscordGitHub IssuesFeature Requests

© 2026 latexci. By Sitraka Forler, sitraka.lu

PrivacyTerms