Complex Numbers
Complex Numbers
Complex Numbers
Lia Vas
The Eulers formula can be used to define various complex functions that allow the same manipulations as their real-valued counterparts. For example, the exponential function ez is defined as
follows.
ez = ex+iy = ex eiy = ex (cos y + i sin y)
Thus, ez represents complex function with real part ex cos y and the imaginary part ex sin y.
The exponential function with arbitrary (real) base is defined via the exponential function as
az = ez ln a
The power function can also be defined via the exponential function. In this course we will work
just with integer powers of z. So, let n be an integer.
z n = (rei )n = rn ein
Note that the usual formulas for exponentiation work with this definition.
The complex-valued basic trigonometric functions are also defined via exponential function as
follows
1
1
cos z = (eiz + eiz )
sin z = (eiz eiz )
2i
2
sin z
The other trigonometric function can be defined via these two, for example tan z = cos
.
z
Example 1. Verify the following identities.
(b) sin2 z + cos2 z = 1.
Solutions. (a) (ez )n = (ex eiy )n . Using the formula for z n , we have that this is equal to enx einy =
en(x+iy) = enz .
(eiz eiz )2 + 14 (eiz + eiz )2 . Square the terms in parenthesis to get
(b) sin2 z + cos2 z = 1
4
1 2iz
(e 2 + e2iz ) + 41 (e2iz + 2 + e2iz ) = 41 (e2iz + 2 e2iz + e2iz + 2 + e2iz ) = 14 (4) = 1.
4
When it comes to the inverse of these elementary functions, things can become a bit more complicated. In this course we will not be going into branches of complex logarithms or the inverses of
complex trigonometric functions, but we will be looking into n-values of complex n-th root. This
interest is motivated by the need for finding all n solutions of the algebraic equations of the form
z n = a where a is a given complex number a = r(cos() + i sin()). The n solutions of this equation
are given by the formula
(+2k)i
+ 2k
+ 2k
n
re n = n r(cos
+ i sin
)
n
n
for k = 0, 1, . . . n 1.
Example 2. Find all solutions of the following equations.
(1) z 3 = 8,
(2) z 3 = i
2ki
2
3
Solutions. (1) z = 8e0i = 2e 3 for k = 0, 1, 2 z0 = 2e0i = 2, z1 =
2e 3 i = 2(cos 2
+
3
4
3
3
2
1
4
4
1
i
i sin 3 ) = 2( 2 + 2 i) = 1 + 3i, z2 = 2e 3 = 2(cos 3 + i sin 3 ) = 2( 2 2 i) = 1 3i.
+2ki
3
2
(2) z = 1e 2 i = 1e 3
for k = 0, 1, 2 z0 = e 6 i = cos 6 + i sin 6 = 23 + 12 i, z1 = e 6 i =
9
3
cos 5
+ i sin 5
= 2 3 + 12 i, z2 = e 6 i = e 2 i = cos 3
+ i sin 3
= i.
6
6
2
2
2
Solutions. (1) f 0 (z) = 4(z 2 + 5)3 (2z) = 8z(z 2 + 5)3 , (2) f 0 (z) = iezi2 , (3) f 0 (z) = 12z 2 cos(4z 3 +
5).
The differentiation may be trickier if a function cannot be represented in terms of z = x + iy.
For example f (x + iy) = 3x + 5yi. For such function, the set of equations called Cauchy-Riemann
equations are useful criterion of being analytic.
df
v
v
= u
+ i x
= y
i u
so
Namely, if f is an analytic function, then dz
x
y
u
v
=
x
y
u
v
=
y
x
These two equations are called Cauchy-Riemann equations. Thus, if Cauchy-Riemann equations
fail for a complex function f (z), then it is not analytic.
Conversely, it can be shown that if the partial derivatives of u and v are continuous and the
Cauchy-Riemann equations hold, then f is an analytic function.
Example 4. Check if the following functions are analytic or not.
(a) f (x + iy) = 3y 3xi,
Solution. (a) Here u = 3y and v = 3x. The first Cauchy-Riemann equation holds since both
v
v
v
and y
are equal to 0. The second equation holds also since u
= 3 and x
= 3 and so u
= x
.
y
y
u
(b) Here u = 3y and v = 5x. The first Cauchy-Riemann equation holds since both x and
v
v
are
equal to 0. However, the second equation fails since u
= 3 and x
= 5. So it fails since
y
y
u
v
3 = y 6= x = 5. Thus, this function is not analytic.
u
x
If f is an analytic function and u and v have continuous second partial derivatives, then
2u
u
v
v
u
2u
2u 2u
=
=
=
=
=
+
= 0.
x2
x x
x y
y x
y
y
y 2
x2 y 2
Similarly,
2v
=
2
x
x
v
x
=
x
u
u
v
2v
2v 2v
=
=
= 2
+
= 0.
y
y
x
y
y
y
x2 y 2
3
This illustrates that both the real and the imaginary part satisfy Laplace equation. This fact
can be used when finding analytical function that has given real or imaginary part as the next
example illustrates.
Example 5. Check if analytic functions with real part equal to the given functions u exist. If
so, find all analytic functions that have real parts equal to u.
(a) u = xe3y
(b) u = x2 + 3x y 2 + 5y.
Solution. (a) To see if such an analytic function exists, check if it satisfies Laplace equation.
2
2
2
2
= e3y xu2 = 0 and u
= 3xe3y yu2 = 9xe3y . Since xu2 + yu2 = 0 9xe3y 6= 0, no such analytic
y
function exists.
2
= 2x + 3 xu2 = 2 and u
= 2y + 5
(b) Note that the given u satisfies Laplace equation: u
x
y
u
x
2u
y 2
f (z(t)))z 0 (t)dt
f (z)dz =
L
The second line segment has the parameterization x = x, y = 1 and the x-values are decreasing
from
R 0 1 to x0.2 0Then 1z = x + i and Re z = x, dz 1= dx + 0i = dx. The integral over this part is
xdx = 2 |1 = 2 . So, the final answer is i 2 .
1
Cauchys Theorem. Let C be a closed piecewise smooth curve and f an analytic function
defined on an simply connected domain that contains the interior of the curve C. In this course, we
will not need to go into precise meaning of simply connected. Intuitively the domain of f is simply
connected if it consists of one piece without any holes. For example, a circle is simply connected
while an annulus is not. To find more about this concept, you can explore wikipedia.org.
With those assumptions,
I
f (z)dz = 0.
C
dxdy
P dx + Qdy =
x
y
D
C
Thus, if f (z) = u + iv, and if D denotes the interior of C, then
I
I
I
I
f (z)dz = (u + iv)(dx + idy) = (udx vdy) + i (vdx + udy)
C
Using Greens theorem, we obtain that this last expression is equal to the following.
Z Z
Z Z
v u
u v
(
) dxdy + i
(
) dxdy = 0.
y
y
D x
D x
The last equality uses the fact that f is analytic so that the Cauchy-Riemann equations hold.
Example 7. Evaluate
Z
(z 3 + 5z sin z)dz
1
dz
z
an (x a)n where an =
n=0
f (n) (a)
n!
Assume now that f (z) is analytic in a domain that contains a point a. Then
f (z) =
X
n=0
an (z a)
f (n) (a)
1
where an =
=
n!
2i
6
I
C
f (z)
dz
(z a)n+1
This last formula follows by Cauchys differentiation formula. The series converges inside of a
circle centered at a of radius equal to the distance from a to the nearest singularity of f (z).
Recall the following power series expansions of real functions.
x
e =
X
xn
n=0
n!
X
1
=
xn
1 x n=0
sin x =
X
(1)n x2n+1
n=0
cos x =
(2n + 1)!
X
(1)n x2n
n=0
(2n)!
Because of the way how the corresponding complex functions are defined (and using a theorem
usually referred to as Uniqueness Theorem) it can be shown that the same expansions hold for
complex functions as well. Thus
z
e =
X
zn
n=0
n!
X
1
=
zn
1z
n=0
sin z =
X
(1)n z 2n+1
n=0
cos z =
(2n + 1)!
X
(1)n z 2n
n=0
(2n)!
These elementary function expansions can be used to obtain the expansions of functions obtained
combining the basic functions as the next example illustrates.
Example 9. Find the power series expansions of the following functions at 0 and determine the
radius of convergence.
(a) f (z) = eiz ,
(b) f (z) =
1
.
1z 2
P in zn
P
zn
iz
Solutions. (a) ez =
n=0 n! . This function has no singularities so
n=0 n! f (z) = e =
this series converges
for all valuesPof z (i.e. the radius of convergence is infinite).
P
1
1
n
2n
z
1z
=
(b) 1z
2 =
n=0
n=0 z . 1 and -1 are singularities of this function, thus this series
converges within the unit circle, that is, the radius of convergence is 1.
Now assume that the point a may be a singularity of f (z). In this case, the function may be
written as
f (z) =
an (z a)
where
n=
1
an =
2i
I
C
f (z)
dz
(z a)n+1
This last formula now holds for negative values of n as well. We distinguish three cases:
1. All the coefficients an with negative subscripts are zero. In this case a is a said to be a
removable singularity.
P
(1)n x2n+1
For example, consider f (z) = sinz z . Since sin x =
we have that the Laurent
n=0 (2n+1)!
P (1)n z2n+1
P (1)n z2n
2
4
sin z
1
series expansion of f (z) is z = z n=0 (2n+1)! = n=0 (2n+1)! = 1 z3! + z5! . . . Note
that there are no terms with negative powers of z. Thus 0 is a removable singularity of this
function.
2. Just finitely many coefficients with negative subscripts are not zero. In this case a is said to be
a pole. If ak 6= 0 and ak1 = ak2 = . . . = 0, then a is a pole of order k. Note that a is
a pole of order k if (z a)k f (z) is an analytic function without singularity or with removable
singularity at a. f (z) = z1 has a pole of order 1 at z = 0. Similarly, f (z) = z1n has a pole of
order n at z = 0.
7
1
).
za
Note that if f is analytic at z = a, then the residue a1 = 0 since the Laurent series
H has no terms
with negative powers. In this case, the last formula boils down to Cauchys Theorem C f (z) dz = 0.
Assume now that f is an analytic function with isolated singularities z1 , z2 , . . . zn and that C is
a closed piecewise smooth positive oriented curve whose interior contains all the residues of f. If
R1 , R2 , . . . Rn are residues at z1 , z2 , . . . zn , then
I
f (z) dz = 2i(R1 + R2 + . . . + Rn ).
C
ez
dz
2
C z 4
over the circle C of radius 5 using Residue Theorem.
Note that we evaluated this integral using Cauchys integral formula. The Residue Theorem
method is even shorter since it does not require the use of partial fractions.
I
e
has two singularities 2 and -2 and both are poles of the
Solution. The function z2e4 = (z2)(z+2)
first order. Both are contained in the given contour. Thus, the integral is equal to the product of
2i and the sum of the two residues.
2
ez
The residue at 2 is limz2 (z 2)f (z) = limz2 (z+2)
= e4 . The residue at 2 is limz2 (z +
ez
(z2)
e2
.
4
2
e2
)
4
i 2
(e
2
Example 12. Let a be any real number. Note that the integral
Z
1
dx
2
2 2
(x + a )
would be difficult to evaluate directly. Evaluate using complex integration and Residue Theorem.
Use your result to evaluate
Z
1
dx
(x2 + a2 )2
0
1
1
Solution. Consider the function f (z) = (z2 +a
2 )2 = (zai)2 (z+ai)2 . It has two poles of the second
order ai.
Let us now consider a contour CR that is the boundary of an upper semicircular region of a
circle of radius R large enough to include the pole ai. On the bottom part, we Rhave a line segment
R
1
parametrized as z = x + 0i = x and dz = dx so the integral over the bottom is R (x2 +a
2 )2 dx. If we
let R we will obtain the integral we need to evaluate.
the semi-circular part z = Reit for t : 0 and dz = Rieit dt. The integral over this part
ROn
it
is 0 (R2 eRie
2it +a2 )2 dt. We shall show that the integral of the modulus of f converges to 0 for R .
Then the integral of f converges to 0 as well.
Consider the modulus of this function is |R2 e2itR+a2 |2 . The denominator |R2 e2it + a2 |2 is larger than
|R2 e2it |2 = R4 . So, the whole function is smaller than R13 . So, when R , this function converges
to 0. Thus, the integral is equal to R0.
1
On the other hand, the integral CR (z2 +a
2 )2 dz is equal to the product of 2i and the residue at ai.
Note that we do not need to consider the residue
at ai
since it is not in the contour CR . The residue
d
1
d
2
2
1
1
i
2
at ai is limzai dz ((z ai) f (z)) = limzai dz (z+ai)2 = limzai (z+ai)
3 = (2ai)3 = 4a(i) = 4ai = 4a .
9
R
1
i
Thus, CR (z2 +a
2 )2 dz = 2i 4a = 4a . When we let R , the integral on the left converges to
R
1
the sum over the lower part that converges to (x2 +a
2 )2 dx and the integral of the top part that
dx =
2
2
2
4a
(x + a )
We can use
dx to evaluate
R0
1
dx =
(x2 +a2 )2
(x2 +a2 )2
Z
0
1
dx as well. Note that the function under
(x2 +a2 )2
R
R
1
1
1
dx + 0 (x2 +a
dx. Thus,
2 )2 dx = 2 0
(x2 +a2 )2
(x2 +a2 )2
0
the
.
dx
=
(x2 + a2 )2
8a
Probably the trickiest part of this argument was showing that the integral over the semi-circle
converges to 0. Note that the following argument can be made for any rational function f (x) =
n
pn (x)
1 x+a0
= bamn xxm+...+a
over the contour with z = Reit dz = Rieit dt.
qm (x)
+...+b1 x+b0
Since the terms of the form ekti where k is a positive integer have modulus 1, the modulus of the
numerator |pn (z)| is smaller or equal to (|an |Rn + . . . + |a1 |R + |a0 |) |an |Rn and the modulus of
the denominator |qm (z)| is larger than or equal to (|bm |Rm . . . |b1 |R |a0 |). Also note that the
modulus of dz is equal to Rdt. Thus the integral over the semicircle of the modulus of f (z) is less
than or equal to to
Z
Z
|an |Rn
|an |Rn+1
Rdt =
dt =
m
(|bm |Rm . . . |b1 |R |a0 |) 0
0 (|bm |R . . . |b1 |R |a0 |)
=
|an |Rn+1
0 when R and m > n + 1.
(|bm |Rm . . . |b1 |R |a0 |)
So the integral of the modulus of f (z) converges to 0 and hence the integral of f converges to 0 as
well.
In similar considerations, it is also useful to note that the absolute value of a complex number of
the form eit is equal to 1.
|eit | = 1
One way to see this is to note that this number lies on the unit circle. Another way is to note that
p
Practice Problems.
1. Find all solutions of the equation z 8 = 1.
2
2. Find the derivative of the following functions (a) f (z) = ze5iz , (b) f (z) =
3. Determine if the following functions are analytic.
10
1
(z 2 +4)3
4. Find an analytic function f (z), if such function exists, so that the imaginary part of f (z) is
equal to
(a) v = 3x2 + 4y 3y 2 ,
R
5. Evaluate z 4 dz
(b) v = exy
z
,
1z 2
z = 0,
(b) f (z) =
ez1
(z1)2
z = 1,
(c) f (z) =
1cos z
z2
z = 0.
8. Classify all the singularities and find their residues for the following functions.
(a) f (z) =
1
(z2)2 (4+z)
(b) f (z) =
ez
,
(z1)5
9. Evaluate the complex integrals of given function f (z) over the given contour.
(a)
f (z) =
1
(z 2)2 (4 + z)
f (z) =
1
(z 2)2 (4 + z)
(b)
(c)
f (z) =
ez
(z 1)5
over the boundary of the right half of the disc with radius 2.
(d)
f (z) = z cos
1
z
over the square with vertices (1,0), (0,1), (-1, 0) and (0,-1).
10. Evaluate the following integrals using the Residue Theorem and a suitable contour in complex
plane.
R
1
(a) (x2 2x+2)
2 dx
R x sin x
R
(b) x2 +1 dx. You can assume that 0 eR sin t dt 0 when R . Hint: consider the
iz
complex function f (z) = zze2 +1 and note that the given function is equal to the imaginary
part of f (z) when z = x.
11
Solutions.
2ki
8
1. z 8 = 1 z = 1e0i = 1e 8 for k = 0, 1, . . . , 7 z = 1, i, 12 12 i, 12 12 i.
2
2
2
d
d
2. (a) dz
ze5iz = e5iz + 10iz 2 e5iz . (b) dz
((z 2 + 4)3 ) = 3(z 2 + 4)4 (2z) = (z6z
2 +4)4 .
2
3. (a) By the previous problem, the function f (z) = ze5iz has derivative f 0 (z) = e5iz + 10iz 2 e5iz
which is a continuous function. Thus, f is analytic.
v
x
= 6x
2v
x2
= 6 and
R
Then find f using Cauchy-Riemann equations. v
= 6x = u
u = 6xdy = 6xy +
x
y
v
g(x). Using the second equation, we have that 4 6y = y
= u
= 6y + g 0 (x) g 0 (x) = 4
x
g(x) = 4x + c. Thus u = 6xy + 4x + c. Hence f (z) = 6xy + 4x + c + i(3x2 + 4y 3y 2 ) =
3(x iy)2 + 4(x + iy) + c = 3z 2 + 4z + c.
(b) Check Laplace equation: v = exy
2
2v
x2
+
x exy. Thus
equal to v exists.
2v
y 2
xy
= (y + x )e
v
x
= yexy
2v
x2
= y 2 exy and
v
y
= xexy
2v
y 2
u
=
3e
cos
ydy = 3ex sin y + g(x). Using the
v = 3ex cos y v
x
y
v
second equation, we have that 3ex sin y = y
= u
= 3ex sin y + g 0 (x) g 0 (x) = 0 g(x) =
x
c. Thus u = 3ex sin y + c. Hence f (z) = 3ex sin y + c + 3iex cos y = 3iex (cos y + i sin y) + c =
3iex eiy + c = 3iez + c.
5. (a) Parametrization of the unit circle is x = cos t, y = sin t, so z = cosR t + i sin Rt = eit . Thus,
z 4R = e4it and dz = eit idt. The bounds for t are 0 t . The integral is z 4 dz = 0 e4it eit idt =
5it
i 0 e dt = 5ii e5it |0 = 15 (e5i e0i ) = 51 (cos 5 + i sin 5 1) = 15 (2) = 2
.
5
(b) The function f (z) = z 4 is analytic because it has derivative 4z 3 which is a continuous
function. Thus, the integral is zero since the integral of an analytic function over a close curve
is zero (Cauchys Theorem).
6. f (z) = z 3 2z + ez2 is analytic (derivative 3z 2 2 + ez2 is continuous) so the integral in
part (a) is zero by Cauchys Theorem. By Cauchys integral formula, the integral in part (b)
is equal to 2if (2) = 2i(8 4 + 1) = 10i.
P
P 2n
P 2n+1
1
1
z
n
7. (a) 1z
=
f (z) = 1z
. The only singularities
2 =
n=0 z 1z 2 =
n=0 z
n=0 z
of f (z) are 1. So, the radius of the convergence is the distance from 0 to any of these two
points and so it is 1. The function is analytic at z = 0 (also note that there are no terms with
negative exponents in the series expansion).
12
(b) ez =
zn
n=0 n!
ez1 =
n=0
(z1)n
n!
X
(z 1)n X (z 1)n2
1
1 z1
1
1
ez1
=
=
+ +
+. . . .
=
+
f (z) =
2
2
2
(z 1)
(z 1) n=0
n!
n!
(z 1) z 1 2!
3!
n=0
The only singularity is z = 1 and, from the power series expansion, we can see that it is a
1
pole of the order 2. The coefficient with the term with z1
is 1 so the residue is 1. The series
converges at all points except z = 1.
P
P
(1)n z 2n
(1)n z 2n2
z
(c) f (z) = 1cos
= z12 z12 cos z = z12 z12
= z12
= z12 z12 +
n=0
n=0
z2
(2n)!
(2n)!
2
z4! + z6! . . . = 2!1 z4! + z6! . . . Thus, there are no terms with negative exponents. So,
the only singularity z = 0 is a removable singularity.
1
2!
8. (a) f (z) = (z2)12 (4+z) has two singularities: 2 is a pole of order 2 and -4 is a pole of order 1.
The residue at 2 can be computed as
d
1
d
1
1
2
lim
=
.
(z 2) f (z) = lim
= lim
2
z2 dz
z2 dz
z2 (4 + z)
4+z
36
The residue at 4 is limz4 (z + 4)f (z) = limz4
1
(z2)2
1
.
36
ez
. The only singularity is 1 and it is a pole of order
(z1)5
1
d4
1
d4
1
e1
z
z
limz1 dz4 ((z 1)5 f (z)) = 24
limz1 dz
4 (e ) = 24 limz1 e = 24
4!
(b) f (z) =
5. The residue at 1 is
=
e
.
24
(c) The only singularity is 0 and it is an essential singularity. Note that the formula with
the limit does not apply to this case since 0 is not a pole.
can
find
the residue
by
P We(1)
P
n
(1)n
=
looking at the power series expansion f (z) = z cos z1 = z
n=0 (2n)!z 2n
n=0 (2n)!z 2n1 =
1
z 2!z
+ 4!z1 3 . . . . So, the residue is 1
.
2
9. (a) Note that just one of the two singularities is in the given contour: 2 is in and -4 is not.
So, the integral is the product of 2i and the residue at 2 which we found to be 1
. Thus,
36
i
the integral is equal to 18
(b) Since both singularities 2 and -4 are in the given contour, the integral is the product of
2i and the sums of residues at 2 and at -4. We have found those residues to be 1
and
36
1
1
1
respectively.
Thus,
the
integral
is
equal
to
2i(
+
)
=
0.
36
36
36
(c) We have found the residue at 1 to be
(d) We have found the residue at 0 to be
e
.
24
1
2
e
Thus, the integral is 2i 24
=
ei
.
12
2 48
1
=
10. (a) Consider the function f (z) = (z2 2z+2)
2 . The zeros of the denominator are z =
2
22i
1
= 1 i. Thus f (z) = (z(i+1))2 (z(1i))2 . So, there are two poles the second order 1 i.
2
Let us now consider a contour CR that is the same as in Example 12: the boundary of an upper
semicircular region of a circle of radius R large enough to include the pole 1 + i. Note that the
second pole will be out of this contour so it will not be relevant.
On
part z = x + 0i = x and dz = dx so the integral over the bottom produces
R R the bottom
1
dx.
If we let R we will obtain the integral we need to evaluate.
R (x2 2x+2)2
13
On
part z = Reit for t : 0 and dz = Rieit dt. The integral over the top part is
R the top
Rieit
dt. Using the reasoning as in discussion following Example 12, the absolute
0 (R2 e2it 2Reit +2)2
R
value of this integral is less or equal to (R2 2R2)
2 that converges to 0 when R . Thus, the
integral over the top part converges to 0 as well.
R
1
On the other hand, the integral CR (z2 2z+2)
2 dz is equal to the product of 2i and the residue
d
at 1 + i. The residue at 1 + i is limz1+i dz ((z (1 + i))2 f (z)) . The term (z (1 + i))2 cancels
with the same term in the denominator of f (z) and so we have
2
1
1
i
2
2
d
lim
= lim
=
=
.
=
=
2
3
3
z1+i dz
z1+i (z 1 + i)
(z (1 i))
(2i)
8(i)
4i
4
R
1
i
(b) Following the hint, consider the complex function f (z) = zze2 +1 . When z = x, f (z) = f (x) =
xeix
x
x sin x
= xxcos
2 +1 + i x2 +1 . Thus, the function under the integral is the imaginary part of f (z) when
x2 +1
z is real.
To evaluate the integral, consider the integral of f (z) over the same contour CR as in previous
problem and Example 12. The zeros of the denominator i are the only singularities, they are
both poles of the first order and just i is in the given contour. The residue at i is limzi (z
1
iz
1
zeiz
= limzi ze
= ie2i = 2e
.
i) (zi)(z+i)
z+i
On the bottom
of the contour, z = x + 0i = x and dz = dx so the integral over the bottom
R R xepart
ix
produces R x2 +1 dx. If we let R , the imaginary part of this integral is the integral we
need to evaluate.
On the top part of the contour z = Reit for t : 0 and dz = Rieit dt. The integral over the
R 2 2it Reit
it
top part is 0 RRie2 e2ite+1 dt. Note that the absolute value of the numerator is |R2 ie2it eRie | =
R2 |eRi(cos t+i sin t) | = R2 |eRi cos t |eR sin t = R2 eR sin t . Thus, the absolute value of this integral is
less or equal to the following integral
Z
Z 2 R sin t
R e
R2
eR sin t dt 0
dt = 2
21
R
R
1
0
0
for R . Thus, the integral over the top part converges to 0 as well.
R
iz
1
Thus, CR zze2 +1 dz = 2i 2e
= i
. When we let R , the integral on the left converges to
e
R xeix
dx. Thus,
x2 +1
Z
Z
Z
i
xeix
x cos x
x sin x
dx
=
dx
+
i
dx
=
.
2
2
2
e
x + 1
x + 1
x + 1
Equating the real parts on both sides and the imaginary parts on both sides, we obtain that
Z
Z
x cos x
x sin x
dx
=
0
and
dx
=
.
2
2
e
x + 1
x + 1
Thus, the integral we needed to find is equal to e .
14