Adding, subtracting and multiplying · Mathematics Class 11–12 | StemPy Lab
Course 3.1·Lesson 2 of 3
Adding, subtracting and multiplying
Add or take away complex numbers part by part: real with real, imaginary with imaginary. Multiply them like brackets in algebra, and put −1 for i2: (a+ib)(c+id)=(ac−bd)+i(ad+bc)
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
add and take away complex numbers;
multiply complex numbers, using i2=−1;
use the properties of the operations, and the algebraic identities, with complex numbers.
Adding and taking away
Treat i like a letter in algebra. Collect the real parts, and collect the imaginary parts:
(a+ib)+(c+id)=(a+c)+i(b+d)
(a+ib)−(c+id)=(a−c)+i(b−d)
Example. For z1=5+2i and z2=1−6i:
z1+z2=(5+1)+(2−6)i=6−4i;
z1−z2=(5−1)+(2+6)i=4+8i.
The sum of two complex numbers is again a complex number. This is the closure law. Addition is also commutative, z1+z2=z2+z1, and associative, (z1+z2)+z3=z1+(z2+z3). The number 0=0+0i is the additive identity. The additive inverse of a+ib is −a−ib, because the two add up to 0.
Multiplying
Multiply out the brackets as you would in algebra. Then replace i2 with −1:
(a+ib)(c+id)=ac+iad+ibc+i2bd=(ac−bd)+i(ad+bc)
Example.(3+4i)(2−5i)=6−15i+8i−20i2=6−7i+20=26−7i.
Watch the last step. The term −20i2 becomes +20, and it joins the real part.
Multiplication has the same good properties. It is closed, commutative and associative. The number 1=1+0i is the multiplicative identity. The distributive law holds: z1(z2+z3)=z1z2+z1z3.
The identities still hold
Because the laws above hold, every algebraic identity you know still works for complex numbers. For example:
(z1+z2)2=z12+2z1z2+z22
(z1+z2)(z1−z2)=z12−z22
Example.(3+2i)2=32+2×3×2i+(2i)2=9+12i−4=5+12i.
One identity is new and very useful. For any real x:
(x+i)(x−i)=x2−i2=x2+1
So x2+1, which cannot be factorised with real numbers, does factorise with complex numbers.
A worked example
Simplify (1+i)3.
Square first.(1+i)2=1+2i+i2=1+2i−1=2i.
Multiply by 1+i once more.(1+i)3=2i(1+i)=2i+2i2=2i−2.
Write it as a+ib.(1+i)3=−2+2i.
Check with Python: (1 + 1j) ** 3 gives (-2+2j).
Practise with new numbers
Try it in Python
Python knows the rules for complex numbers, so it can check hand work. The program adds, takes away and multiplies two numbers. Then it uses the rule for a product, with the real and imaginary parts taken out by .real and .imag.
Common mistakes
Forgetting that i2=−1.(2i)(3i)=6i2=−6. Do not leave i2 in an answer, and do not write +6.
Adding real and imaginary parts together.3+4i is not 7i and not 7. The two parts never mix in a sum.
Losing a sign in a difference.(2+i)−(5−3i)=−3+4i. The minus sign changes −3i into +3i.
Writing i in Python. Python reads i as a variable name, so 3 + 4i stops with SyntaxError. Write 3 + 4j.
Remember these
Add and take away part by part.
(a+ib)(c+id)=(ac−bd)+i(ad+bc).
Addition and multiplication are closed, commutative and associative, with identities 0 and 1. The distributive law holds.
All the algebraic identities hold, and x2+1=(x+i)(x−i).
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Find (7−2i)−(3+5i)+(−1+4i).
Multiply (4+i)(2−3i).
What is the additive inverse of −6+9i?
Use an identity to find (5+2i)(5−2i).
Factorise x2+16 with complex numbers.
Enroll free in Complex Numbers and Their Algebra
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.