trigonometric function

A trigonometric function is a function on the real numbers which relates an angle of a right triangle to a ratio of two side lengths.

\documentclass[tikz,margin={2cm 0cm}]{standalone}
\usepackage{tkz-euclide}
%
\definecolor{oppositecolor}{HTML}{FB464C}
\definecolor{adjacentcolor}{HTML}{45CF6E}
\definecolor{hypotenusecolor}{HTML}{53DFDD}
%
\begin{document}
\begin{tikzpicture}
    \tkzDefPoint(0,0){O}
    \tkzDefPoint(40:3){A}
    % \tkzDrawLine(O,A)
    %
    \tkzCalcLength(O,A)\tkzGetLength{radius}
    \tkzDefPoints{\radius/0/I}
    \tkzDefLine[perpendicular=through A](I,O) \tkzGetPoint{X_t}
    \tkzInterLL(O,I)(X_t,A) \tkzGetPoint{X}
	%
    \tkzPicAngle["$\theta$",draw=black,thin,angle radius=1cm](X,O,A)
    \tkzPicAngle["$\phi$",draw=black,thin,angle radius=0.8cm](O,A,X)
    \tkzMarkRightAngle(A,X,O)
	%
    \tkzDrawSegment[oppositecolor, thick](X,A)
        \tkzLabelSegment[right](X,A){\rotatebox{90}{opposite}}
    \tkzDrawSegment[adjacentcolor, thick](O,X)
        \tkzLabelSegment[below](O,X){adjacent}
     \tkzDrawSegment[hypotenusecolor, thick](O,A)
        \tkzLabelSegment[above=-2.5ex, pos=0.45](O,A){\rotatebox{40}{hypotenuse}}
    %
    \tkzDrawPoints(O,A,X)
\end{tikzpicture}
\end{document}

There are 3P2=6 such functions:

sin(θ)=oppositehypotenusecsc(θ)=hypotenuseopposite=1sinθcos(θ)=adjacenthypotenusesec(θ)=hypotenuseadjacent=1cosθtan(θ)=oppositeadjacentcot(θ)=adjacentopposite=1tanθ

The elementary trig functions are the sine function, cosine function, and tangent function.
Their reciprocals are the cosecant function, secant function, and cotangent function, respectively.


The tangent identities are

tan(θ)=sin(θ)cos(θ)=sec(θ)csc(θ)cot(θ)=cos(θ)sin(θ)=csc(θ)sec(θ)

Each cofunction can be specified via the complementary angle (ϕ=π2θ) through the cofunction identities:

sin(ϕ)=adjacenthypotenuse=cos(θ)cos(ϕ)=oppositehypotenuse=sin(θ)sec(ϕ)=hypotenuseopposite=csc(θ)csc(ϕ)=hypotenuseadjacent=sec(θ)tan(ϕ)=adjacentopposite=cot(θ)cot(ϕ)=oppositeadjacent=tan(θ)

From the Pythagorean theorem, we derive the Pythagorean identities:

sin2θ+cos2θ=1tan2θ+1=sec2θcot2θ+1=csc2θ

which can be visualized

\documentclass[tikz,margin={2cm 0cm}]{standalone}
\usepackage{tkz-euclide}
%
\definecolor{obspink}{HTML}{FB99CD}
\definecolor{obsred}{HTML}{FB464C}
\definecolor{obsorange}{HTML}{E9973F}
\definecolor{obsyellow}{HTML}{E0DE71}
\definecolor{obsgreen}{HTML}{45CF6E}
\definecolor{obsteal}{HTML}{53DFDD}
\definecolor{obspurple}{HTML}{8A5CF5}
%
\begin{document}
\begin{tikzpicture}
    \tkzDefPoint(0,0){O}
    \tkzDefPoint(40:3){A}
    \tkzDrawLine(O,A)
    %
    \tkzCalcLength(O,A)\tkzGetLength{radius}
    \tkzDefPoints{\radius/0/I, 0/\radius/J}
    \tkzDrawArc[delta=10](O,I)(J)
    \tkzDrawLines(O,I O,J)
	%
    \tkzDefLine[perpendicular=through A](I,O) \tkzGetPoint{X_t}
    \tkzDefLine[perpendicular=through A](O,J) \tkzGetPoint{Y_t}
    %
    \tkzInterLL(O,I)(X_t,A) \tkzGetPoint{X}
    \tkzInterLL(O,J)(Y_t,A) \tkzGetPoint{Y}
	%
    \tkzPicAngle["$\theta$",draw=black,thin,angle radius=1cm](X,O,A)
	%
    \tkzDefLine[tangent at=A](O) \tkzGetPoint{B}
    \tkzInterLL(A,B)(O,J) \tkzGetPoint{C}
    \tkzInterLL(A,B)(O,I) \tkzGetPoint{D}
	%
    \tkzDrawSegment[obsred,thick](X,A)
        \tkzLabelSegment[left,pos=0.4](X,A){$\sin\theta$}
    \tkzDrawSegment[obsgreen,thick](Y,A)
        \tkzLabelSegment[above](Y,A){$\cos\theta$}
    \tkzDrawSegment[obsyellow,thick](O,D)
        \tkzLabelSegment[pos=0.4](O,D){$\sec\theta$}
    \tkzDrawSegment[obspurple,thick](O,C)
        \tkzLabelSegment[left](O,C){$\csc\theta$}
    \tkzDrawSegment[obsteal,thick](A,D)
        \tkzLabelSegment[above right](A,D){$\tan\theta$}
    \tkzDrawSegment[obsorange,thick](C,A)
        \tkzLabelSegment[above right](C,A){$\cot\theta$}
    \tkzDrawSegment[thick](O,A)
        \tkzLabelSegment[above left](O,A){$1$}
    %
    % \tkzDrawPoints(O,A,C,D,X,Y)
\end{tikzpicture}
\end{document}

The cosine and secant functions are even functions, and the sine, cosecant, tangent, and cotangent functions are odd functions. This is expressed by the even/odd identities:

sin(θ)=sin(θ)cos(θ)=cos(θ)sec(θ)=sec(θ)csc(θ)=csc(θ)tan(θ)=tan(θ)cot(θ)=cot(θ)

The double angle identities are

sin(2θ)=2sinθcosθcos(2θ)=cos2θsin2θ=2cos2θ1=12sin2θtan(2θ)=2tanθ1tan2θ

The half angle identities are

sin(θ2)=±1cosθ2cos(θ2)=±1+cosθ2tan(θ2)=±1cosθ1+cosθ

The sum/difference identities are

sin(α±β)=sinαcosβ±cosαsinβcos(α±β)=cosαcosβsinαsinβtan(α±β)=tanα±tanβ1tanαtanβ

See also
law of sines, law of cosines, law of tangents

Powered by Forestry.md