Trigonometric functions (sin, cos, tan) in LaTeX

In this tutorial, I will show you how to write Trigonometric and Inverse trigonometric functions In LaTeX.

All Trigonometric functions commands and outputs:

Name Command Output
sin $\sin$ $\sin$
cos $\cos$ \cos
tan $\tan$ $\tan$
cosec $\csc$ $\csc$
sec $\sec$ $\sec$
cot $\cot$ $\cot$
arcsin $\arcsin$ $\arcsin$
arccos $\arccos$ $\arccos$
arctan $\arctan$ $\arctan$
\documentclass{article}
\begin{document}

  $$ \sin x \quad \cos x \quad \tan x$$
  $$ \sin \theta \quad \cos \theta \quad \tan \theta$$
      
\end{document}

Output:

$$ \sin x \quad \cos x \quad \tan x \sin \theta \quad \cos \theta \quad \tan \theta$$

Inverse trigonometric functions In LaTeX

In order to get Inverse trigonometric functions, you have to use superscripts for example if you want sin-1, then you have to write \sin^{-1}. In this way, you can get all inverse trigonometric functions for all Trigonometric functions.

\documentclass{article}
\begin{document}

  $$ \sin^{-1} x \quad \cos^{-1} x \quad \tan^{-1} x$$
  $$ \sin^{-1} \theta \quad \cos^{-1} \theta \quad \tan^{-1} \theta$$
      
\end{document}

Output:

\sin^{-1} x \quad \cos^{-1} x \quad \tan^{-1} x \sin^{-1} \theta \quad \cos^{-1} \theta \quad \tan^{-1} \theta

 

Leave a Reply

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