# Asymptotic approximation of the arctangent?

That is, I am looking for an algebraic function $f(x)$ that approximates $\arctan x$ for large values of $x$.

The approximation could be reasonably modest -- perhaps something like

$$\tan (f(x)) = \frac{\pi}{4} + O\left(\frac{1}{x^2}\right).$$

Use the following

$$\arctan(x) + \arctan\left(\frac{1}{x}\right) = \frac{\pi}{2} \Leftrightarrow$$

$$\arctan(x) = \frac{\pi}{2}-\arctan\left(\frac{1}{x}\right)$$

The series for $\arctan(x)$ is

$$\arctan(x)=x-\frac{x^3}{3}+\frac{x^5}{5}-\frac{x^7}{7}+\ldots$$

Now substitute $\frac1x$ to get the result

$$\arctan(x)=\frac{\pi}{2}-\frac{1}{x}+\frac{1}{3x^3}-\frac{1}{5x^5} +\ldots$$

So for large values of $x$

$$\arctan(x)\sim\frac{\pi}{2}$$

which is logical, because $\displaystyle \lim_{x\to\infty}\arctan(x)=\frac{\pi}{2}$.

$$\arctan\left(x\right) ={\pi \over 2}\,{\rm sgn}\left(x\right) - \arctan\left(1 \over x\right) \approx{\pi \over 2}\,{\rm sgn}\left(x\right) - {1 \over x}\,,\qquad \left\vert\,x\,\right\vert \gg 1$$

This approximation converges much faster: $$\arctan(x)=2\sum_{n=1}^{\infty}{\frac{1}{2n-1}\frac{{{a}_{n}}\left(x\right)}{a_{n}^{2}\left(x\right)+b_{n}^{2}\left(x\right)}},$$ where \begin{align} & a_1(x)=2/x,\\ & b_1(x)=1,\\ & a_n(x)=a_{n-1}(x)\,\left(1-4/x^2\right)+4b_{n-1}(x)/x,\\ & b_n(x)=b_{n-1}(x)\,\left(1-4/x^2\right)-4a_{n-1}(x)/x. \end{align} Therefore, by taking the first term only, the following asymptotic approximation can be used: $$\arctan\left(x\right) ={\pi \over 2}\,{\rm sgn}\left(x\right) - \arctan\left(1 \over x\right) \approx \frac{\pi}{2}{\rm sgn}(x)-\frac{4 x}{4 x^2+1}\,,\qquad \left\vert\,x\,\right\vert \gg 1.$$

• +1 Where is the summation for $\arctan x$ from? Nov 16, 2019 at 2:34
• Wikipedia, approximations of pi. Nov 16, 2019 at 2:39
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 3, "wp-katex-eq": 0, "align": 1, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://math.stackexchange.com/questions/982838/asymptotic-approximation-of-the-arctangent", "fetch_time": 1713275644000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2024-18/segments/1712296817095.3/warc/CC-MAIN-20240416124708-20240416154708-00143.warc.gz", "warc_record_offset": 351457976, "warc_record_length": 37109, "token_count": 762, "char_count": 1798, "score": 4.09375, "int_score": 4, "crawl": "CC-MAIN-2024-18", "snapshot_type": "latest", "language": "en", "language_score": 0.5158632397651672, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00062-of-00064.parquet"}