

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Prof. W. Kahan Page 1/
Problem 1: Show that complex numbers z = x + ı y and special 2-by-2 matrices Z =
are isomorphic (algebraically indistinguishable) at least so far as rational arithmetic operations {+, —, ·, ÷} are concerned. Pay close attention to division.
Solution 1: Obtain Z from Z in the same way as conjugate z is obtained from z , namely by
operation t := w¤z performed upon complex variables maps turns out to match the analogous
Problem 2: It is tautologically true that “Complex variables are unnecessary because anything that can be done with them can also be done without them.” However this is not the whole truth; it omits mention of the extra cost of complications incurred if our thoughts must be formulated in terms solely of real variables with no mention of complex. We have already seen
entails six real multiplications, three real additions and two real divisions; these are far more complicated than the concept of complex division.
Now consider the complex Principal Square Root u + ı v = w = √z , which maps the whole z- plane 1-to-1 onto the right-hand half of the w-plane including its positive imaginary axis (if not all of this axis). √z must be discontinuous as z crosses a Slit along the negative real axis,
because the inverse map x + ı y = z = w^2 takes tiny semicircular neighborhoods around both boundary points ± ı v of the right half of the w-plane to a roughly circular neighborhood
around x = –v^2 < 0 in the z-plane. Given real values for x and y , how should u and v be computed using just two (not three) real square roots and a few rational (not transcendental) real arithmetic operations and (because of the discontinuity) comparisons? Hint: |w| = √|z|.
Solution 2: The computed values u and v must satisfy u ≥ 0 , x = u 2 – v^2 and y = 2uv. Consequently sign(y) = sign(v) when they are nonzero, even if u = 0. Here is the algorithm:
u := √(( |x| + √(x^2 + y^2 ) )/2) ; If u = 0 then { v := y } else if x < 0 then { v := CopySign(y, u) ; u := y/(2v) } else { v := y/(2u) }. ( CopySign(y, u) here has the magnitude of u but the same sign bit as y has. Alas, other definitions of CopySign reverse its arguments to remain “Compatible” with the SIGN(u, y) function provided by ancient Fortran programming languages.)
Note that this algorithm, unlike others less carefully designed, copes properly with the special cases z = 0 and z = x < 0. The algorithm’s use of |x| to first compute u avoids cancellation in case y ≈ 0 > x. Then the test “ u = 0 ” precludes subsequent division by zero. The test “ x < 0 ” compensates for the earlier use of |x| , and thus avoids the need to compute a third square root √(( –|x| + √(x^2 + y^2 ) )/2) , which would suffer from roundoff anyway. Then the test implicit in the CopySign function implements the complex square root’s discontinuity accurately despite roundoff when y is extremely tiny. Except across that discontinuity, where x < 0 and y reverses sign, this algorithm for √(x + ı y) is obviously continuous in x and y. (A computer implementation must be complicated by measures taken to avoid premature exponent over/underflow when u is first computed.)
x y
Prof. W. Kahan Page 2/
Problem 3: For any nonzero complex constant ç define ƒ(z) := ç·√(z/ç^2 ). Apparently
ƒ(z)^2 = z for all arguments z but ƒ(z) = +√z for some and ƒ(z) = –√z for others; which?
Solution 3: ƒ(0) = +√0 = +0. Henceforth assume z ≠ 0 ; let Ø := arg(z) and Ç := arg(ç) , so –π < Ø ≤ π and –π < Ç ≤ π. Now ƒ(z)/√z = ±1 depending upon Ø and Ç , not upon |z| nor |ç| , thus:
H mod 2π := H if – π < H ≤ π , := H – 2π if π < H ≤ 3 π , or := H + 2π if –3π < H ≤ – π.
= π if -3π < H ≤ π or π < H ≤ 3 π. For our purposes –3π < H := Ø–2Ç ≤ 3 π , whence comes a table showing the ranges of Ø over which ƒ(z) = ±√z :
I.e. , ƒ(z) is a square root of z discontinuous across a slit along arg(z) = 2Ç – CopySign(Ç, π).
Problem 4: Although √p·q = √p·√q for all nonnegative real p and q , the principal square root of complex arguments p and q does not always satisfy that identity. a) For which arguments p and q does √p·q ≠ √p·√q? What happens instead? b) For which complex arguments z does √(1 – z^2 ) = √1–z·√1+z? c) For which complex arguments w does √(w^2 – 1) = √w–1·√w+1? ( This problem is very hard if approached naively.)
Solution 4(a): √p·q = –√p·√q unless –π < arg(p) + arg(q) ≤ π. Why? See Solution 3.
Solution 4(b): √(1 – z^2 ) = √1–z·√1+z for all z. Why? Compare derivatives.
Solution 4(c): √(w^2 – 1) = √w–1·√w+1 just when Re(w) > 0 or Re(w) = 0 ≤ Im(w). Why? The neat proof appeals to the Monodromy Theorem, which will be taken up later.
Problem 5: £ is the straight line through two given points b and b+ç in the complex z-plane. (a) What equation must z satisfy when it lies on £? (b) Find a formula for |z – £| , the shortest distance from z to £ if z is not on £. (c) Given a point ƒ not on £ , “ |z–ƒ| = |z–£| ” is the equation of a Parabola whose Focus is ƒ and Directrix is £. Obtain an equivalent equation in terms exclusively of z, b, ç and ƒ without the square root implicit in |…|.
Solution 5(a): Im((z–b)/ç) = 0 , or equivalently Im(ç·(z–b)) = 0. Solution 5(b): |z–£| = |ç·Im((z–b)/ç)| because the point on £ nearest z is z – ı ç·Im((z–b)/ç).
Solution 5(c): |(z–ƒ)/ç|^2 = Im((z–b)/ç)^2 , or equivalently |ç·(z–ƒ)|^2 = Im(ç·(z–b))^2.
Solutions for Problems 6 and 7 can be found in the class notes on Conic Sections in the Complex z-plane.
Ø = arg(z) - π < Ç = arg(ç) ≤ 0 0 ≤ Ç = arg(ç) ≤ π ƒ(z) = –√z 2Ç+π < Ø ≤ π – π < Ø ≤ 2Ç–π ƒ(z) = +√z – π < Ø ≤ 2Ç+π 2Ç–π < Ø ≤ π