Trigonometric functions in LaTeX
Write function names with \sin, \cos and \tan. They are set upright with the right spacing before the argument. For a function that has no built-in command, such as sgn or arcsinh in older setups, use \operatorname.
Pythagorean identity
\sin^2 \alpha + \cos^2 \alpha = 1Tangent and a custom operator
\tan x = \frac{\sin x}{\cos x}, \quad \operatorname{sgn} xInverse function
\arcsin xCommon mistakes
- sin x without a backslash: it is set in italics as the product s·i·n·x.
- \sin(x)^2 instead of \sin^2 x: the power attaches to the bracket, not to the function.
See also
Don't want to memorize commands?
Draw a formula or paste a screenshot, and CamteX turns it into ready LaTeX.