Docsity

Complex Arithmetic: Manipulating Complex Variables for Waves - Prof. Charles Sackett, Assignments of Optics

Toggle sidebar
bg1
Phys 531 Complex Arithmetic
We will be using complex variables to describe waves throughout the course, so it
will be important for all students to be comfortable manipulating them. This handout
gives a few examples of how to do complex math.
Simple Operations
Suppose z1= 2 + 3iand z2=−1 + 4i. Then
z1+z2= (2 + −1) + (3 + 4)i= 1 + 7i
and
z1z2= 2 ×(−1) + 2 ×(4i) + (3i)×(−1) + (3i)×(4i) = −14 + 5i.
Multiplying by a real number is particularly easy: 3z1= 3 ×2+3×(3i) = 6 + 9i.
Division is a bit harder. A good method is to write z1/z2= (z1z∗
2)/(z2z∗
2), since
the product z2z∗
2≡ |z2|2is always real. This reduces complex division to a complex
multiplication and a real division. So,
z1
z2
=(2 + 3i)(−1−4i)
(−1 + 4i)(−1−4i)=10 −11i
17 = 0.5882 −0.6471i
Polar Form
The form x+iy is sometimes called Cartesian form. It is often convenient to
instead express complex variables in polar form, z=reiθ . Here ris the magnitude
and θis the phase. To go from Cartesian to polar form, use
r=|z|=√zz∗=px2+y2
and
θ= tan−1y
x= sin−1y
r= cos−1x
r.
Thus we have z1= 3.61 exp (i0.983), where the angle is in radians. This can also
be expressed as z1= 3.6160.983 rad or 3.61656.3◦. We will mostly be working with
variables rather than actual numbers, however, and the reiθ form will be most con-
venient.
An advantage of polar form is that multiplication and division are easy: if z1=
r1eiθ1and z2=r2eiθ2, then
z1z2=r1r2ei(θ1+θ2)
and z1
z2
=r1
r2
ei(θ1−θ2),
following the usual rules for multiplying exponentials. So, another way to do division
is to convert the numbers to polar form and then just divide the magnitudes and
pf3

Partial preview of the text

Download Complex Arithmetic: Manipulating Complex Variables for Waves - Prof. Charles Sackett and more Assignments Optics in PDF only on Docsity!

Phys 531 Complex Arithmetic

We will be using complex variables to describe waves throughout the course, so it will be important for all students to be comfortable manipulating them. This handout gives a few examples of how to do complex math.

Simple Operations Suppose z 1 = 2 + 3i and z 2 = −1 + 4i. Then

z 1 + z 2 = (2 + −1) + (3 + 4)i = 1 + 7i

and z 1 z 2 = 2 × (−1) + 2 × (4i) + (3i) × (−1) + (3i) × (4i) = −14 + 5i.

Multiplying by a real number is particularly easy: 3z 1 = 3 × 2 + 3 × (3i) = 6 + 9i.

Division is a bit harder. A good method is to write z 1 /z 2 = (z 1 z∗ 2 )/(z 2 z∗ 2 ), since the product z 2 z 2 ∗ ≡ |z 2 |^2 is always real. This reduces complex division to a complex multiplication and a real division. So,

z 1 z 2

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

10 − 11 i 17

= 0. 5882 − 0. 6471 i

Polar Form The form x + iy is sometimes called Cartesian form. It is often convenient to instead express complex variables in polar form, z = reiθ. Here r is the magnitude and θ is the phase. To go from Cartesian to polar form, use

r = |z| =

zz∗^ =

x^2 + y^2

and θ = tan−^1

( (^) y x

= sin−^1

( (^) y r

= cos−^1

( (^) x r

Thus we have z 1 = 3.61 exp (i 0 .983), where the angle is in radians. This can also be expressed as z 1 = 3. 616 0 .983 rad or 3. 61 6 56. 3 ◦. We will mostly be working with variables rather than actual numbers, however, and the reiθ^ form will be most con- venient.

An advantage of polar form is that multiplication and division are easy: if z 1 = r 1 eiθ^1 and z 2 = r 2 eiθ^2 , then z 1 z 2 = r 1 r 2 ei(θ^1 +θ^2 )

and (^) z 1 z 2

r 1 r 2

ei(θ^1 −θ^2 ),

following the usual rules for multiplying exponentials. So, another way to do division is to convert the numbers to polar form and then just divide the magnitudes and

subtract the phases. Just to check, we have z 1 = 3. 616 56. 3 ◦^ and z 2 = 4. 126 104. 0 ◦, so z 1 /z 2 = 3. 61 / 4. 126 (56. 3 − 104 .0) = 0. 8756 − 47. 7 ◦^ which in Cartesian form is

  1. 588 − 0. 647 i, as we obtained above.

To go from polar form to Cartesian form, use

x = r cos θ

and y = r sin θ.

So, 4^6 60 ◦^ = 2 + 3. 46 i.

Calculating the Magnitude It is often necessary to calculate the magnitude of a complicated expression. For instance, we might want to know

A =

(p + iq)e−α+ikd 1 + ikd

It would be a big mistake to try to work out the the real and imaginary parts of this expression to apply |z| =

x^2 + y^2. Instead, use two simple techniques. First, the magnitude of a product is equal to the product of the magnitudes: |z 1 z 2 | = |z 1 ||z 2 |. The same holds for division. So in our example, we have

A =

|p + iq| × |e−α+ikd| |1 + ikd|

√p^2 +^ q^2 1 + k^2 d^2

|e−α+ikd|.

We could use the same rule on the exponential if we rewrote it as a product of e−α and eikd. Or we can use the second technique, which starts with |z| =

zz∗. To obtain z∗^ we simply replace all the i’s in z by −i. In our example, we have

|e−α+ikd| =

e−α+ikde−α−ikd

= e−α

since eikde−ikd^ = 1. So we get the final result

A =

p^2 + q^2 1 + k^2 d^2

e−α.

The ease of calculating z∗^ can also be used to find the real and imaginary parts of an expression, since

Re z =

(z + z∗)

and Im z =

2 i

(z − z∗).

This comes in handy sometimes.