In mathematics , the inverse trigonometric functions are the inverse functions of the trigonometric functions with suitably restricted domains .
The notations sin−1 , cos−1 , etc. are often used for arcsin, arccos, etc., but this convention logically conflicts with the common semantics for expressions like sin2 (x ), which refer to numeric power rather than function composition, and therefore may result in confusion between multiplicative inverse and compositional inverse .
In computer programming languages the functions arcsin, arccos, arctan, are usually called asin, acos, atan. Many programming languages also provide the two-argument atan2 function, which computes the arctangent of y / x given y and x , but with a range of (−π, π] .
Principal values
Since none of the six trigonometric functions are one-to-one, they must be restricted in order to have inverse functions. Therefore the ranges of the inverse functions are subsets of the domains of the original functions
For example, just as the square root function
y
=
x
{\displaystyle y={\sqrt {x}}}
is defined such that y 2 = x , the function y = arcsin(x ) is defined so that sin(y ) = x . There are multiple numbers y such that sin(y ) = x ; for example, sin(0) = 0, but also sin(π) = 0, sin(2π) = 0, etc. It follows that the arcsine function is multivalued : arcsin(0) = 0, but also arcsin(0) = π, arcsin(0) = 2π, etc. When only one value is desired, the function may be restricted to its principal branch . With this restriction, for each x in the domain the expression arcsin(x ) will evaluate only to a single value, called its principal value . These properties apply to all the inverse trigonometric functions.
The principal inverses are listed in the following table.
Name
Usual notation
Definition
Domain of x for real result
Range of usual principal value (radians )
Range of usual principal value (degrees )
arcsine
y = arcsin x
x = sin y
−1 ≤ x ≤ 1
−π/2 ≤ y ≤ π/2
−90° ≤ y ≤ 90°
arccosine
y = arccos x
x = cos y
−1 ≤ x ≤ 1
0 ≤ y ≤ π
0° ≤ y ≤ 180°
arctangent
y = arctan x
x = tan y
all real numbers
−π/2 < y < π/2
−90° < y < 90°
arccotangent
y = arccot x
x = cot y
all real numbers
0 < y < π
0° < y < 180°
arcsecant
y = arcsec x
x = sec y
x ≤ −1 or 1 ≤ x
0 ≤ y < π/2 or π/2 < y ≤ π
0° ≤ y < 90° or 90° < y ≤ 180°
arccosecant
y = arccsc x
x = csc y
x ≤ −1 or 1 ≤ x
−π/2 ≤ y < 0 or 0 < y ≤ π/2
-90° ≤ y < 0° or 0° < y ≤ 90°
If x is allowed to be a complex number , then the range of y applies only to its real part.
Relationships among the inverse trigonometric functions
The usual principal values of the arcsin(x ) (red) and arccos(x ) (blue) functions graphed on the cartesian plane.
The usual principal values of the arctan(x ) and arccot(x ) functions graphed on the cartesian plane.
Principal values of the arcsec(x ) and arccsc(x ) functions graphed on the cartesian plane.
Complementary angles:
arccos
x
=
π
2
−
arcsin
x
{\displaystyle \arccos x={\frac {\pi }{2}}-\arcsin x}
arccot
x
=
π
2
−
arctan
x
{\displaystyle \operatorname {arccot} x={\frac {\pi }{2}}-\arctan x}
arccsc
x
=
π
2
−
arcsec
x
{\displaystyle \operatorname {arccsc} x={\frac {\pi }{2}}-\operatorname {arcsec} x}
Negative arguments:
arcsin
(
−
x
)
=
−
arcsin
x
{\displaystyle \arcsin(-x)=-\arcsin x\!}
arccos
(
−
x
)
=
π
−
arccos
x
{\displaystyle \arccos(-x)=\pi -\arccos x\!}
arctan
(
−
x
)
=
−
arctan
x
{\displaystyle \arctan(-x)=-\arctan x\!}
arccot
(
−
x
)
=
π
−
arccot
x
{\displaystyle \operatorname {arccot}(-x)=\pi -\operatorname {arccot} x\!}
arcsec
(
−
x
)
=
π
−
arcsec
x
{\displaystyle \operatorname {arcsec}(-x)=\pi -\operatorname {arcsec} x\!}
arccsc
(
−
x
)
=
−
arccsc
x
{\displaystyle \operatorname {arccsc}(-x)=-\operatorname {arccsc} x\!}
Reciprocal arguments:
arccos
(
1
/
x
)
=
arcsec
x
{\displaystyle \arccos(1/x)\,=\operatorname {arcsec} x\,}
arcsin
(
1
/
x
)
=
arccsc
x
{\displaystyle \arcsin(1/x)\,=\operatorname {arccsc} x\,}
arctan
(
1
/
x
)
=
1
2
π
−
arctan
x
=
arccot
x
,
if
x
>
0
{\displaystyle \arctan(1/x)={\tfrac {1}{2}}\pi -\arctan x=\operatorname {arccot} x,{\text{ if }}x>0\,}
arctan
(
1
/
x
)
=
−
1
2
π
−
arctan
x
=
−
π
+
arccot
x
,
if
x
<
0
{\displaystyle \arctan(1/x)=-{\tfrac {1}{2}}\pi -\arctan x=-\pi +\operatorname {arccot} x,{\text{ if }}x<0\,}
arccot
(
1
/
x
)
=
1
2
π
−
arccot
x
=
arctan
x
,
if
x
>
0
{\displaystyle \operatorname {arccot}(1/x)={\tfrac {1}{2}}\pi -\operatorname {arccot} x=\arctan x,{\text{ if }}x>0\,}
arccot
(
1
/
x
)
=
3
2
π
−
arccot
x
=
π
+
arctan
x
,
if
x
<
0
{\displaystyle \operatorname {arccot}(1/x)={\tfrac {3}{2}}\pi -\operatorname {arccot} x=\pi +\arctan x,{\text{ if }}x<0\,}
arcsec
(
1
/
x
)
=
arccos
x
{\displaystyle \operatorname {arcsec}(1/x)=\arccos x\,}
arccsc
(
1
/
x
)
=
arcsin
x
{\displaystyle \operatorname {arccsc}(1/x)=\arcsin x\,}
If you only have a fragment of a sine table:
arccos
x
=
arcsin
1
−
x
2
,
if
0
≤
x
≤
1
{\displaystyle \arccos x=\arcsin {\sqrt {1-x^{2}}},{\text{ if }}0\leq x\leq 1}
arctan
x
=
arcsin
x
x
2
+
1
{\displaystyle \arctan x=\arcsin {\frac {x}{\sqrt {x^{2}+1}}}}
Whenever the square root of a complex number is used here, we choose the root with the positive real part (or positive imaginary part if the square was negative real).
From the half-angle formula
tan
θ
2
=
sin
θ
1
+
cos
θ
{\displaystyle \tan {\frac {\theta }{2}}={\frac {\sin \theta }{1+\cos \theta }}}
, we get:
arcsin
x
=
2
arctan
x
1
+
1
−
x
2
{\displaystyle \arcsin x=2\arctan {\frac {x}{1+{\sqrt {1-x^{2}}}}}}
arccos
x
=
2
arctan
1
−
x
2
1
+
x
,
if
−
1
<
x
≤
+
1
{\displaystyle \arccos x=2\arctan {\frac {\sqrt {1-x^{2}}}{1+x}},{\text{ if }}-1<x\leq +1}
arctan
x
=
2
arctan
x
1
+
1
+
x
2
{\displaystyle \arctan x=2\arctan {\frac {x}{1+{\sqrt {1+x^{2}}}}}}
Relationships between trigonometric functions and inverse trigonometric functions
sin
(
arccos
x
)
=
cos
(
arcsin
x
)
=
1
−
x
2
{\displaystyle \sin(\arccos x)=\cos(\arcsin x)={\sqrt {1-x^{2}}}}
sin
(
arctan
x
)
=
x
1
+
x
2
{\displaystyle \sin(\arctan x)={\frac {x}{\sqrt {1+x^{2}}}}}
cos
(
arctan
x
)
=
1
1
+
x
2
{\displaystyle \cos(\arctan x)={\frac {1}{\sqrt {1+x^{2}}}}}
tan
(
arcsin
x
)
=
x
1
−
x
2
{\displaystyle \tan(\arcsin x)={\frac {x}{\sqrt {1-x^{2}}}}}
tan
(
arccos
x
)
=
1
−
x
2
x
{\displaystyle \tan(\arccos x)={\frac {\sqrt {1-x^{2}}}{x}}}
General solutions
Each of the trigonometric functions is periodic in the real part of its argument, running through all its values twice in each interval of 2π. Sine and cosecant begin their period at 2πk − π/2 (where k is an integer), finish it at 2πk + π/2, and then reverse themselves over 2πk + π/2 to 2πk + 3π/2. Cosine and secant begin their period at 2πk , finish it at 2πk + π, and then reverse themselves over 2πk + π to 2πk + 2π. Tangent begins its period at 2πk − π/2, finishes it at 2πk + π/2, and then repeats it (forward) over 2πk + π/2 to 2πk + 3π/2. Cotangent begins its period at 2πk , finishes it at 2πk + π, and then repeats it (forward) over 2πk + π to 2πk + 2π.
This periodicity is reflected in the general inverses where k is some integer:
sin
(
y
)
=
x
⇔
y
=
arcsin
(
x
)
+
2
k
π
or
y
=
π
−
arcsin
(
x
)
+
2
k
π
{\displaystyle \sin(y)=x\ \Leftrightarrow \ y=\arcsin(x)+2k\pi {\text{ or }}y=\pi -\arcsin(x)+2k\pi }
cos
(
y
)
=
x
⇔
y
=
arccos
(
x
)
+
2
k
π
or
y
=
2
π
−
arccos
(
x
)
+
2
k
π
{\displaystyle \cos(y)=x\ \Leftrightarrow \ y=\arccos(x)+2k\pi {\text{ or }}y=2\pi -\arccos(x)+2k\pi }
tan
(
y
)
=
x
⇔
y
=
arctan
(
x
)
+
k
π
{\displaystyle \tan(y)=x\ \Leftrightarrow \ y=\arctan(x)+k\pi }
cot
(
y
)
=
x
⇔
y
=
arccot
(
x
)
+
k
π
{\displaystyle \cot(y)=x\ \Leftrightarrow \ y=\operatorname {arccot}(x)+k\pi }
sec
(
y
)
=
x
⇔
y
=
arcsec
(
x
)
+
2
k
π
or
y
=
2
π
−
arcsec
(
x
)
+
2
k
π
{\displaystyle \sec(y)=x\ \Leftrightarrow \ y=\operatorname {arcsec}(x)+2k\pi {\text{ or }}y=2\pi -\operatorname {arcsec}(x)+2k\pi }
csc
(
y
)
=
x
⇔
y
=
arccsc
(
x
)
+
2
k
π
or
y
=
π
−
arccsc
(
x
)
+
2
k
π
{\displaystyle \csc(y)=x\ \Leftrightarrow \ y=\operatorname {arccsc}(x)+2k\pi {\text{ or }}y=\pi -\operatorname {arccsc}(x)+2k\pi }
Derivatives of inverse trigonometric functions
Simple derivatives for real and complex values of x are as follows:
d
d
x
arcsin
x
=
1
1
−
x
2
d
d
x
arccos
x
=
−
1
1
−
x
2
d
d
x
arctan
x
=
1
1
+
x
2
d
d
x
arccot
x
=
−
1
1
+
x
2
d
d
x
arcsec
x
=
1
x
x
2
−
1
d
d
x
arccsc
x
=
−
1
x
x
2
−
1
{\displaystyle {\begin{aligned}{\frac {d}{dx}}\arcsin x&{}={\frac {1}{\sqrt {1-x^{2}}}}\\{\frac {d}{dx}}\arccos x&{}={\frac {-1}{\sqrt {1-x^{2}}}}\\{\frac {d}{dx}}\arctan x&{}={\frac {1}{1+x^{2}}}\\{\frac {d}{dx}}\operatorname {arccot} x&{}={\frac {-1}{1+x^{2}}}\\{\frac {d}{dx}}\operatorname {arcsec} x&{}={\frac {1}{x\,{\sqrt {x^{2}-1}}}}\\{\frac {d}{dx}}\operatorname {arccsc} x&{}={\frac {-1}{x\,{\sqrt {x^{2}-1}}}}\end{aligned}}}
Only for real values of x :
d
d
x
arcsec
x
=
1
|
x
|
x
2
−
1
;
|
x
|
>
1
d
d
x
arccsc
x
=
−
1
|
x
|
x
2
−
1
;
|
x
|
>
1
{\displaystyle {\begin{aligned}{\frac {d}{dx}}\operatorname {arcsec} x&{}={\frac {1}{|x|\,{\sqrt {x^{2}-1}}}};\qquad |x|>1\\{\frac {d}{dx}}\operatorname {arccsc} x&{}={\frac {-1}{|x|\,{\sqrt {x^{2}-1}}}};\qquad |x|>1\end{aligned}}}
For a sample derivation: if
θ
=
arcsin
x
{\displaystyle \theta =\arcsin x\!}
, we get:
d
arcsin
x
d
x
=
d
θ
d
sin
θ
=
1
cos
θ
=
1
1
−
sin
2
θ
=
1
1
−
x
2
{\displaystyle {\frac {d\arcsin x}{dx}}={\frac {d\theta }{d\sin \theta }}={\frac {1}{\cos \theta }}={\frac {1}{\sqrt {1-\sin ^{2}\theta }}}={\frac {1}{\sqrt {1-x^{2}}}}}
Expression as definite integrals
Integrating the derivative and fixing the value at one point gives an expression for the inverse trigonometric function as a definite integral:
arcsin
x
=
∫
0
x
1
1
−
z
2
d
z
,
|
x
|
≤
1
arccos
x
=
∫
x
1
1
1
−
z
2
d
z
,
|
x
|
≤
1
arctan
x
=
∫
0
x
1
z
2
+
1
d
z
,
arccot
x
=
∫
x
∞
1
z
2
+
1
d
z
,
arcsec
x
=
∫
1
x
1
z
z
2
−
1
d
z
,
x
≥
1
arcsec
x
=
π
+
∫
x
−
1
1
z
z
2
−
1
d
z
,
x
≤
−
1
arccsc
x
=
∫
x
∞
1
z
z
2
−
1
d
z
,
x
≥
1
arccsc
x
=
∫
−
∞
x
1
z
z
2
−
1
d
z
,
x
≤
−
1
{\displaystyle {\begin{aligned}\arcsin x&{}=\int _{0}^{x}{\frac {1}{\sqrt {1-z^{2}}}}\,dz,\qquad |x|\leq 1\\\arccos x&{}=\int _{x}^{1}{\frac {1}{\sqrt {1-z^{2}}}}\,dz,\qquad |x|\leq 1\\\arctan x&{}=\int _{0}^{x}{\frac {1}{z^{2}+1}}\,dz,\\\operatorname {arccot} x&{}=\int _{x}^{\infty }{\frac {1}{z^{2}+1}}\,dz,\\\operatorname {arcsec} x&{}=\int _{1}^{x}{\frac {1}{z{\sqrt {z^{2}-1}}}}\,dz,\qquad x\geq 1\\\operatorname {arcsec} x&{}=\pi +\int _{x}^{-1}{\frac {1}{z{\sqrt {z^{2}-1}}}}\,dz,\qquad x\leq -1\\\operatorname {arccsc} x&{}=\int _{x}^{\infty }{\frac {1}{z{\sqrt {z^{2}-1}}}}\,dz,\qquad x\geq 1\\\operatorname {arccsc} x&{}=\int _{-\infty }^{x}{\frac {1}{z{\sqrt {z^{2}-1}}}}\,dz,\qquad x\leq -1\end{aligned}}}
When x equals 1, the integrals with limited domains are improper integrals , but still well-defined.
Infinite series
Like the sine and cosine functions, the inverse trigonometric functions can be calculated using infinite series , as follows:
arcsin
z
=
z
+
(
1
2
)
z
3
3
+
(
1
⋅
3
2
⋅
4
)
z
5
5
+
(
1
⋅
3
⋅
5
2
⋅
4
⋅
6
)
z
7
7
+
⋯
=
∑
n
=
0
∞
(
(
2
n
)
!
2
2
n
(
n
!
)
2
)
z
2
n
+
1
(
2
n
+
1
)
;
|
z
|
≤
1
{\displaystyle {\begin{aligned}\arcsin z&{}=z+\left({\frac {1}{2}}\right){\frac {z^{3}}{3}}+\left({\frac {1\cdot 3}{2\cdot 4}}\right){\frac {z^{5}}{5}}+\left({\frac {1\cdot 3\cdot 5}{2\cdot 4\cdot 6}}\right){\frac {z^{7}}{7}}+\cdots \\&{}=\sum _{n=0}^{\infty }\left({\frac {(2n)!}{2^{2n}(n!)^{2}}}\right){\frac {z^{2n+1}}{(2n+1)}};\qquad |z|\leq 1\end{aligned}}}
arccos
z
=
π
2
−
arcsin
z
=
π
2
−
(
z
+
(
1
2
)
z
3
3
+
(
1
⋅
3
2
⋅
4
)
z
5
5
+
(
1
⋅
3
⋅
5
2
⋅
4
⋅
6
)
z
7
7
+
⋯
)
=
π
2
−
∑
n
=
0
∞
(
(
2
n
)
!
2
2
n
(
n
!
)
2
)
z
2
n
+
1
(
2
n
+
1
)
;
|
z
|
≤
1
{\displaystyle {\begin{aligned}\arccos z&{}={\frac {\pi }{2}}-\arcsin z\\&{}={\frac {\pi }{2}}-(z+\left({\frac {1}{2}}\right){\frac {z^{3}}{3}}+\left({\frac {1\cdot 3}{2\cdot 4}}\right){\frac {z^{5}}{5}}+\left({\frac {1\cdot 3\cdot 5}{2\cdot 4\cdot 6}}\right){\frac {z^{7}}{7}}+\cdots )\\&{}={\frac {\pi }{2}}-\sum _{n=0}^{\infty }\left({\frac {(2n)!}{2^{2n}(n!)^{2}}}\right){\frac {z^{2n+1}}{(2n+1)}};\qquad |z|\leq 1\end{aligned}}}
arctan
z
=
z
−
z
3
3
+
z
5
5
−
z
7
7
+
⋯
=
∑
n
=
0
∞
(
−
1
)
n
z
2
n
+
1
2
n
+
1
;
|
z
|
≤
1
z
≠
i
,
−
i
{\displaystyle {\begin{aligned}\arctan z&{}=z-{\frac {z^{3}}{3}}+{\frac {z^{5}}{5}}-{\frac {z^{7}}{7}}+\cdots \\&{}=\sum _{n=0}^{\infty }{\frac {(-1)^{n}z^{2n+1}}{2n+1}};\qquad |z|\leq 1\qquad z\neq i,-i\end{aligned}}}
arccot
z
=
π
2
−
arctan
z
=
π
2
−
(
z
−
z
3
3
+
z
5
5
−
z
7
7
+
⋯
)
=
π
2
−
∑
n
=
0
∞
(
−
1
)
n
z
2
n
+
1
2
n
+
1
;
|
z
|
≤
1
z
≠
i
,
−
i
{\displaystyle {\begin{aligned}\operatorname {arccot} z&{}={\frac {\pi }{2}}-\arctan z\\&{}={\frac {\pi }{2}}-(z-{\frac {z^{3}}{3}}+{\frac {z^{5}}{5}}-{\frac {z^{7}}{7}}+\cdots )\\&{}={\frac {\pi }{2}}-\sum _{n=0}^{\infty }{\frac {(-1)^{n}z^{2n+1}}{2n+1}};\qquad |z|\leq 1\qquad z\neq i,-i\end{aligned}}}
arcsec
z
=
arccos
(
1
/
z
)
=
π
2
−
(
z
−
1
+
(
1
2
)
z
−
3
3
+
(
1
⋅
3
2
⋅
4
)
z
−
5
5
+
(
1
⋅
3
⋅
5
2
⋅
4
⋅
6
)
z
−
7
7
+
⋯
)
=
π
2
−
∑
n
=
0
∞
(
(
2
n
)
!
2
2
n
(
n
!
)
2
)
z
−
(
2
n
+
1
)
(
2
n
+
1
)
;
|
z
|
≥
1
{\displaystyle {\begin{aligned}\operatorname {arcsec} z&{}=\arccos {(1/z)}\\&{}={\frac {\pi }{2}}-(z^{-1}+\left({\frac {1}{2}}\right){\frac {z^{-3}}{3}}+\left({\frac {1\cdot 3}{2\cdot 4}}\right){\frac {z^{-5}}{5}}+\left({\frac {1\cdot 3\cdot 5}{2\cdot 4\cdot 6}}\right){\frac {z^{-7}}{7}}+\cdots )\\&{}={\frac {\pi }{2}}-\sum _{n=0}^{\infty }\left({\frac {(2n)!}{2^{2n}(n!)^{2}}}\right){\frac {z^{-(2n+1)}}{(2n+1)}};\qquad \left|z\right|\geq 1\end{aligned}}}
arccsc
z
=
arcsin
(
1
/
z
)
=
z
−
1
+
(
1
2
)
z
−
3
3
+
(
1
⋅
3
2
⋅
4
)
z
−
5
5
+
(
1
⋅
3
⋅
5
2
⋅
4
⋅
6
)
z
−
7
7
+
⋯
=
∑
n
=
0
∞
(
(
2
n
)
!
2
2
n
(
n
!
)
2
)
z
−
(
2
n
+
1
)
2
n
+
1
;
|
z
|
≥
1
{\displaystyle {\begin{aligned}\operatorname {arccsc} z&{}=\arcsin {(1/z)}\\&{}=z^{-1}+\left({\frac {1}{2}}\right){\frac {z^{-3}}{3}}+\left({\frac {1\cdot 3}{2\cdot 4}}\right){\frac {z^{-5}}{5}}+\left({\frac {1\cdot 3\cdot 5}{2\cdot 4\cdot 6}}\right){\frac {z^{-7}}{7}}+\cdots \\&{}=\sum _{n=0}^{\infty }\left({\frac {(2n)!}{2^{2n}(n!)^{2}}}\right){\frac {z^{-(2n+1)}}{2n+1}};\qquad \left|z\right|\geq 1\end{aligned}}}
Leonhard Euler found a more efficient series for the arctangent, which is:
arctan
z
=
z
1
+
z
2
∑
n
=
0
∞
∏
k
=
1
n
2
k
z
2
(
2
k
+
1
)
(
1
+
z
2
)
.
{\displaystyle \arctan z={\frac {z}{1+z^{2}}}\sum _{n=0}^{\infty }\prod _{k=1}^{n}{\frac {2kz^{2}}{(2k+1)(1+z^{2})}}.}
(Notice that the term in the sum for n = 0 is the empty product which is 1.)
Alternatively, this can be expressed:
arctan
z
=
∑
n
=
0
∞
2
2
n
(
n
!
)
2
(
2
n
+
1
)
!
z
2
n
+
1
(
1
+
z
2
)
n
+
1
{\displaystyle \arctan z=\sum _{n=0}^{\infty }{\frac {2^{\,2n}\,(n!)^{2}}{\left(2n+1\right)!}}\;{\frac {z^{\,2n+1}}{\left(1+z^{2}\right)^{n+1}}}}
Continued fractions for arctangent
Two alternatives to the power series for arctangent are these generalized continued fractions :
arctan
z
=
z
1
+
(
1
z
)
2
3
−
1
z
2
+
(
3
z
)
2
5
−
3
z
2
+
(
5
z
)
2
7
−
5
z
2
+
(
7
z
)
2
9
−
7
z
2
+
⋱
=
z
1
+
(
1
z
)
2
3
+
(
2
z
)
2
5
+
(
3
z
)
2
7
+
(
4
z
)
2
9
+
⋱
{\displaystyle \arctan z={\cfrac {z}{1+{\cfrac {(1z)^{2}}{3-1z^{2}+{\cfrac {(3z)^{2}}{5-3z^{2}+{\cfrac {(5z)^{2}}{7-5z^{2}+{\cfrac {(7z)^{2}}{9-7z^{2}+\ddots }}}}}}}}}}={\cfrac {z}{1+{\cfrac {(1z)^{2}}{3+{\cfrac {(2z)^{2}}{5+{\cfrac {(3z)^{2}}{7+{\cfrac {(4z)^{2}}{9+\ddots \,}}}}}}}}}}\,}
The second of these is valid in the cut complex plane. There are two cuts, from −i to the point at infinity, going down the imaginary axis, and from i to the point at infinity, going up the same axis. It works best for real numbers running from −1 to 1. The partial denominators are the odd natural numbers, and the partial numerators (after the first) are just (nz )2 , with each perfect square appearing once. The first was developed by Leonhard Euler ; the second by Carl Friedrich Gauss utilizing the Gaussian hypergeometric series .
Indefinite integrals of inverse trigonometric functions
For real and complex values of x :
∫
arcsin
x
d
x
=
x
arcsin
x
+
1
−
x
2
+
C
∫
arccos
x
d
x
=
x
arccos
x
−
1
−
x
2
+
C
∫
arctan
x
d
x
=
x
arctan
x
−
1
2
ln
(
1
+
x
2
)
+
C
∫
arccot
x
d
x
=
x
arccot
x
+
1
2
ln
(
1
+
x
2
)
+
C
∫
arcsec
x
d
x
=
x
arcsec
x
−
ln
(
x
(
1
+
x
2
−
1
x
2
)
)
+
C
∫
arccsc
x
d
x
=
x
arccsc
x
+
ln
(
x
(
1
+
x
2
−
1
x
2
)
)
+
C
{\displaystyle {\begin{aligned}\int \arcsin x\,dx&{}=x\,\arcsin x+{\sqrt {1-x^{2}}}+C\\\int \arccos x\,dx&{}=x\,\arccos x-{\sqrt {1-x^{2}}}+C\\\int \arctan x\,dx&{}=x\,\arctan x-{\frac {1}{2}}\ln \left(1+x^{2}\right)+C\\\int \operatorname {arccot} x\,dx&{}=x\,\operatorname {arccot} x+{\frac {1}{2}}\ln \left(1+x^{2}\right)+C\\\int \operatorname {arcsec} x\,dx&{}=x\,\operatorname {arcsec} x-\ln \left(x\left(1+{\sqrt {{x^{2}-1} \over x^{2}}}\right)\right)+C\\\int \operatorname {arccsc} x\,dx&{}=x\,\operatorname {arccsc} x+\ln \left(x\left(1+{\sqrt {{x^{2}-1} \over x^{2}}}\right)\right)+C\end{aligned}}}
For real x ≥ 1:
∫
arcsec
x
d
x
=
x
arcsec
x
−
ln
(
x
+
x
2
−
1
)
+
C
∫
arccsc
x
d
x
=
x
arccsc
x
+
ln
(
x
+
x
2
−
1
)
+
C
{\displaystyle {\begin{aligned}\int \operatorname {arcsec} x\,dx&{}=x\,\operatorname {arcsec} x-\ln \left(x+{\sqrt {x^{2}-1}}\right)+C\\\int \operatorname {arccsc} x\,dx&{}=x\,\operatorname {arccsc} x+\ln \left(x+{\sqrt {x^{2}-1}}\right)+C\end{aligned}}}
All of these can be derived using integration by parts and the simple derivative forms shown above.
Example
Using
∫
u
d
v
=
u
v
−
∫
v
d
u
{\displaystyle \int u\,\mathrm {d} v=uv-\int v\,\mathrm {d} u}
, set
u
=
arcsin
x
d
v
=
d
x
d
u
=
d
x
1
−
x
2
v
=
x
{\displaystyle {\begin{aligned}u&{}=&\arcsin x&\quad \quad \mathrm {d} v=\mathrm {d} x\\\mathrm {d} u&{}=&{\frac {\mathrm {d} x}{\sqrt {1-x^{2}}}}&\quad \quad {}v=x\end{aligned}}}
Then
∫
arcsin
(
x
)
d
x
=
x
arcsin
x
−
∫
x
1
−
x
2
d
x
{\displaystyle \int \arcsin(x)\,\mathrm {d} x=x\arcsin x-\int {\frac {x}{\sqrt {1-x^{2}}}}\,\mathrm {d} x}
Substitute
k
=
1
−
x
2
.
{\displaystyle k=1-x^{2}.\,}
Then
d
k
=
−
2
x
d
x
{\displaystyle \mathrm {d} k=-2x\,\mathrm {d} x}
and
∫
x
1
−
x
2
d
x
=
−
1
2
∫
d
k
k
=
−
k
{\displaystyle \int {\frac {x}{\sqrt {1-x^{2}}}}\,\mathrm {d} x=-{\frac {1}{2}}\int {\frac {\mathrm {d} k}{\sqrt {k}}}=-{\sqrt {k}}}
Back-substitute for x to yield
∫
arcsin
(
x
)
d
x
=
x
arcsin
x
+
1
−
x
2
+
C
{\displaystyle \int \arcsin(x)\,\mathrm {d} x=x\arcsin x+{\sqrt {1-x^{2}}}+C}
Two-argument variant of arctangent
The two-argument atan2 function computes the arctangent of y / x given y and x , but with a range of (−π, π]. In other words, atan2(y , x ) is the angle between the positive x -axis of a plane and the point (x , y ) on it, with positive sign for counter-clockwise angles (upper half-plane, y > 0), and negative sign for clockwise angles (lower half-plane, y < 0). It was first introduced in many computer programming languages, but it is now also common in other fields of science and engineering.
In terms of the standard arctan function, that is with range of (−π/2, π/2), it can be expressed as follows:
atan2
(
y
,
x
)
=
{
arctan
(
y
x
)
x
>
0
π
+
arctan
(
y
x
)
y
≥
0
,
x
<
0
−
π
+
arctan
(
y
x
)
y
<
0
,
x
<
0
π
2
y
>
0
,
x
=
0
−
π
2
y
<
0
,
x
=
0
undefined
y
=
0
,
x
=
0
{\displaystyle \operatorname {atan2} (y,x)={\begin{cases}\arctan({\frac {y}{x}})&\qquad x>0\\\pi +\arctan({\frac {y}{x}})&\qquad y\geq 0,x<0\\-\pi +\arctan({\frac {y}{x}})&\qquad y<0,x<0\\{\frac {\pi }{2}}&\qquad y>0,x=0\\-{\frac {\pi }{2}}&\qquad y<0,x=0\\{\text{undefined}}&\qquad y=0,x=0\end{cases}}}
It also equals the principal value of the argument of the complex number x + iy .
This function may also be defined using the tangent half-angle formulae as follows:
atan2
(
y
,
x
)
=
2
arctan
y
x
2
+
y
2
+
x
{\displaystyle \operatorname {atan2} (y,x)=2\arctan {\frac {y}{{\sqrt {x^{2}+y^{2}}}+x}}}
provided that either x > 0 or y ≠ 0. However this fails if given x ≤ 0 and y = 0 so the expression is unsuitable for computational use.
The above argument order (y , x ) seems to be the most common, and in particular is used in ISO standards such as the C programming language , but a few authors may use the opposite convention (x , y ) so some caution is warranted. These variations are detailed at Atan2 .
These functions may also be expressed using complex logarithms . This extends in a natural fashion their domain to the complex plane .
arcsin
x
=
−
i
ln
(
i
x
+
1
−
x
2
)
=
arccsc
1
x
arccos
x
=
−
i
ln
(
x
+
i
1
−
x
2
)
=
π
2
+
i
ln
(
i
x
+
1
−
x
2
)
=
π
2
−
arcsin
x
=
arcsec
1
x
arctan
x
=
1
2
i
(
ln
(
1
−
i
x
)
−
ln
(
1
+
i
x
)
)
=
arccot
1
x
arccot
x
=
1
2
i
(
ln
(
1
−
i
x
)
−
ln
(
1
+
i
x
)
)
=
arctan
1
x
arcsec
x
=
−
i
ln
(
i
1
−
1
x
2
+
1
x
)
=
i
ln
(
1
−
1
x
2
+
i
x
)
+
π
2
=
π
2
−
arccsc
x
=
arccos
1
x
arccsc
x
=
−
i
ln
(
1
−
1
x
2
+
i
x
)
=
arcsin
1
x
{\displaystyle {\begin{aligned}\arcsin x&{}=-i\,\ln \left(i\,x+{\sqrt {1-x^{2}}}\right)&{}=\operatorname {arccsc} {\frac {1}{x}}\\[10pt]\arccos x&{}=-i\,\ln \left(x+i\,{\sqrt {1-x^{2}}}\right)={\frac {\pi }{2}}\,+i\ln \left(i\,x+{\sqrt {1-x^{2}}}\right)={\frac {\pi }{2}}-\arcsin x&{}=\operatorname {arcsec} {\frac {1}{x}}\\[10pt]\arctan x&{}={\tfrac {1}{2}}i\left(\ln \left(1-i\,x\right)-\ln \left(1+i\,x\right)\right)&{}=\operatorname {arccot} {\frac {1}{x}}\\[10pt]\operatorname {arccot} x&{}={\tfrac {1}{2}}i\left(\ln \left(1-{\frac {i}{x}}\right)-\ln \left(1+{\frac {i}{x}}\right)\right)&{}=\arctan {\frac {1}{x}}\\[10pt]\operatorname {arcsec} x&{}=-i\,\ln \left(i\,{\sqrt {1-{\frac {1}{x^{2}}}}}+{\frac {1}{x}}\right)=i\,\ln \left({\sqrt {1-{\frac {1}{x^{2}}}}}+{\frac {i}{x}}\right)+{\frac {\pi }{2}}={\frac {\pi }{2}}-\operatorname {arccsc} x&{}=\arccos {\frac {1}{x}}\\[10pt]\operatorname {arccsc} x&{}=-i\,\ln \left({\sqrt {1-{\frac {1}{x^{2}}}}}+{\frac {i}{x}}\right)&{}=\arcsin {\frac {1}{x}}\end{aligned}}}
Elementary proofs of these relations proceed via expansion to exponential forms of the trigonometric functions.
Example proof
arcsin
x
=
θ
{\displaystyle \arcsin x=\theta \,}
e
i
θ
−
e
−
i
θ
2
i
=
x
{\displaystyle {\frac {e^{i\theta }-e^{-i\theta }}{2i}}=x}
(exponential definition of sine )
Let
k
=
e
i
θ
.
{\displaystyle k=e^{i\,\theta }.\,}
Then
k
−
1
k
2
i
=
x
{\displaystyle {\frac {k-{\frac {1}{k}}}{2i}}=x}
k
2
−
2
i
k
x
−
1
=
0
{\displaystyle k^{2}-2\,i\,k\,x-1\,=\,0}
k
=
i
x
±
1
−
x
2
=
e
i
θ
{\displaystyle k=ix\pm {\sqrt {1-x^{2}}}=e^{i\theta }\,}
(the positive branch is chosen)
θ
=
arcsin
x
=
−
i
ln
(
i
x
+
1
−
x
2
)
{\displaystyle \theta =\arcsin x=-i\ln \left(ix+{\sqrt {1-x^{2}}}\right)\,}
Inverse trigonometric functions in the complex plane
arcsin
(
z
)
{\displaystyle \arcsin(z)}
arccos
(
z
)
{\displaystyle \arccos(z)}
arctan
(
z
)
{\displaystyle \arctan(z)}
arccot
(
z
)
{\displaystyle \operatorname {arccot}(z)}
arcsec
(
z
)
{\displaystyle \operatorname {arcsec}(z)}
arccsc
(
z
)
{\displaystyle \operatorname {arccsc}(z)}
arctan
u
+
arctan
v
=
arctan
(
u
+
v
1
−
u
v
)
(
mod
π
)
,
u
v
≠
1
.
{\displaystyle \arctan u+\arctan v=\arctan \left({\frac {u+v}{1-uv}}\right){\pmod {\pi }},\qquad uv\neq 1\,.}
This is derived from the tangent addition formula
tan
(
α
+
β
)
=
tan
α
+
tan
β
1
−
tan
α
tan
β
,
{\displaystyle \tan(\alpha +\beta )={\frac {\tan \alpha +\tan \beta }{1-\tan \alpha \tan \beta }}\,,}
by letting
α
=
arctan
u
,
β
=
arctan
v
.
{\displaystyle \alpha =\arctan u\,,\quad \beta =\arctan v\,.}
Application: finding the angle of a right triangle
A right triangle.
Inverse trigonometric functions are useful when trying to determine the remaining two angles of a right triangle when the lengths of the sides of the triangle are known. Recalling the right-triangle definitions of sine, for example, it follows that
θ
=
arcsin
(
opposite
hypotenuse
)
.
{\displaystyle \theta =\arcsin \left({\frac {\text{opposite}}{\text{hypotenuse}}}\right).}
Often, the hypotenuse is unknown and would need to be calculated before using arcsine or arccosine using the Pythagorean Theorem :
a
2
+
b
2
=
c
2
{\displaystyle a^{2}+b^{2}=c^{2}}
where
c
{\displaystyle c}
is the length of the hypotenuse. Arctangent comes in handy in this situation, as the length of the hypotenuse is not needed.
θ
=
arctan
(
opposite
adjacent
)
.
{\displaystyle \theta =\arctan \left({\frac {\text{opposite}}{\text{adjacent}}}\right).}
For example, suppose a roof drops 8 feet as it runs out 20 feet. The roof makes an angle θ with the horizontal, where θ may be computed as follows:
θ
=
arctan
(
opposite
adjacent
)
=
arctan
(
rise
run
)
=
arctan
(
8
20
)
=
21.8
∘
.
{\displaystyle \theta =\arctan \left({\frac {\text{opposite}}{\text{adjacent}}}\right)=\arctan \left({\frac {\text{rise}}{\text{run}}}\right)=\arctan \left({\frac {8}{20}}\right)=21.8^{\circ }.}
Practical considerations
For angles near 0 and π, arccosine is ill-conditioned and will thus calculate the angle with reduced accuracy in a computer implementation (due to the limited number of digits). Similarly, arcsine is inaccurate for angles near −π/2 and π/2. To achieve full accuracy for all angles, arctangent or atan2 should be used for the implementation.
See also
References
External links