# Homework Help: Stuck on expressing a complex number in the form (a+bi)

Tags:
1. Nov 3, 2016

### Razberryz

1. The problem statement, all variables and given/known data
Express the complex number (−3 +4i)3 in the form a + bi

2. Relevant equations
z = r(cos(θ) + isin(θ))

3. The attempt at a solution

z = -3 + 4i
z3 = r3(cos(3θ) + isin(3θ))

r = sqrt ((-3)2 + 42)
= 5

θ = arcsin(4/5) = 0.9273

∴ z3 = 53(cos(3⋅0.9273) + isin(3⋅0.9273))

a = -117
b = 44

Don't see what I did wrong, would appreciate any help.

2. Nov 3, 2016

### Fightfish

$\theta$ is in the wrong quadrant. Also, I think it's much easier if you simply expand the original cubic expression instead of converting to polar representation.

3. Nov 3, 2016

### Razberryz

Thanks for the reply. So you're saying it's not the top left quadrant? Which quadrant is it it then?

4. Nov 3, 2016

### Fightfish

It is in the top left quadrant - you've got that right. But the value of $\theta$ that you gave is in the first quadrant (i.e. top right quadrant).

5. Nov 4, 2016

### Ray Vickson

Doing the problem that way is bound to lead to numerical roundoff errors, because you cannot find exact decimal value for things like $\arcsin(4/5)$, etc. Why not just go ahead and use direct complex multiplication $(-3+4i)(-3+4i)(-3+4i)$. Guaranteed exact accuracy, no fractions, no decimals, no roundoff errors!

6. Nov 4, 2016

### Staff: Mentor

As you wrote it, this is an extremely simple problem
(-3 + 4i)3 = -9 + 12i Done!

It took me some time to realize that the actual problem was to convert (-3 + 4i)3. The simplest way to indicate that 3 is an exponent is to use the caret character ^, as in (-3 + 4i)^3, using notation that comes from the Basic programming language.

7. Nov 4, 2016

### Razberryz

Yes I meant, exponent, didn't catch that till later.

8. Nov 5, 2016

### lurflurf

Roundoff error is clearly not the problem. The long way is only an option because 3 is a small integer if we had
$$(-3+4\imath)^{31763}$$
or
$$(-3+4\imath)^\pi$$
we would not have "Guaranteed exact accuracy, no fractions, no decimals, no roundoff errors!"
I was surprised when I used my sine table in pi/48 increments it was not accurate enough
I needed interpolation to establish arcsin(4/5)~85pi/288
hence
(-3+4i)^3~125(cos(255pi/288)+isin(255pi/288))

Anyway in the original question we need to use quadrant knowledge as mentioned to find that
z^3 = 5^3(-cos(3⋅0.9273) + isin(3⋅0.9273))
or
z^3 = 5^3(cos(3⋅2.2143) + isin(3⋅2.2143))
One way to see this is to use the function arctan2 available on many apps and calculators
arctan2(5,-3)=pi-Arctan(4/3)~2.2143
it is a version of arctan that takes care of quadrants automatically
https://en.wikipedia.org/wiki/Atan2

9. Nov 5, 2016

### Ray Vickson

Of course I realize all that you are saying, but my point was to the OP: was he even aware that straight multiplication could be very effective and that he need not jump instantly to use of the polar representation? Besides, the exact statement of the problem was "Express the complex number (−3 +4i)3 in the form a + bi"; it contains no mention at all of "quadrants". Those become an issue IF one decides to use the polar representation, otherwise not. And, of course, the problem was not anything like $(-3 + 4i)^{31763}$, so tools that would be indispensable for that problem have less relevance for the actual problem he was given.

I take the view that it is not harmful to the OP to be aware of different ways of dealing with a problem. Straight multiplication (repeated squaring, etc.) can be effective in getting $(a+bi)^n$ for moderate integer $n > 1$, perhaps up to about $n = 12$, but of course for some larger values of $n$ the multiplication method becomes increasingly annoying (and increasingly susceptible to making errors), so switching to polar makes sense. And, of course if $n$ is not a positive or negative integer, the polar representation is more-or-less a requirement---not always, but usually.

Last edited: Nov 5, 2016
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted