I've been trying to find a closed form of $\displaystyle \sum\_k{\tan{(k)}}$ that contains only elementary functions, and I think I may be onto something. But rather than reinvent the wheel, I want to ensure that this isn't already known.


So, I am specifically interested in the sum of the tangent. However, if it's not too "overbroad", I'm wondering: Which trigonometric summations are known to have these closed forms of elementary functions?


My broader question is to ask about all basic trig functions: sine, arcsine, hyperbolic sine, and inverse hyperbolic sine and their related counterparts like cosine, tangent, secant, cosecant, and cotangent. Which, out of all of these functions, have known elementary closed forms?


**If these are known, where I can find references on these sums?**


As asked by J.E. Pascoe, I am interested in solutions of


$$\displaystyle \sum\_{k=a}^{b}{ \tan{(k)} }$$


where $a$ and $b$ are taken to be naturals. However, if someone can find an answer in some wider domain, this is interesting to me as well.



What summations of elementary trig functions are known to have (elementary) closed forms?
From [this answer of mine](https://mathoverflow.net/a/42903/10059) The antidifference of tangent is:


$$\sum\_z\tan z=\sum \_{k=1}^{\infty } \left(\psi \left(k \pi -\frac{\pi }{2}+1\right)+\psi \left(k \pi -\frac{\pi }{2}\right)-\psi \left(k \pi -\frac{\pi }{2}+1-z\right)-\psi \left(k \pi -\frac{\pi }{2}+z\right)\right)+C$$


A closed form for it [symbolically resolves](http://www.wolframalpha.com/input/?i=DifferenceDelta%28ix-qpolygamma%280,x%2BPi/2,e%5E%282i%29%29,x%29) to


$$\sum\_z \tan z=iz-\psi \_{e^{2 i}}^{(0)}\left(z+\frac{\pi }{2}\right)+C$$


where the function involved is the [q-digamma function](http://mathworld.wolfram.com/q-PolygammaFunction.html) (which is not elementary) although the usual definition of q-digamma does not converge at this base. 


Thus the answer to your question is no, the antidifference of tangent is not elementary.


But you may be interested in talking about the antidifference taken with step $\pi$ which is more natural than step 1 when speaking about trigonometric functions.


In this case, 


$$\Delta\_\pi^{-1} \tan x = \frac x\pi \tan x + C$$


which is elementary. Similarly, the antidifference with step 1 of $\tan \pi x$ is also elementary:


$$\sum\_x\tan \pi x=x \tan \pi x+C$$


The both identities follow from the [period rule](http://en.wikipedia.org/wiki/Indefinite_sum#Period_rules).


Regarding other elementary functions you can find some [tables in Wikipedia](http://en.wikipedia.org/wiki/Indefinite_sum#List_of_indefinite_sums).


