How to write a real number(ℝ) symbol in LaTeX?

A set of real numbers is denoted by ℝ, which can be written in LaTeX using \mathbb{R}.

This command is available in multiple packages, as shown in the table below.

amsfonts \mathbb{R}Use amsfonts package
amssymb \mathbb{R}Use amssymb package
txfonts \mathbb{R}Use txfonts package
pxfonts \mathbb{R} → Use pxfonts package

The real number symbol is identical in the amsfonts and amssymb packages but slightly differs in txfonts and pxfonts.

\documentclass{article}
\usepackage{amsfonts} 
\begin{document}
  \[ a,b\in\mathbb{R} \] 
\end{document}

Output

Set of real numbers symbol

Real space(Rn, R2)

the real number space is written using this command with superscript (^). This notation is commonly used for real spaces in mathematics, physics, and engineering.

\[ \mathbb{R}^n \]
\[ \mathbb{R}^2 \]

\[ \mathbb{R}^n \]

\[ \mathbb{R}^2 \]

Real Part of a complex Number

A complex number consists of a real and an imaginary part. The real part is denoted by ℜ(z), represented in LaTeX using the \Re(z) command.

\[ z=a+ib \]
\[ \Re(z) = a \]

Output

Real part symbol

You can denote real part symbols using various methods beyond the default in LaTeX. For example,

1. The physics package provides the \Re command to denote the real part, returning Re(z) instead of ℜ(z).

\documentclass{article}
\usepackage{physics}
\begin{document}
  \[ z = a+ib \]
  \[ \Re(z) = a \]
\end{document}

Output

Real part symbol with physics package

2. The amsmath package allows using the \operatorname command with the re-syntax.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
  \[ z = a+ib \]
  \[ \operatorname{Re}(z) = a \]
\end{document}

Output

Real part symbol with amsmath package

3. amsfonts package supports the \mathfrak command, which can take both R and Re as arguments.

\documentclass{article}
\usepackage{amsfonts}
\begin{document}
  \[ z = a+ib \]
  \[ \mathfrak{R}(z) = a \]
  \[ \mathfrak{Re}(z) = a \]
\end{document}

Output

Real part symbol with amsfonts package

Outputs indicate Re(z) is a better choice than ℜ(z) for representing the real part. A recommended approach is using the physics package with the \Re command.

Share tutorial

Leave a Comment

Your email address will not be published. Required fields are marked *