Consider this series $I_n$:
$$I_n = \int\limits_0^{\pi/4} \tan^{2n}(x)\ dx$$
How do I use Mathematica to simplify $I_n + I_{n+1}$ as a function of $n$?
Consider this series $I_n$:
$$I_n = \int\limits_0^{\pi/4} \tan^{2n}(x)\ dx$$
How do I use Mathematica to simplify $I_n + I_{n+1}$ as a function of $n$?
Usually it is convenient to use Assumptions
, e.g.
Int[n_] = Integrate[Tan[t]^(2 n), {t, 0, Pi/4}, Assumptions -> n >= 0]
1/4 (-PolyGamma[0, 1/4 + n/2] + PolyGamma[0, 3/4 + n/2])
The result is immediate, because
FullSimplify[1/4 (-PolyGamma[0, 1/4 + n/2] + PolyGamma[0, 5/4 + n/2])]
1/(1 + 2 n)
i.e.
FullSimplify[ Int[n] + Int[n + 1]] // TraditionalForm
$$\frac{1}{2 n+1}$$
n>=0
, i.e., n
need not necessarily be an integer.
$\endgroup$
Commented
Mar 22, 2018 at 17:00