Resurchify LaTeX Guide
Resurchify

Operators in LaTeX


LaTex generally shows characters in italics defined in a mathematical mode. However, in some cases, the name of functions need different formatting, which is achieved using operators.

Table of Contents

  1. Introduction
  2. Operators in different contexts in LaTex
  3. Defining your own operators in LaTex
  4. Reference Guide of operators in LaTex

Introduction


Trigonometrical functions (sin, cos, tan, etc.), logarithmic function (log), etc. are written in LaTex using some special command.



Examples using Mathematical operators:
1
2
3
\[
\sin(a + b ) = \sin(a)\cos(b) + \cos(a)\sin(b)
\]

Output:
$$ \sin(a + b ) = \sin(a)\cos(b) + \cos(a)\sin(b) $$

Note: This operator commands use Roman characters for printing the function name instead of italics.

Operators in different contexts


Few operators in LaTex are managed in an extraordinary way.

It can include a subscript as shown below:

1
2
3
\[
\lim_{a \rightarrow 0 } \frac{f(a+h)-f(a)}{h}
\]

Output:
$$ \lim_{a \rightarrow 0 } \frac{f(a+h)-f(a)}{h} $$

Refer Reference Guide for a complete list of supported operators in LaTex.


Defining your own operators


If you would like to add/include your own personalized operators to be displayed in Roman font rather than italics. You can use \DeclareMathOperator

Example using personalized operators :
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
\documentclass{article}
 
\usepackage{amssymb}
\usepackage{amsmath}
 
\DeclareMathOperator{\My}{M_{\mathcc{K}}}
 
\begin{document}
 
 Defining your own operator.
 
\[
y \in \My
\]
\end{document}

The \DeclareMathOperator command needs two arguments,

  1. New operator name
  2. Tex to be displayed


Reference Guide of operators in LaTex


List of mathematical operators supported in LaTex:

Operator Render in LaTex
\arcsin $$ \arcsin $$
\arctan $$ \arctan $$
\arg $$ \arg $$
\cos $$ \cos $$
\cosh $$ \cosh $$
\cot $$ \cot $$
\coth $$ \coth $$
\csc $$ \csc $$
\deg $$ \deg $$
\det $$ \det $$
\dim $$ \dim $$
\exp $$ \exp $$
\gcd $$ \gcd $$
\hom $$ \hom $$
\ker $$ \ker $$
\lg $$ \lg $$
\lim $$ \lim $$
\liminf $$ \liminf $$
\limsup $$ \limsup $$
\ln $$ \ln $$
\log $$ \log $$
\max $$ \max $$
\min $$ \min $$
\Pr $$ \Pr $$
\sec $$ \sec $$
\sin $$ \sin $$
\sinh $$ \sinh $$
\sup $$ \sup $$
\tan $$ \tan $$
\tanh $$ \tanh $$

Powered by www.resurchify.com