CamteX
All guides

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 = 1
sin2α+cos2α=1\sin^2 \alpha + \cos^2 \alpha = 1

Tangent and a custom operator

\tan x = \frac{\sin x}{\cos x}, \quad \operatorname{sgn} x
tanx=sinxcosx,sgnx\tan x = \frac{\sin x}{\cos x}, \quad \operatorname{sgn} x

Inverse function

\arcsin x
arcsinx\arcsin x

Common mistakes

See also

Don't want to memorize commands?

Draw a formula or paste a screenshot, and CamteX turns it into ready LaTeX.

Try it free