Compute the arctangent of any real number — the inverse of the tangent function. Get results in both radians and degrees, visualize the principal branch of y = arctan(x), and explore fundamental properties, real‑world applications, and historical context.
Domain: all real numbers | Range: (-π/2, π/2) (≈ -1.5708 to 1.5708 rad)
The arctangent function, denoted arctan(x) or tan⁻¹(x), is the inverse of the tangent function restricted to the interval (−π/2, π/2). For any real number x, arctan(x) returns the unique angle θ in that open interval whose tangent equals x. This function is essential for converting slopes to angles, solving right triangles, and appears extensively in calculus, physics, and engineering.
For all real x, θ = arctan(x) ⇔ tan(θ) = x and θ ∈ (−π/2, π/2).
The derivative: d/dx arctan(x) = 1/(1+x²). This simple rational derivative makes arctan a favorite in integral calculus (e.g., ∫ dx/(1+x²) = arctan(x) + C).
The arctangent function has a rich history, notably in the development of infinite series for π. In 1671, James Gregory discovered the series arctan(x) = x − x³/3 + x⁵/5 − x⁷/7 + … (for |x| ≤ 1), and later Leibniz used it to derive the famous Leibniz formula for π/4. The notation "arctan" became standard in the 18th century. Today, arctan is fundamental in coordinate transformations (cartesian to polar), signal processing, and in the atan2 function which handles quadrant ambiguity.
Given Cartesian coordinates (x, y), the angle to the positive x-axis is atan2(y, x) = arctan(y/x) with quadrant adjustment. Used in robotics, GPS, and computer graphics to compute headings and orientations.
Arctan is used in phase detection, frequency demodulation, and in the computation of the argument of a complex number. The arctan function also appears in PID controller tuning and system identification.
The arctan function is used as an activation function in neural networks (e.g., arctan activation) and in robust regression (M-estimators). It also appears in the Cauchy distribution's cumulative distribution function.
Math.atan function (IEEE 754 compliant) returning value in radians between -π/2 and π/2.
Our calculator implements double‑precision floating‑point arithmetic, ensuring accuracy to 15 decimal digits. The interactive graph shows the exact point (x₀, arctan(x₀)) on the principal branch, and illustrates the horizontal asymptotes at y = ±π/2.