Shapes & spaces

Complex Mobius transformation calculator from three point correspondences

Recover a general complex projective transformation from three ordered source/target pairs and map query points.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Recover a general complex projective transformation from three ordered source/target pairs and map query points. Existing page classifies an already supplied real matrix acting hyperbolically.

THE FORMULAT(z)=(a*z+b)/(c*z+d), ad-bc≠0; T(z_i)=w_i for i=1,2,3. Matrix coefficients are equivalent up to a nonzero common factor.

A worked example

For the pairs 0→0, 1→1 and infinity→infinity, the recovered map is the identity. Queries 2+3i and infinity map to themselves. A second reference sends 0→1, 1→1+i and infinity→infinity, giving T(z)=i*z+1.

Good to know

Exactly three pairwise-distinct points in each triple on the extended complex plane; at most one infinity per triple; 1–20 queries; bounded finite real/imaginary coordinates; reject unresolved near-collisions.

Pair three distinct source and target points

A complex Mobius transformation is determined by the images of three ordered distinct points on the extended complex plane. Each source row is paired with the target row at the same position. Reordering only one triple changes the transformation.

Distinctness is required separately within each triple. If two source points coincide while their targets differ, no function can satisfy the data. Even matching duplicate pairs fail to determine a unique Mobius transformation, so they are outside this three-point interface.

Three ordered point correspondences recover a general complex Mobius mapsource planetarget plane0111+iT(z)=iz+1infinity maps to infinity
Scroll across to see the full diagram.
Three ordered point correspondences recover a general complex Mobius map. The affine example rotates the source direction and translates the origin.

Compare this with the Hyperbolic isometry classification calculator from a real Mobius matrix. Recover a general complex projective transformation from three ordered source/target pairs and map query points. Existing page classifies an already supplied real matrix acting hyperbolically.

Represent infinity projectively

The extended complex plane includes one point at infinity. A finite z can be represented by the homogeneous vector (z,1), while infinity is represented by (1,0). This makes finite and infinite inputs part of one algebraic model.

Use an explicit infinity token rather than a large sentinel coordinate. A huge finite point still has a finite image and can create artificial overflow. Homogeneous formulas instead preserve the exact distinction and avoid dividing by a vanishing affine denominator too early.

Construct the map through a normalized triple

First build a transformation taking the source triple to a chosen reference triple, such as 0,1,infinity. Build the analogous transformation for the target triple. Composing the source map with the inverse target map gives the requested correspondence.

Wedge products of homogeneous vectors handle the necessary differences without separate ad hoc formulas for each placement of infinity. A nonzero determinant verifies that the result is a genuine projective transformation rather than a constant or singular map.

Understand projective coefficient normalization

Multiplying a,b,c,d by the same nonzero complex number leaves T unchanged. The coefficient matrix is therefore not unique as a literal array. Choose and state a normalization so repeated evaluations give a stable displayed representation.

When validating against another implementation, compare mapped points and projective residuals rather than requiring identical coefficients. Two matrices differing by an overall sign or phase can describe exactly the same transformation.

Check identity, complex affine and inversion references

The identity correspondence leaves every query unchanged. The map i*z+1 rotates by a quarter-turn and translates; it sends 2+3i to -2+2i. These checks exercise complex arithmetic beyond a purely real input.

Inversion z↦1/z exchanges zero and infinity while fixing one. It sends i to -i and two to one half. This reference is particularly useful because it checks explicit infinity handling and a finite query whose image crosses to a different complex direction.

Use inverse and cross-ratio checks

The inverse transformation exchanges the source and target triples. Applying the map and then its inverse should recover a query as a projective point, including cases where one intermediate value is infinity. This is a stronger check than testing the three fitting points alone.

Mobius transformations preserve cross-ratios. A fourth query can therefore be checked against the three correspondence points using a fixed cross-ratio convention. Different published order conventions are equivalent only after their argument order is translated consistently. The three source points are transformed to infinity, one and zero by a projective normalization; the inverse target normalization then maps them to the requested targets. Homogeneous coordinates handle infinity without assigning it a large arbitrary number. The result is unique only up to a common nonzero scalar on all four matrix entries. Consequently two correct matrix outputs may differ while defining the same transformation. The correspondence checks and mapped queries are the practical comparison. A query at the pole maps to infinity, whereas nearly coincident defining points can make reconstruction unresolved and are rejected before a misleading matrix is printed.

Separate complex reconstruction from hyperbolic classification

This construction allows general complex coefficients and arbitrary source and target triples on the sphere. It does not require the transformation to preserve the upper half-plane or unit disk. A real hyperbolic isometry classifier answers a more specialized question.

Near-colliding points can make the reconstruction numerically sensitive even though the mathematical map is unique. Use scaled projective residuals and explicit conditioning checks. Reject unresolved cases instead of treating an enormous coefficient as proof that the transformation is invalid.

A few questions, answered

Why must the three points be distinct?

Three distinct points determine the transformation uniquely. Duplicate data either contradict a function or leave too few independent conditions for this interface.

Can a source or target be infinity?

Yes. Use the explicit infinity representation. At most one entry in either distinct triple can be infinity.

Are the matrix coefficients unique?

No. Multiplying all four coefficients by the same nonzero complex factor gives the same map. The program should state its normalization.

Is every result a hyperbolic isometry?

No. General complex Mobius maps need not preserve a chosen hyperbolic half-plane or disk. Additional coefficient or domain conditions are required.

Find your calculator

Start typing to explore the library.