Rank in LaTeX (\text{rank}(A))

rank(A)\text{rank}(A)
LaTeX command
\text{rank}(A)
Package
Add to your preamble:\usepackage{amsmath}
Mode
Text and math mode

Where it is used

Rank of A: the dimension of its column space, written with an upright label.

The rank-nullity theorem reads \operatorname{rank}(A) + \operatorname{nullity}(A) = n, and a square matrix is invertible exactly when its rank is full. \text{rank} gives upright letters, but a theorem environment's italics can leak into it and it has no operator spacing. Prefer \operatorname{rank}(A), or declare \DeclareMathOperator{\rank}{rank} once and write \rank A. There is no built-in \rank command, so typing it without a definition causes an undefined control sequence error. Low-rank approximation via the truncated SVD is a common place you will typeset this.

Minimal compilable example

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

rank(A)+dim⁡ker⁡(A)=n\text{rank}(A) + \dim \ker(A) = n
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Rank: $\text{rank}(A)$

\[ \text{rank}(A) + \dim \ker(A) = n \]
\end{document}

Related symbols

All 선형대수 →

Frequently asked questions

How do I write Rank in LaTeX?
Type \text{rank}(A) in math mode, for example $\text{rank}(A) + \dim \ker(A) = n$. Load amsmath first with \usepackage{amsmath}.
Which package do I need for \text{rank}(A)?
\text{rank}(A) needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
Can I use \text{rank}(A) in text mode, or only in math mode?
Both. \text{rank}(A) 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로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기