• No results found

INTRODUCTION TO COMPLEX NUMBERS INTRODUCTION TO MAPLE

N/A
N/A
Protected

Academic year: 2021

Share "INTRODUCTION TO COMPLEX NUMBERS INTRODUCTION TO MAPLE"

Copied!
13
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

INTRODUCTION TO MAPLE

September 2002

Faculty ITS

Delft University of Technology

(2)

Complex Numbers

The equation x2 − 1 = 0 has two solutions: x = 1 and x = −1. Since 1 and −1 are real numbers, we call these solutions real solutions. The equation x2+ 1 = 0 has no real solutions: there is no real number x such that x2+ 1 = 0. To fix this problem we extend the setR of real numbers with a formal solution of the equation x2+ 1 = 0, which we will denote by the symbol i. With this symbol we will construct a set of new numbers.

A complex number is an expression of the form a + bi, where a and b are real numbers.

If a + bi is a complex number, then a is called the real part and b the imaginary part of this number. For instance, the real part of the complex number−3 + 4i is equal to −3 and the imaginary part is equal to 4 (which is real!!).

The set of all complex numbers is written asC. So we may abbreviate ‘a + bi is a complex number’ to ‘a + bi ∈C’.

Note that both the real and the imaginary part of a complex number are real numbers.

Two complex numbers a + bi and c + di are equal if the real and imaginary part are equal:

a + bi = c + di ⇐⇒ a = c en b = d.

Each real number a can be considered as a complex number with zero imaginary part:

a = a + 0i.

So the real numbers form a subset of the complex numbers. In particular we will write 0 for 0 + 0i.

A complex number with zero real part will be called purely imaginary .

Re-axis Im-axis

O i 3+i

−2+2i 1+2i

3−i

Figure 0.1: The Complex Plane

The setR of real numbers can be represented graphically by a straight line: the real line.

Each point on this line corresponds with a real number.

The set C of complex numbers can also be represented graphically, by a plane, called the complex plane or Argand plane. The point (a, b) in this plane corresponds with the complex number a + bi. The horizontal axis consists of all complex numbers of the form a + 0i, and corresponds therefore with the real line; therefore this axis is called the real axis. Likewise the vertical axis corresponding with the complex numbers of the form 0 + bi is called the imaginary axis.

(3)

The sum of two complex numbers is defined by adding their real parts and their imaginary parts: (a + bi) + (c + di) = (a + c) + (b + d)i. For the product we use that

i2 = i · i = −1

since the symbol i is a formal solution of x2 = −1. Thanks to this rule two complex numbers can be multiplied by “eliminating parentheses” : (a + bi) · (c + di) = ac + adi + bci + bdi2 = (ac − bd) + (ad + bc)i. Summarizing:

(a + bi) + (c + di) = (a + c) + (b + d)i (a + bi) · (c + di) = (ac − bd) + (ad + bc)i

Re-axis Im-axis

O

3+i

1+2i 4+3i=(3+i)+(1+2i)

3−i=3+i

Figure 0.2: The Complex Plane: Addition and Complex Conjugation

Plotting complex numbers a + bi as vectors (a, b) in the complex plane, the addition of two complex numbers a + bi and c + di comes down to vector addition of (a, b) and (c, d).

We define for a complex number z = a + bi its complex conjugate to be ¯z = a − bi. In the complex plane taking conjugates corresponds to reflecting about the real axis.

Example 0.1. Fractions can be brought conveniently into the form a + bi by multiplying numerator and denominator by the complex conjugate of the denominator:

1− i

2 + i = 1− i 2 + i·2− i

2− i = (1− i)(2 − i)

(2 + i)(2 − i) = 2− 3i + i2

4− i2 = 1− 3i

5 = 15 35i.

Conjugating satisfies the following properties.

Theorem 0.2 (Rules for Complex Conjugation). For all z ∈C and w ∈C: z + w = z + w; zw = z w; zn= zn; z = z.

Proof. See Stewart App.G exercise 18.

