Login

Concepts

Read through concept notes with worked explanations and diagrams, chapter by chapter.

Concept 07 / 10Complex Numbers and Quadratic Equations

Square Roots of Complex Numbers and Solving Equations in C

Finding square roots of a + ib by equating parts or with the half-angle formula, the sign rule linking the two parts, solving quadratics with complex coefficients, and the standard substitution z = x + iy for equations involving the conjugate and modulus.

Every non-zero complex number has exactly two square roots, and they are negatives of each other. To find a+ib\sqrt{a + ib}, set (x+iy)2=a+ib(x + iy)^{2} = a + ib with x,yx, y real. Equating parts gives x2−y2=ax^{2} - y^{2} = a and 2xy=b2xy = b. Instead of solving these directly, add a third equation from moduli: ∣x+iy∣2=∣a+ib∣|x + iy|^{2} = |a + ib|, that is, x2+y2=a2+b2x^{2} + y^{2} = \sqrt{a^{2} + b^{2}}. Adding and subtracting with the first equation: x2=a2+b2+a2x^{2} = \frac{\sqrt{a^{2} + b^{2}} + a}{2} and y2=a2+b2−a2y^{2} = \frac{\sqrt{a^{2} + b^{2}} - a}{2}. Both right-hand sides are non-negative, so xx and yy are real. The signs are linked by 2xy=b2xy = b: if b>0b > 0, xx and yy have the same sign; if b<0b < 0, opposite signs. So a+ib=±(∣z∣+a2+i sgn(b)∣z∣−a2)\sqrt{a + ib} = \pm\left(\sqrt{\frac{|z| + a}{2}} + i\,\text{sgn}(b)\sqrt{\frac{|z| - a}{2}}\right) for b≠0b \neq 0. Forgetting the sign coupling produces four 'roots', two of which are wrong. A quick check is always available: square your answer. Example: −5+12i\sqrt{-5 + 12i}. Here ∣z∣=13|z| = 13, so x2=13−52=4x^{2} = \frac{13 - 5}{2} = 4 and y2=13+52=9y^{2} = \frac{13 + 5}{2} = 9. Since b=12>0b = 12 > 0, the signs agree: the roots are ±(2+3i)\pm(2 + 3i). Check: (2+3i)2=4+12i−9=−5+12i(2 + 3i)^{2} = 4 + 12i - 9 = -5 + 12i. In polar form the same result reads: if z=reiθz = re^{i\theta}, its square roots are ±reiθ/2\pm\sqrt{r}e^{i\theta/2}. Halving the angle is why the two roots are diametrically opposite. This form is better when the angle is recognisable; the algebraic form is better for numbers such as −5+12i-5 + 12i whose angle is not a standard one. Quadratics with complex coefficients. The formula z=−b±b2−4ac2az = \frac{-b \pm \sqrt{b^{2} - 4ac}}{2a} still holds, derived by completing the square exactly as in the real case. The only new work is finding a complex square root of the discriminant. What changes: the discriminant is no longer a test of the nature of the roots (it is a complex number and has no sign), and the roots no longer come in conjugate pairs, because the coefficients are not real. For example, z2−(3+i)z+(2+2i)=0z^{2} - (3 + i)z + (2 + 2i) = 0 has discriminant (3+i)2−4(2+2i)=8+6i−8−8i=−2i(3 + i)^{2} - 4(2 + 2i) = 8 + 6i - 8 - 8i = -2i. Its square roots are ±(1−i)\pm(1 - i), since (1−i)2=−2i(1 - i)^{2} = -2i. So z=3+i±(1−i)2z = \frac{3 + i \pm (1 - i)}{2}, giving z=2z = 2 or z=1+iz = 1 + i. Check with Vieta's formulas: the sum is 3+i3 + i and the product is 2+2i2 + 2i. Equations involving zˉ\bar{z} or ∣z∣|z|. These are not polynomial equations in zz, so the formula does not apply. The standard method is to write z=x+iyz = x + iy, equate real and imaginary parts, and solve the resulting real system. When the equation contains ∣z∣|z|, it often helps to note that ∣z∣|z| is real, so a rearrangement may force zz to be real or purely imaginary. Another trick: take the modulus of both sides to get an equation in ∣z∣|z| alone, solve it, then substitute back. Key Takeaways: - a+ib=±(∣z∣+a2+i sgn(b)∣z∣−a2)\sqrt{a + ib} = \pm\left(\sqrt{\frac{|z| + a}{2}} + i\,\text{sgn}(b)\sqrt{\frac{|z| - a}{2}}\right) for b≠0b \neq 0. - The signs of the real and imaginary parts of the root agree if b>0b > 0 and differ if b<0b < 0. - In polar form, the square roots of reiθre^{i\theta} are ±reiθ/2\pm\sqrt{r}e^{i\theta/2}. - The quadratic formula works with complex coefficients; the discriminant then tells you nothing about the 'nature' of the roots. - Conjugate-pair roots are guaranteed only for real coefficients. - For equations with zˉ\bar{z} or ∣z∣|z|: put z=x+iyz = x + iy and equate parts, or take moduli first. - Pitfall: writing −5+12i=−5+12i\sqrt{-5 + 12i} = \sqrt{-5} + \sqrt{12i}. Square roots do not split over sums. Brain-Teaser 1: Solve z2+∣z∣=0z^{2} + |z| = 0. Solution: Write z2=−∣z∣z^{2} = -|z|. The right side is a non-positive real number. If z=x+iyz = x + iy, then z2=x2−y2+2ixyz^{2} = x^{2} - y^{2} + 2ixy, so we need xy=0xy = 0 and x2−y2=−x2+y2x^{2} - y^{2} = -\sqrt{x^{2} + y^{2}}. If y=0y = 0: x2=−∣x∣x^{2} = -|x|, forcing x=0x = 0. If x=0x = 0: −y2=−∣y∣-y^{2} = -|y|, so ∣y∣2=∣y∣|y|^{2} = |y|, giving y=0y = 0 or ∣y∣=1|y| = 1. The solutions are z=0z = 0, z=iz = i and z=−iz = -i. Check: i2+∣i∣=−1+1=0i^{2} + |i| = -1 + 1 = 0. The move is to notice that z2z^{2} must be real and non-positive, which forces zz onto the imaginary axis. Brain-Teaser 2: Solve zˉ=iz2\bar{z} = iz^{2}. Solution: Take moduli first: ∣z∣=∣z∣2|z| = |z|^{2}, so ∣z∣=0|z| = 0 or ∣z∣=1|z| = 1. The case ∣z∣=0|z| = 0 gives z=0z = 0. If ∣z∣=1|z| = 1, multiply both sides by zz and use zzˉ=1z\bar{z} = 1: 1=iz31 = iz^{3}, so z3=1i=−i=e−iπ/2z^{3} = \frac{1}{i} = -i = e^{-i\pi/2}. The cube roots are z=ei(−π/2+2kπ)/3z = e^{i(-\pi/2 + 2k\pi)/3} for k=0,1,2k = 0, 1, 2, that is e−iπ/6e^{-i\pi/6}, eiπ/2e^{i\pi/2} and ei7π/6e^{i 7\pi/6}. These are 32−i2\frac{\sqrt{3}}{2} - \frac{i}{2}, ii and −32−i2-\frac{\sqrt{3}}{2} - \frac{i}{2}. So there are four solutions in total. Taking the modulus first splits the problem into easy cases and removes the conjugate from the algebra. Brain-Teaser 3: Find i+−i\sqrt{i} + \sqrt{-i}, where each square root denotes the root with positive real part. Solution: i=eiπ/2i = e^{i\pi/2}, so its roots are ±eiπ/4=±1+i2\pm e^{i\pi/4} = \pm\frac{1 + i}{\sqrt{2}}; the one with positive real part is 1+i2\frac{1 + i}{\sqrt{2}}. −i=e−iπ/2-i = e^{-i\pi/2}, with roots ±e−iπ/4=±1−i2\pm e^{-i\pi/4} = \pm\frac{1 - i}{\sqrt{2}}; take 1−i2\frac{1 - i}{\sqrt{2}}. The sum is 22=2\frac{2}{\sqrt{2}} = \sqrt{2}. Without a stated convention the expression would have four possible values (±2\pm\sqrt{2} and ±i2\pm i\sqrt{2}). That is the conceptual point: the square root of a complex number is a pair, and a single value only makes sense once a branch is chosen.