Inverse trigonometric function
From Wikipedia, the free encyclopedia
In mathematics, the inverse trigonometric functions are the inverse functions of the 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 |
---|---|---|---|---|
arcsine | y = arcsin(x) | x = sin(y) | −1 to +1 | −π/2 ≤ y ≤ π/2 |
arccosine | y = arccos(x) | x = cos(y) | −1 to +1 | 0 ≤ y ≤ π |
arctangent | y = arctan(x) | x = tan(y) | all | −π/2 < y < π/2 |
arccotangent | y = arccot(x) | x = cot(y) | all | 0 < y < π |
arcsecant | y = arcsec(x) | x = sec(y) | −∞ to −1 or 1 to ∞ | 0 ≤ y < π/2 or π/2 < y ≤ π |
arccosecant | y = arccsc(x) | x = csc(y) | −∞ to −1 or 1 to ∞ | −π/2 ≤ y < 0 or 0 < y ≤ π/2 |
If x is allowed to be a complex number, then the range of y applies only to its real part.
The notations sin−1, cos−1, etc are often used for arcsin, arccos, etc, but this notation sometimes causes confusion between (e.g.) arcsin(x) and 1/sin(x).
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 [−π, π].
[edit] Relationships among the inverse trigonometric functions
Reciprocal arguments:
if
if
Complementary angles:
Negative arguments:
If you only have a fragment of a sine table:
if
Notice that 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 , we get:
if
[edit] 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:
- sin y = x if and only if y = arcsin x + 2kπ or y = π − arcsin x + 2kπ for some integer k.
- cos y = x if and only if y = arccos x + 2kπ or y = 2π − arccos x + 2kπ for some integer k.
- tan y = x if and only if y = arctan x + kπ for some integer k.
- cot y = x if and only if y = arccot x + kπ for some integer k.
- sec y = x if and only if y = arcsec x + 2kπ or y = 2π − arcsec x + 2kπ for some integer k.
- csc y = x if and only if y = arccsc x + 2kπ or y = π − arccsc x + 2kπ for some integer k.
[edit] Derivatives of inverse trigonometric functions
Simple derivatives for real values of x are as follows:
For an example derivation, letting , we get:
[edit] 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:
When x equals 1, the integrals with limited domains are improper integrals, but still well-defined.
[edit] Infinite series
Like the sine and cosine functions, the inverse trigonometric functions can be calculated using infinite series, as follows:
Leonhard Euler found a more efficient series for the arctangent, which is:
(Notice that the term in the sum for n= 0 is the empty product which is 1.)
[edit] Continued fraction for arctangent
An alternative to the power series for arctangent is its generalized continued fraction:
This 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. It was developed by Carl Friedrich Gauss, utilizing the hypergeometric series.
[edit] Indefinite integrals of inverse trigonometric functions
These are all easily derived using integration by parts and the simple derivative forms shown above.
[edit] Recommended method of calculation
To calculate arcsine, use:
To calculate arccosine, use:
To calculate arctangent for x near zero, use the continued fraction above. To calculate arctangent for other values of x, use:
To calculate arccotangent, use:
To calculate arcsecant, use:
To calculate arccosecant, use:
[edit] Two argument variant of arctangent
Many computer 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 [ − π,π]. This function may be computed using the tangent half-angle formulae as follows:
provided that either x > 0 or y ≠ 0. However, in practical implementations it is cheaper and more robust to use the signs of x and y to choose the correct range. Assuming arctan(z) returns a value between −π⁄2 and π⁄2 for all real z, we have
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. Also, IEEE floating point implementations must handle exceptional (non-numeric) argument values; FDLIBM (available through netlib) shows how this may be done reliably.
The function atan2 can be implemented in a numerically reliable manner by the CORDIC method. Thus implementations of atan(x) will probably choose to compute actually atan2(x,1).
[edit] Logarithmic forms
These functions may also be expressed using complex logarithms. This extends in a natural fashion their domain to the whole of the complex plane.
Elementary proofs of these relations proceed via expansion to exponential forms of the trigonometric functions.
[edit] Example proof
(exponential definition of sine)
Let
Then
(solve for k)
(the positive branch is chosen)
Q.E.D.
[edit] Practical usage
Inverse trigonometric functions are useful when trying to determine the remaining two angles of a right triangle when you already know the length of the sides of the triangle. Remember the acronym SOHCAHTOA. Using inverse trigonometric functions
Often, the hypotenuse is unknown and would need to be calculated before using arcsin or arccos. Arctan comes in handy in this situation. You can compute the angle of the triangles without knowing the length of the hypotenuse.
For example, you can calculate the slope of your roof line if you know the rise and run of the roof. If your roof drops 8 feet as it runs out 20 feet then your roof is angled θ degrees up from horizontal, where θ may be computed as follows.
[edit] See also
- Trigonometric function
- Tangent half-angle formula
- List of trigonometric identities
- Complex logarithm
- Square root
[edit] External links
- Eric W. Weisstein, Inverse Trigonometric Functions at MathWorld.
- http://mathworld.wolfram.com/InverseTangent.html