The modulus or absolute value |z| of a complex number z = a + bi is its distance in the complex plane from the origin. By the Pythagoras theorem we see:

|z| = a2+ b2

(4)

b z = a + ib

a Im-axis

Re-axis u-v i

u u-v v

z

Figure 0.3: The modulus |z| of the complex number z.

If u and v are two complex numbers, we can interpret the modulus of their difference,

|u − v|, geometrically as the distance from the point u to the point v in the complex plane (cf. figure 0.3).

Notice that (a + bi) · (a − bi) = a2− b2i2= a2+ b2 and so z¯z = |z|2

In particular this explains why the division procedure of example 0.1 works in general: if w = 0, then |w|2 is a positive real number, so

z w = zw

ww = 1

|w|2 zw can be written directly in the form a + bi.

Finally we make a remark about the notation. Sometimes we will write i =√

−1, since i2 = −1. But notice that we also have (−i)2 = i2 = −1 and so −i is also a square root of −1. We say that i is the principal square root of −1. In general, if c is a positive

number, we write

−c =√ c i.

However: the well-known rules for taking roots do not hold anymore for roots of negative numbers! As an illustration we “derive” the equality −1 = 1:

−1 = i2 = i · i =√

−1 ·√

−1 =√

−1 · −1 =√ 1 = 1.1

Except for this anomaly we can do arithmetic with complex numbers just as with real numbers, each time using i2 = −1. Like with real numbers we define for a complex number z = 0 the following notation: z0 = 1 and z−k= z1k (for an integer k ≥ 1).

POLAR COORDINATES In a rectangular coordinate system with x-axis and y- axis is the position of a point P = (a, b) fully determined by the x-coordinate a and the y-coordinate b. The pair (a, b) is called the Cartesian2 coordinates of the point P . Instead of Cartesian coordinates one uses often polar coordinates: P = (r, ϕ). In polar

1Of course the 4th =-sign is false.

2Cartesius is the Latin name of R. Descartes (1586-1650)

(5)

coordinates is r the distance from P to the origin O and ϕ the angle (measured in the counterclockwise direction) between the positive x-axis and the line OP (cf. figure 0.4).

W e have r =√

a2+ b2; in particular3 r ≥ 0. The angle ϕ is not unique. For points P = O is ϕ fixed up to a multiple of 2π and for P = O we have no angle ϕ.

x-as y-as

O

ϕ b

a r

P =(a,b)

Figure 0.4: The polar coordinates of the point P = (a, b) W e call r the polar radius of P and ϕ the polar angle of P .

Between Cartesisian and polar coordinates we have the following connection. We get the Cartesisian coordinates (a, b) from a point P with polar coordinates (r, ϕ) by the compution rules

a = r cos ϕ b = r sin ϕ

Given the Cartesian coordinates (a, b) from a point P not equal to O we can get the polar coordinates (r, ϕ) from

r = a2+ b2 cos ϕ = a

a2+ b2 sin ϕ = b

a2+ b2

Note that indeed ϕ is fixed by these formulas only up to a multiple of 2π. For each P not equal to O there is exactly one polar angle ϕ satisfying −π < ϕ ≤ π. Further we have tan ϕ = ab (but this formula does not fix ϕ up to a multiple of 2π!).

The tangent function repeates itself after a period π, so for each x we can find an angle ϕ such that tan ϕ = x, with −π2 < ϕ < π2. We call this angle arctan x, the arctangent of x.

So arctan 0 = 0, arctan 1 = π/4 and arctan(−1) = −π/4. With this new function we have tan ϕ = x ⇐⇒ ϕ = arctan x + k · π, with k in Z.

It is often convenient to express the polar angle of a point as an arctangent. If (a, b) = (r cos ϕ, r sin ϕ) with −π < ϕ ≤ π and if a = 0, then tan ϕ = ab, so either ϕ = arctanba or ϕ = π + arctanba or ϕ = −π + arctanab. Now there are no other possibilities, because of the limits for ϕ and the arctangent. Which of these three possibilities is the case depends on the quadrant in which (a, b) lies.

