Rho in LaTeX (\rho)

ρ\rho
LaTeX command
\rho
Package
No package needed: built into LaTeX
Mode
Math mode only
Copy the Unicode character
ρU+03C1

Where it is used

Lowercase Greek rho, used for density, correlation coefficients, and charge density.

Physics uses \rho for mass density, \rho = m/V, and charge density in Maxwell's equations \nabla \cdot \mathbf{E} = \rho/\varepsilon_0. Statistics writes Pearson correlation as \rho_{XY} and Spearman's rank correlation as \rho. Representation theory uses \rho for a representation, and quantum mechanics uses it for a density matrix. The variant \varrho has a curly tail that some authors use to keep two meanings apart. Do not confuse \rho with the Latin p, which looks similar in many fonts.

Also listed under: الاحتمالات والإحصاء

Minimal compilable example

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

ρXY=Cov⁡(X,Y)σXσY\rho_{XY} = \frac{\operatorname{Cov}(X, Y)}{\sigma_X \sigma_Y}
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Rho: $\rho$

\[ \rho_{XY} = \frac{\operatorname{Cov}(X, Y)}{\sigma_X \sigma_Y} \]
\end{document}

Related symbols

All الرموز اليونانية →

Frequently asked questions

How do I write Rho in LaTeX?
Type \rho in math mode, for example $\rho_{XY} = \frac{\operatorname{Cov}(X, Y)}{\sigma_X \sigma_Y}$. It works in plain LaTeX without loading any package.
Which package do I need for \rho?
None. \rho is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \rho in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\rho$ in running text. If you only need the glyph in text, paste the Unicode character ρ instead (with XeLaTeX or LuaLaTeX and a font that has it).
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث