The number i · Mathematics Class 11–12 | StemPy Lab
Course 3.1·Lesson 1 of 3
The number i
The square of a real number is never negative, so x2+1=0 has no real root. We bring in a new number i with i2=−1
about 25 min1 simulation1 practice question1 Python program5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
explain why no real number solves x2+1=0;
use the number i, whose square is −1;
write the square root of a negative number as a multiple of i;
name the real and the imaginary parts of a+ib, and use the equality of two complex numbers.
An equation with no real root
In Class 10 you met quadratic equations with no real roots. The simplest is x2+1=0. It asks for a number whose square is −1.
The square of a real number is never negative: 32=9, and (−3)2=9 as well. So no real number solves this equation. On a graph, the curve y=x2+1 stays above the x-axis and never meets it.
Mathematicians in Italy in the 1500s met roots like these while they solved cubic equations. At first they called them impossible. Yet when they calculated with them boldly, the impossible parts cancelled and correct real answers came out. So the new numbers were kept, and given rules.
The number i
We bring in one new number, written i, with one rule:
i2=−1
So i is a square root of −1. The other square root is −i, because (−i)2=i2=−1.
Now every negative number has square roots. For a positive real number a:
−a=ai
For example, −36=6i and −5=5i. So the equation x2+36=0 has the two roots 6i and −6i.
Python writes the number i as 1j, the letter that electrical engineers use. The number 6i is 6j in Python.
Complex numbers
A complex number is a number of the form
z=a+ib
where a and b are real numbers. The number a is the real part of z, written Rez. The number b is the imaginary part, written Imz.
For z=4−7i, the real part is 4 and the imaginary part is −7. The imaginary part is the real number −7, not −7i.
A real number such as 5 is the complex number 5+0i. So the real numbers sit inside the complex numbers.
A number such as 2i=0+2i, with real part 0, is called purely imaginary.
When are two complex numbers equal?
Two complex numbers are equal only when their real parts are equal and their imaginary parts are equal:
a+ib=c+idexactly whena=c and b=d
So one equation between complex numbers gives two equations between real numbers.
Example. Find the real numbers x and y for which (3x−1)+(y+2)i=8−5i.
Real parts: 3x−1=8, so x=3.
Imaginary parts: y+2=−5, so y=−7.
There is one thing that complex numbers cannot do. They cannot be put in order. A statement such as 2+i>1 has no meaning, and Python refuses to compare them.
A worked example
Solve 4x2+25=0.
Make x2 stand alone.x2=−425.
Take square roots.x=±−425=±25i.
Check one root.(25i)2=425i2=−425, and 4×(−425)+25=0.
The roots are 25i and −25i. Both are purely imaginary.
Practise with new numbers
Try it in Python
The program solves x2+c=0 for several values of c. It uses the module cmath, the complex cousin of math. A small function show writes each answer in the form a+bi.
Common mistakes
Saying that x2+4=0 has no solution. It has no real solution. In the complex numbers it has two: 2i and −2i.
Giving i as part of the imaginary part. In 6−2i the imaginary part is −2, a real number, not −2i.
Using math for a negative square root.math.sqrt(-1) stops with ValueError: expected a nonnegative input, got -1.0. Use cmath.sqrt(-1), which gives 1j.
Equating only one part.a+ib=5 means a=5 and also b=0.
Comparing complex numbers.3 + 4j < 5 stops with TypeError: '<' not supported between instances of 'complex' and 'int'. Complex numbers have no order.
Remember these
i is a number with i2=−1. The two square roots of −1 are i and −i.
For a>0, −a=ai.
A complex number is a+ib: real part a, imaginary part b, both real.
a+ib=c+id means a=c and b=d.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Write −81 and −12 as multiples of i.
What are the real and imaginary parts of −2+0.5i?
Find the real numbers p and q if (2p+1)+3i=9+(q−4)i.
Solve 9x2+4=0.
Is 7 a complex number? Is 3i a real number?
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.