Arcsecant in LaTeX (\text{arcsec})

arcsec\text{arcsec}
LaTeX command
\text{arcsec}
Package
Add to your preamble:\usepackage{amsmath}
Mode
Text and math mode

Where it is used

Inverse secant, written with \text since LaTeX has no predefined \arcsec.

Defined for |x| \ge 1, \text{arcsec}\, x = \arccos(1/x). Its derivative is \frac{1}{|x|\sqrt{x^2-1}} under the usual range [0, \pi] excluding \pi/2, and the absolute value is a frequent omission in student work. Because \text adds no operator spacing, insert \, before the argument or switch to \operatorname{arcsec}. Declaring \DeclareMathOperator{\arcsec}{arcsec} once lets you write \arcsec x just like \arccos x. Integral tables express \int \frac{dx}{x\sqrt{x^2-1}} in terms of it. It is rarely used in modern papers, which tend to rewrite it as an arccosine of the reciprocal.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

∫dxxx2−1=arcsec x+C\int \frac{dx}{x\sqrt{x^2 - 1}} = \text{arcsec}\, x + C
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Arcsecant: $\text{arcsec}$

\[ \int \frac{dx}{x\sqrt{x^2 - 1}} = \text{arcsec}\, x + C \]
\end{document}

Related symbols

All 三角法 →

Frequently asked questions

How do I write Arcsecant in LaTeX?
Type \text{arcsec} in math mode, for example $\int \frac{dx}{x\sqrt{x^2 - 1}} = \text{arcsec}\, x + C$. Load amsmath first with \usepackage{amsmath}.
Which package do I need for \text{arcsec}?
\text{arcsec} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
Can I use \text{arcsec} in text mode, or only in math mode?
Both. \text{arcsec} compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.
Math poweredAIでLaTeXを書く

最高のAI LaTeXエディタ、Overleaf代替

Octreeは15以上の大学の研究者がAIを使って論文をより速く書くのを支援

  • AIで美しいTikZダイアグラムを生成
  • 画像をアップロードしてシームレスにLaTeXに変換
  • 論文の執筆とフォーマットに即座にサポートを取得