Zulip Chat Archive

Stream: Is there code for X?

Topic: iterated derivatives of arctan


Kim Morrison (Aug 28 2025 at 13:10):

In case anyone is looking for a project, I'd love to have the iterated derivatives of arctan available.

Something like:


dndxn(arctan(x))=(1)n1(n1)!sinn(θ)sin(nθ)\frac{d^n}{dx^n}(\arctan(x)) = (-1)^{n-1}(n-1)! \sin^n(\theta) \sin(n\theta)

where

θ=arctan(1x)\theta = \arctan\left(\frac{1}{x}\right)


ddx(arctan(x))=11+x2=12i(1xi1x+i)\frac{d}{dx}(\arctan(x)) = \frac{1}{1+x^2} = \frac{1}{2i}\left(\frac{1}{x-i} - \frac{1}{x+i}\right)
dndxn(arctan(x))=(1)n1(n1)!2i(1(xi)n1(x+i)n)\frac{d^n}{dx^n}(\arctan(x)) = \frac{(-1)^{n-1}(n-1)!}{2i}\left(\frac{1}{(x-i)^n} - \frac{1}{(x+i)^n}\right)


Theorems describing the iterated derivatives evaluated at 0, as consequences of one of these (probably the second).


A formula for taylorWithinEval arctan n (Set.Icc a b) 0 y (here 0 and y are in the interior of Set.Icc a b) in terms of ∑ i ∈ Finset.range (n + 1), (iteratedDeriv_arctan_zero i) * x ^ i / i !


Last updated: Dec 20 2025 at 21:32 UTC