Exponential form of a complex number

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 5K views
blues1
Messages
2
Reaction score
0

Homework Statement



if z = -2 + 2i

find r and θ

The Attempt at a Solution



our teacher told us that when we have z = a + bi

r = sqrt(a^2 + b^2)

and θ = tan^-1(b/a)

so here it's supposed to be r = sqrt(8) and θ = - pi/4

but using wolfram alpha to see if the results are matching I get that

sqrt(8)*e^(i*-pi/4) is 2 - 2i

what am I doing wrong? I guess this has to do with the θ, but since it's always tan^-1(b/a) why am I getting different results?
 
Physics news on Phys.org
This is an example of why you should not use formulas without thinking.

b/a and therefore tan(b/a) are exactly the same if you change signs on both a and b. In particular,
[tex]\frac{-2}{2}= \frac{2}{-2}= -1[/tex]

Also, [itex]tan(\theta)= tan(\pi+ \theta)[/itex]. Since tan is "multi-valued", a calculator or computer (or table of trig functions) will get the principle value which is always between [itex]-\pi/2[/itex] and [itex]\pi/2[/itex]. To distinguish between the two you need to look at the signs of the individual numbers. (-2, 2) is in the second quadrant so [itex]\theta[/itex] is between [itex]\pi/2[/itex] and [itex]\pi[/itex]. In this problem, [itex]\theta= \pi- \pi/4= 3\pi/4[/itex], NOT [itex]-\pi/4[/itex].
 
HallsofIvy said:
This is an example of why you should not use formulas without thinking.

b/a and therefore tan(b/a) are exactly the same if you change signs on both a and b. In particular,
[tex]\frac{-2}{2}= \frac{2}{-2}= -1[/tex]

Also, [itex]tan(\theta)= tan(\pi+ \theta)[/itex]. Since tan is "multi-valued", a calculator or computer (or table of trig functions) will get the principle value which is always between [itex]-\pi/2[/itex] and [itex]\pi/2[/itex]. To distinguish between the two you need to look at the signs of the individual numbers. (-2, 2) is in the second quadrant so [itex]\theta[/itex] is between [itex]\pi/2[/itex] and [itex]\pi[/itex]. In this problem, [itex]\theta= \pi- \pi/4= 3\pi/4[/itex], NOT [itex]-\pi/4[/itex].

if i remember correct everything is positive from 0 to pi/2, in pi/2 to p only the sin is positive, cos is positive from p to 3pi/2

so if I get a negative θ and z for example is from 0 to pi/2 I should just have tan^-1(b/a)

if I am from pi/2 to p, I should have p - tan^-1(b/a)

from p to 3pi/2 => 3pi/2 - tan^-1(b/a)?

is this how it goes? :/
 
blues1 said:
if i remember correct everything is positive from 0 to pi/2, in pi/2 to p only the sin is positive, cos is positive from p to 3pi/2

so if I get a negative θ and z for example is from 0 to pi/2 I should just have tan^-1(b/a)
I don't understand what you are saying. If z = a + bi and both a and b are positive, θ = tan^-1(b/a) would just be positive.

from p to 3pi/2 => 3pi/2 - tan^-1(b/a)?

is this how it goes? :/
No. If z = a + bi and both a and b are negative, then when you find tan^-1(b/a) you will get an angle between 0 and π/2. But you want to be in Quadrant III, so you'll have to add pi.

And you're missing the case of z being in Quadrant IV of the complex coordinate plane.