Example 0.3. We choose again the polar angle ϕ such that −π < ϕ ≤ π. What is the polar angle of the points (1, 1), (−1, 1), (1, −1) and (3, −1)? See figure 0.5.

3Some authors (like Stewart) extend the definition to the case in whichr may be negative.

(6)

(1, 1) (−1, 1)

(3, −1)

0 Re-axis

Im-axis

ϕ1

ϕ2

ϕ4

1 1

Figure 0.5: The polar angle of the points (1, 1), (−1, 1) and (3, −1).

The point (1, 1) lies in the first quadrant, so the polar angle is ϕ1 = arctan11 = π4.

The point (−1, 1) lies in the second quadrant, so the polar angle is ϕ2 = π+arctan−11 = 4 . The point (1, −1) lies in the fourth quadrant, so the polar angle is ϕ3 = arctan−11 =π4. The point (3, −1) lies in the fourth quadrant, so the polar angle is ϕ4 = arctan−13 =

− arctan13.

POLAR COORDINATES IN THE COMPLEX PLANE We can apply polar coordinates in the complex plane. In fact, from a = r cos ϕ and b = r sin ϕ we see

z = a + bi = r(cos ϕ + i sin ϕ) where

r =

a2+ b2=|z| and (for a = 0) : tan ϕ = b a

In this situation the polar radius is equal to the modulus of z and now the polar angle ϕ is called the argument of z. Writing complex numbers in polar coordinates, we can describe the complex multiplication as follows. Using the addition formulas for the sine and cosine, we find

zw = |z| |w|(cos ϕ + i sin ϕ)(cos ψ + i sin ψ)

=|z| |w|

(cos ϕ cos ψ − sin ϕ sin ψ) + i(sin ϕ cos ψ + cos ϕ sin ψ)

=|z| |w|

cos(ϕ + ψ) + i sin(ϕ + ψ) .

Thus we have proved the first part of the following theorem. The second part can be proved similarly.

Theorem 0.4. Suppose z and w are two complex numbers, with arguments ϕ and ψ respectively:

z = |z| (cos ϕ + i sin ϕ) w = |w| (cos ψ + i sin ψ) . Then

zw = |z| |w|

cos(ϕ + ψ) + i sin(ϕ + ψ) and for w = 0:

wz = |w||z|

cos(ϕ − ψ) + i sin(ϕ − ψ)

From this theorem we see that to get the product zw we have to multiply the moduli and to add the arguments.

(7)

w z zw

0 Re-axis

Im-axis

ϕ ψ ϕ + ψ 1 i

Figure 0.6: The complex multiplication Example 0.5. Let z =

3 + i and w = 1 + i√

3. Then zw = (√

3 + i)(1 + i√

3) = 4i.

In polar coordinates we can write z and w as z = |z| (cos ϕ + i sin ϕ) = 2

cosπ6 + i sinπ6 w = |w| (cos ψ + i sin ψ) = 2

cosπ3 + i sinπ3 . On the other hand

zw = 4i = 4

cosπ2 + i sinπ2 .

This is in accordance with theorem 0.4, since 2· 2 = 4 and π6 +π3 = π2.

THE EXPONENTIAL FUNCTION We have seen that each complex number z can be written as

z = |z| (cos ϕ + i sin ϕ) ,

with ϕ an argument of z. To abbreviate the expression cos ϕ + i sin ϕ we introduce the following notation.

Notation 0.6. Let t be a real number. We will denote the complex number cos t + i sin t as eit:

eit= cos t + i sin t (Euler’s formula) Although this notation may seem a little odd, the parts (b) and (c) of the following theorem will give a strong motivation for this definition. A close connection exists between the sine and cosine on one hand and the exponential function on the other hand, but at this moment it is too early to handle this4. Note that, by i0 = 0, the notation for t = 0 implies the well known equality e0= 1.

Theorem 0.7. For all t ∈R, s ∈R: (a) |eit| = 1;

4Cf. module 2, Taylor series.

(8)

(b) eit· eis = ei(t+s);

(c) For each natural number n: (eit)n= eint. (De Moivre’s Theorem.) Proof. (a) |eit| =

cos2t + sin2t = 1.

(b) This follows immediately from theorem 0.4.

(c) It is clear for n = 1. For n = 2 this follows from (b) by taking s equal to t. For n = 3 we can derive this from (b) (take s = 2t) and the case for n = 2 which we already found. Repeating this we get (c) for all n = 1, 2, . . . .

Remark 0.8. From (b) you can easily find again5 the addition formulas for the cosine and sine. On one hand we have

ei(ϕ+ψ)= cos(ϕ + ψ) + i sin(ϕ + ψ) while on the other hand

ei(ϕ+ψ)= ee= (cos ϕ + i sin ϕ)(cos ψ + i sin ψ))

= (cos ϕ cos ψ − sin ϕ sin ψ) + i(cos ϕ sin ψ + cos ψ sin ϕ).

Equating the real and imaginary parts implies the addition formulas.

The new notation gives the following short formula for a number z with argument ϕ:

z = |z|e

Example 0.9. The complex numbers with modulus 1 form together the unit circle in the complex plane, that is the circle with center O and radius 1.

Each number z of the form eit lies on this circle: this follows from theorem 0.7 (a). On the other hand each number z on the unit circle can be written in the form eit. For if ϕ is an argument for z, then z = |z|e= e. So we can choose t = ϕ. See figure 0.7.

We illustrate this by the the points 1, i, −1 en −i on the unit circle. We have 1 = · · · = e−4πi = e−2πi = e0πi = e2πi= e4πi = . . .

and likewise

i = · · · = e32πi= e12πi= e52πi= . . .

−1 = · · · = e−πi = eπi= e3πi = . . .

−i = · · · = e12πi= e32πi= e72πi= . . . , and so on.

Now we can extend the definition of the exponential function to all complex numbers: let z = a + bi be a complex number, then we define ez by:

ez = eaeib For instance e−1+iπ/2= i/e, since

e−1+iπ/2= e−1eiπ/2= 1e(cosπ2 + i sinπ2) = 1e(0 + i) = i/e.

5This is not a proof of the addition formulas, only a way to recollect them

(9)

iπ= -1

π π= i

i

ei 0

e = 1

0

ϕ

e-i = -i

Re-axis Im-axis

e e

2 2

Figure 0.7: The unit circle in the complex plane

EQUATIONS The quadratic equation ax2+ bx + c = 0 with real coefficients has as its solutions

x = −b ±√

b2− 4ac

2a .

Using complex numbers, this formula is also valid for b2− 4ac < 0.

Example 0.10. The solutions of the equation x2+ x + 1 = 0 are x = −1 ±√

12− 4 · 1

2 = −1 ±√

−3

2 = −1 ±√

3 i

2 .

In particular we see that each quadratic equation with real coefficients has at least one solution. In general we know that each equation of the form

anxn+ an−1xn−1+· · · + a1x + a0 = 0

in which n ≥ 1 and a0, . . . , an are complex numbers and in which z is the unknown, has always at least one solution (and at most n) in the complex numbers. This fact is known as the Principal theorem of the Algebra . We will not prove this theorem here.

For n = 1 and n = 2 there are relatively simple formulas for the solution of this equation, but for n ≥ 3 the solutions are usually approximated with computer programs, such as Maple.

Another equation that can easily be solved is the n-th degree equation (n ≥ 1) zn= w

in which w is an arbitrary complex number and z is to be solved. For w = 0 we see immediately that z = 0 is the only solution. Therefore we assume from now that w = 0.

If we write w and z in polar coordinates, w = |w|e and z = re, we can rewrite the equation as

rneinψ =|w|e.

The unknown variables r and ψ have to be solved from this equation. This is equivalent with solving the system of equations

rn=|w|

nψ = ϕ + 2kπ with k ∈Z.

(10)

Example 0.11. 1. The equation z2 = i has exactly two complex solutions: z =

±12

2(1 + i). To derive this we write i = eiπ2 and we find r2 = 1 and 2ψ = π2 + 2kπ, so that r = 1 and ψ = π4 or ψ = −3π4 (or an angle differing an integer multiple of 2π from one of these). This gives the solutions:

z = eiπ4 = 12

2(1 + i) and z = ei−3π4 =12

2(1 + i).

2. In the same way we can solve the equation z5 = −1 − i. Since −1 − i =√

2e5πi/4, we find as solutions for z:

10

2 eiπ4, 10

2 ei(π4+2π15), 10

2 ei(π4+2π25), 10

2 ei(π4+2π35), 10

2 ei(π4+2π45). 3. The equation zn= 1 has exactly n complex solutions:

z = ei2kπn , k = 0, . . . , n − 1.

These solutions are called the n-th power unit roots or n-th roots of unity . In the complex plane they form a regular n-polygon, with all corners on the unit circle; see figure 0.8.

For n = 2 we get the solutions z = ei0 = 1 and z = e = −1, which was to be expected.

Im-axis

1

π

0

/3

Figure 0.8: The 6th roots of unity

In the preceding we have computed all complex solutions of the equations zn− w = 0 and az2+ bz + c = 0 (a, b, c ∈R).

The expressions zn− w and az2+ bz + c are special cases of polynomials in the variable z:

Definition 0.12. A polynomial in the complex variable z is an expression p(z) of the form

p(z) = anzn+ an−1zn−1+· · · + a1z + a0.

The numbers a0, a1, . . . , an are complex and we assume that an = 0. These numbers are called the coefficients and n the degree af the polynomial. Solutions of the equation p(z) = 0 are called roots of the equation or zeros of the polynomial p(z). If we want to emphasize that the variable z and the coefficients ak are complex, we call the polynomial a complex polynomial.

(11)

Example 0.13. The polynomial z2− 2z + (1 − i) is a polynomial in z of degree 2 with coefficients a2 = 1, a1=−2 and a0 = 1− i.

The polynomial zn− c is a polynomial in z of degree n with coefficients an = 1, an−1 =

· · · = a1 = 0 and a0 =−c.

What is the way to determine the zeros of an arbitrary polynomial? In any case a solution has to exist (Principal theorem of the Algebra), but often there is no nice expression. If we are lucky, it is easy, namely when we can recognize one or more of the solutions.

Example 0.14 (Long division). We will try to solve the 3rd degree equation

z3+ z2+ 2z + 2 = 0.

By trial and error, you can see that z = −1 is a solution. Now z = −1 is a zero of the polynomial z + 1 and we can carry out the division below:

z3+ z2+ 2z + 2 z2× (z + 1) = z3+ z2

2z + 2 2× (z + 1) = 2z + 2 −

0 The result is that

z3+ z2+ 2z + 2 = (z2+ 2)(z + 1).

We conclude that

z3+ z2+ 2z + 2 = 0 ⇐⇒ (z2+ 2)(z + 1) = 0

⇐⇒ z2 =−2 of z = −1

⇐⇒ z = i√

2 of z = −i√

2 of z = −1.

In this context we say that we have divided out the factor z + 1. To get all solutions we only had to find the zeros of z2+ 2.

If we have found a zero (for instance by trying some numbers), then this division always works. If p(z) is a polynomial of degree n ≥ 2 and we divide by z − α, then we get a polynomial q(z), with a constant c as a remainder, so p(z) = (z − α)q(z) + c. However, if α is a zero of p(z), we see, by substituting α for z, that c has to zero. Therefore we have:

Theorem 0.15. Let p(z) be a polynomial of degree n ≥ 2. If α ∈ C is a zero of p(z), then there exists a polynomial q(z) of degree n − 1 such that

p(z) = (z − α)q(z) for all z ∈C.

(12)

PARTIAL FRACTIONS In some ways integer numbers and polynomials look alike.

We have seen that polynomials can split into factors just like integers and that you can divide one polynomial by another. Now you can make a fraction of polynomials, with both numerator and denominator a polynomial (a so called rational function). Two of these fractions can be added by making a common denominator, as in:

x

x2+ 1 1

x − 1= x(x − 1)

(x2+ 1)(x − 1) x2+ 1

(x2+ 1)(x − 1) =

= x(x − 1) − (x2+ 1)

(x2+ 1)(x − 1) = x + 1 (x2+ 1)(x − 1).

Frequently we need the reverse procedure en we have to split such a fraction with composite denominator into separate fractions with simpler denominators. There is a general method to accomplish this (the so called partial fraction decomposition, see also Stewart 7.4).

We don’t treat this here in full, but we only give a simple example. Let h be the rational function defined by

h(x) = 2x − 1 (2− x)(1 + x). We will try to find real constants A and B such that

2x − 1

(2− x)(1 + x) = A

(2− x) + B (1 + x). Making the right hand side to one fraction, we find

A

(2− x)+ B

(1 + x) = A(1 + x) + B(2 − x)

(2− x)(1 + x) = (A + 2B) + x(A − B) (2− x)(1 + x) . This function is exactly equal to (2−x)(1+x)2x−1 if

 A + 2B = −1 A − B = 2.

This system has as its solution

A = −B = 1, so we conclude that

h(x) = 2x − 1

(2− x)(1 + x) = 1

(2− x)− 1 (1 + x).

Notice that in this case the denominator of h(x) has two factors of degree 1 and that the degree of the numerator (which is 1) is smaller than the degree of the denominator. In such a case it is always possible to perform such a decomposition into partial fractions like the above.

(13)

(1) (2 − 2i) − (2 + i), (2) (−1 + 2i)(1 − 3i), (3) 2 + 3i

1 − 5i,

(4) 4

4 + 3i, (5) e2+3i.

Ex. II. Find the complex conjugate, the modulus and the argument of the follow- ing numbers and write them in the form |z| e.

(6)

3 − i, (7) −4i, (8) −3 − 3i, (9) −1 + i, (10) (1 + i)20.

Ex. III. Solve the following equations.

(11) z2+ 8z + 17 = 0, (12) z5= 32,

(13) z6= −i.

Ex. IV. Determine a partial fraction decomposition of:

(14) x + 5 x2+ x − 2,

(15) 1

x3+ x, (16) x4+ 1

x4− 1.

Referenties

GERELATEERDE DOCUMENTEN

In our studies the salivary cortisol awakening response, day-curve, and the suppressed level after dexamethasone intake were not different in a burned-out group compared to a

Ook zijn de aantallen (nu nog) vergelijkbaar met de andere noordelijke provincies, maar Drenthe is wel op weg om boven hen uit te stijgen vanwege het toenemend aantal

Hoewel we niet meer kunnen vast- stellen of Bijns haar argumenten opzettelijk zo heeft gerangschikt, is het vanuit argumentatietheoretisch perspectief wel te verklaren dat een

La fouille de la maison de fief d' Azy illustre la modestie des feudataires unis aux families seigneuriales successives du bail1'4ge de Chassepierre et le déclin

A process for preparing substituted polycyclo-alkylidene polycyclo-alkanes and the corresponding epidioxy compounds ; as well as said substituted polycyclo-alkylidene

Publisher’s PDF, also known as Version of Record (includes final page, issue and volume numbers) Please check the document version of this publication:.. • A submitted manuscript is

In fact, Ferdinand Frobenius shows in 1877 that the one-dimensional real numbers R, two-dimensional complex numbers C and the four-dimensional quaternions H that Hamilton

• Under the latter assumption the BEM-TV AR preltering te hnique perfo rms similar to a state-of- the-art referen e algo rithm in whi h de orrelation by frequen y shifting is