Each answer here was worked out by hand, without RatMath, before the RatMath code was written. Where the arithmetic is long, the working says how it was checked.
1.Arithmetic
Compute (1+2i)(3−i) and 3−i1+2i.
Answer
3−i+6i−2i2=5+5i. 10(1+2i)(3+i)=101+7i.
2.Polar form
Write −1+i in polar form.
Answer
r=2, θ=3π/4 (second quadrant), i.e. 83 of a full turn: −1+i=2e3πi/4.
3.Roots
Find the three cube roots of −8.
Answer
−8=8eiπ: roots 2ei(π+2kπ)/3, i.e. 1+i3, −2, 1−i3.
4.Exponential
Compute e1+i.
Answer
e(cos1+isin1)≈1.4686939+2.2873553i.
5.Principal logarithm
Find the principal value Log(−1−i).
Answer
ln∣−1−i∣+iArg=21ln2−43πi≈0.3465736−2.3561945i.
6.Complex powers
Find the principal value of ii.
Answer
ii=eiLogi=ei⋅iπ/2=e−π/2≈0.2078796, a real number.
7.Trigonometric functions
Compute sini.
Answer
sini=2ie−1−e=isinh1≈1.1752012i.
8.Cauchy–Riemann equations
Check that f=(x2−y2)+2xyi satisfies the Cauchy–Riemann equations.
Answer
ux=2x=vy and uy=−2y=−vx. (It is f=z2.)
9.Contour integral
Compute ∮∣z∣=1zdz, counter-clockwise.
Answer
z=eit: ∫02πidt=2πi.
10.Cauchy's integral formula
Compute ∮∣z∣=2z−1ezdz.
Answer
2πie1≈17.0794684i.
11.Residue at a simple pole
Find Resz=iz2+11.
Answer
2z1z=i=2i1=−2i.
12.Residue at a higher-order pole
Find Resz=0z3ez.
Answer
The coefficient of z2 in ez: 21.
13.Real integral by residues
Evaluate ∫−∞∞(1+x2)2dx.
Answer
Double pole at i in the upper half-plane: Res=dzd(z+i)−2i=−2(2i)−3=4i1. Integral =2πi⋅4i1=2π.
14.Trigonometric integral
Evaluate ∫02π2+cosθdθ.
Answer
With z=eiθ it becomes ∮i(z2+4z+1)2dz; the pole inside is −2+3 with residue 231⋅i2. Total 32π≈3.6275987.
15.Laurent series
Find the Laurent series of z(1−z)1 in 0<∣z∣<1, up to z2.
Answer
z1⋅1−z1=z1+1+z+z2+⋯: every coefficient from a−1 on is 1.
16.Classifying singularities
Locate and classify the singularities of (z2+1)2sinzez in the square ∣Rez∣,∣Imz∣≤2.
Answer
sinz=0 at z=0 only in the square (±π lie outside): a simple pole. (z2+1)2 vanishes to order 2 at ±i: double poles. ez never vanishes, so nothing cancels.
17.Counting zeros
How many zeros does z5+3z+1 have in ∣z∣<1?
Answer
On ∣z∣=1, ∣z5+1∣≤2<3=∣3z∣, so by Rouché it has as many zeros as 3z: one.
18.Möbius maps
Under T(z)=z+iz−i, find T(0), T(1) and T(i). Where does the real line go?
Answer
T(0)=−1, T(1)=1+i1−i=−i, T(i)=0. Real x has ∣x−i∣=∣x+i∣, so the real line goes to the unit circle (and the upper half-plane to the disc).
19.Fixed points and type
Find the fixed points of T(z)=z+12z+1 and classify the map.
Answer
z2+z=2z+1: z2−z−1=0, z=21±5. tr2/det=9>4 and real: hyperbolic.