The output of the following integration appear to produce imaginary terms, even though the parameters {a,b} have been specified to be real. My question: Is there a way to perform this integration where the imaginary "I" is absent.
Integrate[(1 + a*Abs[ze - zh])*E^(I*b*ze - a*Abs[ze - zh])*
Cos[Pi*ze]^2*Cos[Pi*zh]^2, {ze, -2^(-1), 1/2}, {zh, (-1*1)/2, 1/2},
Assumptions -> Element[{a, b}, Reals]]
Some bits of the long output:
(* (4 E^(-a - (I b)/
2) π^4 (7 a^11 b^5 + a^12 b^5 - 24 I a^10 b^6 - 3 I a^11 b^6 -
12 a^9 b^7 - 44 I a^8 b^8 - 8 I a^9 b^8 - 54 a^7 b^9 -
6 a^8 b^9 - 12 I a^6 b^10 - 6 I a^7 b^10 - 44 a^5 b^11 -
8 a^6 b^11 + 12 I a^4 b^12 - 9 a^3 b^13 - 3 a^4 b^13 +
4 I a^2 b^14 + I a^3 b^14 + 24 I a^16 E^a + 136 I a^14 b^2 E^a +
312 I a^12 b^4 E^a - 7 a^11 b^5 E^a + 336 I a^10 b^6 E^a +
12 a^9 b^7 E^a + 156 I a^8 b^8 E^a + 54 a^7 b^9 E^a +
12 I a^6 b^10 E^a + 44 a^5 b^11 E^a - 12 I a^4 b^12 E^a +
9 a^3 b^13 E^a - 4 I a^2 b^14 E^a - 24 I a^16 E^(a + I b) -
136 I a^14 b^2 E^(a + I b) - 312 I a^12 b^4 E^(a + I b) -
7 a^11 b^5 E^(a + I b) - 336 I a^10 b^6 E^(a + I b) +
12 a^9 b^7 E^(a + I b) - 156 I a^8 b^8 E^(a + I b) +
54 a^7 b^9 E^(a + I b) - 12 I a^6 b^10 E^(a + I b) +
44 a^5 b^11 E^(a + I b) + 12 I a^4 b^12 E^(a + I b) +
9 a^3 b^13 E^(a + I b) + 4 I a^2 b^14 E^(a + I b) +
7 a^11 b^5 E^(I b) + a^12 b^5 E^(I b) + 24 I a^10 b^6 E^(I b) +
3 I a^11 b^6 E^(I b) - 12 a^9 b^7 E^(I b) +
44 I a^8 b^8 E^(I b) + 8 I a^9 b^8 E^(I b) - 54 a^7 b^9 E^(I b) -
6 a^8 b^9 E^(I b) + 12 I a^6 b^10 E^(I b) +
6 I a^7 b^10 E^(I b) - 44 a^5 b^11 E^(I b) - 8 a^6 b^11 E^(I b) -
12 I a^4 b^12 E^(I b) - 9 a^3 b^13 E^(I b) - 3 a^4 b^13 E^(I b) -
4 I a^2 b^14 E^(I b) - I a^3 b^14 E^(I b) -
140 a^11 b^3 π^2 - 20 a^12 b^3 π^2 +
480 I a^10 b^4 π^2 + 60 I a^11 b^4 π^2 +
336 a^9 b^5 π^2 + 16 a^10 b^5 π^2 +
624 I a^8 b^6 π^2 + 120 I a^9 b^6 π^2 +
948 a^7 b^7 π^2 + 108 a^8 b^7 π^2 +
96 I a^6 b^8 π^2 + 84 I a^7 b^8 π^2 +
764 a^5 b^9 π^2 + 140 a^6 b^9 π^2 -
264 I a^4 b^10 π^2 - 12 I a^5 b^10 π^2 +
152 a^3 b^11 π^2 + 56 a^4 b^11 π^2 -
80 I a^2 b^12 π^2 - 32 I a^3 b^12 π^2 -
12 a b^13 π^2 - 12 a^2 b^13 π^2 + 8 I b^14 π^2 +
4 I a b^14 π^2 + 512 I a^14 E^a π^2 +
1776 I a^12 b^2 E^a π^2 + 140 a^11 b^3 E^a π^2 +
2688 I a^10 b^4 E^a π^2 - 336 a^9 b^5 E^a π^2 +
1920 I a^8 b^6 E^a π^2 - 948 a^7 b^7 E^a π^2 +
800 I a^6 b^8 E^a π^2 - 764 a^5 b^9 E^a π^2 +
264 I a^4 b^10 E^a π^2 - 152 a^3 b^11 E^a π^2 +
80 I a^2 b^12 E^a π^2 + 12 a b^13 E^a π^2 -
8 I b^14 E^a π^2 - 512 I a^14 E^(a + I b) π^2 -
1776 I a^12 b^2 E^(a + I b) π^2 +
140 a^11 b^3 E^(a + I b) π^2 -
2688 I a^10 b^4 E^(a + I b) π^2 -
336 a^9 b^5 E^(a + I b) π^2 -
1920 I a^8 b^6 E^(a + I b) π^2 -
948 a^7 b^7 E^(a + I b) π^2 -
800 I a^6 b^8 E^(a + I b) π^2 -
764 a^5 b^9 E^(a + I b) π^2 -
264 I a^4 b^10 E^(a + I b) π^2 -
152 a^3 b^11 E^(a + I b) π^2 -
80 I a^2 b^12 E^(a + I b) π^2 *)
E^(I*b*ze...
. This is complex valued, so the integral is complex-valued. $\endgroup$Simplify
functions. $\endgroup$Integrate
expression is a real-valued expression for a lot of real values ofa
andb
, but not all. For example, neithera
norb
can be zero. $\endgroup$