Already several pages of stack exchange dedicated to the integration problem in Mathematica. However, by reading them I did not find solution to my own integral. I know from NIntegrate
and other criteria that the answer of following integral:
Integrate[
(16 Cos[k]^2 Sin[th]^4 + Sin[2 (k)]^2 Sin[2 th]^2) /
( 16 (-1 + Cos[k]^2 Cos[th]^2)^2),
{k, -π + alpha, π + alpha},
PrincipalValue -> True]
gives the following wrong answer
-2 π Tan[th]^2
However, it gives different results by using NIntegrate
?
Show @
Table[
Plot[{f[th, {0, 0.3, 0.5}[[i]]], -2 π Tan[ th]^2}, {th, -π, π},
PlotStyle ->
{Directive[Dotted, {Black, Blue, Red}[[i]]],
Directive[Line, {Black, Blue, Red}[[i]]]}],
{i, 1, 3}]
where,
f[th_, alpha_] := NIntegrate[(16 Cos[k]^2 Sin[th]^4 + Sin[2 (k)]^2 Sin[2 th]^2)/(16 (-1 + Cos[k]^2 Cos[th]^2)^2), {k, -π + alpha, π + alpha}]
I would appreciate any comments or help.
alpha
andf
? What was the result you expected to get and how do you know the result you do get is wrong? $\endgroup$Plot[(16 Cos[k]^2 Sin[th]^4 + Sin[2 (k)]^2 Sin[2 th]^2)/(16 (-1 + Cos[k]^2 Cos[th]^2)^2) /. th -> 1/2, {k, -\[Pi], \[Pi]}]
andPlot[(16 Cos[k]^2 Sin[th]^4 + Sin[2 (k)]^2 Sin[2 th]^2)/(16 (-1 + Cos[k]^2 Cos[th]^2)^2) /. th -> -1, {k, -\[Pi], \[Pi]}]
show no singularity. $\endgroup$Plot3D[(16 Cos[k]^2 Sin[th]^4 + Sin[2 (k)]^2 Sin[2 th]^2)/(16 (-1 + Cos[k]^2 Cos[th]^2)^2), {k, -\[Pi], \[Pi]}, {th, -Pi, Pi}]]
shows no singularity too. Therefore, thePrincipalValue->True
option is superfluous. $\endgroup$