Inverse in LaTeX (A^{-1})
- LaTeX command
A^{-1}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Inverse of square matrix A, the matrix whose product with A is the identity.
It satisfies AA^{-1} = A^{-1}A = I and exists only when \det(A) \neq 0. The braces are required: A^-1 would superscript only the minus sign and leave the 1 on the baseline. For a 2 by 2 matrix, the explicit formula with \frac{1}{ad-bc} times the adjugate is often typeset in full using bmatrix. In numerical papers, readers understand that the inverse is rarely computed explicitly, so writing \mathbf{x} = A^{-1}\mathbf{b} is fine as notation. Pseudoinverses use A^{+} or A^{\dagger}, and (AB)^{-1} = B^{-1}A^{-1} reverses the order.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Inverse: $A^{-1}$
\[ A^{-1} = \frac{1}{\det A} \operatorname{adj}(A) \]
\end{document}Related symbols
All الجبر الخطي →Frequently asked questions
- How do I write Inverse in LaTeX?
- Type A^{-1} in math mode, for example $A^{-1} = \frac{1}{\det A} \operatorname{adj}(A)$. It works in plain LaTeX without loading any package.
- Which package do I need for A^{-1}?
- None. A^{-1} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use A^{-1} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $A^{-1}$ in running text.
أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf
يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي
- أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
- ارفع صورة وحولها إلى LaTeX بسلاسة
- احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث