How this calculation works
Classify an orientation-preserving real Mobius transformation and inspect its fixed points and upper-half-plane action.
T(z)=(az+b)/(cz+d); discriminant=(a+d)^2-4(ad-bc); cosh d(z,w)=1+|z-w|^2/(2 Im(z)Im(w)).A worked example
The determinant-one matrix diag(2,0.5) sends i to 4i. It is hyperbolic, fixes zero and infinity, and has translation length log(4), approximately 1.386294361.
Good to know
Real rational 2×2 matrix with positive determinant, normalized modulo scale; bounded upper-half-plane query points. Identity separated from parabolic, elliptic and hyperbolic cases; fixed-point and hyperbolic-distance preservation checks. No complex loxodromic or orientation-reversing variants.
Reference: Primary method or official documentation (opens in a new tab) ↗
The upper-half-plane action
A real two-by-two matrix with positive determinant acts on complex points by a fractional linear transformation. Points with positive imaginary part remain in the upper half-plane, where distance is measured by the hyperbolic metric. The matrix entries are therefore a compact description of an orientation-preserving hyperbolic isometry, not an ordinary affine map of the drawing plane.
Multiplying all four entries by any nonzero real number leaves the transformation unchanged. In particular, opposite matrices describe the same geometric action. Classification should consequently use scale-invariant information or normalize the determinant first. Looking at the raw matrix trace without accounting for determinant can misclassify a perfectly valid transformation.
Compare this with the Hyperbolic distance in the upper half-plane calculator. Classify and apply an upper-half-plane isometry with its fixed points, axis or rotation data, rather than measure distance between two points.
Inputs, normalization and valid points
Enter the matrix in two rows and a query point as its real coordinate followed by its positive imaginary coordinate. The determinant must be strictly positive and numerically resolved. A zero determinant gives a collapsed fractional map, while a negative determinant does not belong to the orientation-preserving upper-half-plane family implemented here.
The normalized trace test compares squared trace with four times the determinant. This avoids an unnecessary square root during the classification step. Near equality requires care, because small arithmetic changes can switch between elliptic, parabolic and hyperbolic classifications. If the discriminant cannot be distinguished reliably from zero, the result should explicitly report that numerical uncertainty.
The four possible statuses
An elliptic transformation has a fixed point inside the upper half-plane and acts as a hyperbolic rotation about it. A nonidentity parabolic transformation has one repeated boundary fixed point. A hyperbolic transformation has two distinct boundary fixed points and translates along the geodesic joining them. Infinity is a valid boundary point when the fixed-point equation loses its quadratic term.
The identity must be checked separately. It has zero discriminant but fixes every point, so calling it parabolic would lose essential information. Matrices proportional to the identity produce this same status. This distinction is especially useful when testing a matrix and its inverse: their composition should become an identity action, regardless of the representative's overall scale.
Reading fixed points correctly
Solving c z squared plus (d minus a) z minus b equals zero gives the finite fixed points. For elliptic input, exactly one of the conjugate roots lies in the upper half-plane. For a hyperbolic matrix with c equal to zero, the second fixed point may lie at infinity rather than appear as an extremely large finite coordinate.
Fixed points are geometric invariants of the action, but a query point generally moves. Do not confuse the query's displacement with translation length. The latter is the smallest displacement over the hyperbolic plane and is attained on the axis for a hyperbolic transformation. A point away from that axis usually travels a greater hyperbolic distance.
A dilation along the vertical axis
The default matrix is diagonal with entries two and one half. Its determinant is one and its trace is two and one half, so the trace discriminant is positive. The transformation multiplies every upper-half-plane point by four. Its boundary fixed points are zero and infinity, and the positive imaginary axis is its translation axis.
The default point i is sent to 4i. Their hyperbolic distance is log four, approximately 1.386294361. This also equals the translation length because both points lie on the axis. On the displayed Euclidean picture, the vertical coordinates differ by three; that Euclidean difference is not the hyperbolic distance and should not be substituted for it.
Checking metric preservation
The hyperbolic distance formula uses the two imaginary coordinates as well as their Euclidean separation. Applying the transformation to two points should preserve this distance. A round-trip check with the inverse matrix provides another useful diagnostic. Both tests are sensitive to errors in complex division, denominator handling or the choice of imaginary-coordinate sign.
For a real matrix with positive determinant, the transformed imaginary part equals determinant times the original imaginary part divided by the squared modulus of the denominator. This is a direct positivity check that does not depend on the classification label. A residual that fails near a poorly conditioned denominator is a reason to withhold a precise numerical answer.
Scope of the classification
This page covers real orientation-preserving isometries of the upper half-plane. It does not classify general complex Mobius matrices, three-dimensional loxodromic motions or orientation-reversing transformations. Those extensions use different geometric models and cannot be inferred solely from the real trace cases displayed here. A fixed-point result should be interpreted within this stated model.
The query is a mathematical point, not a physical trajectory sampled over time. The matrix describes one complete isometry. If repeated iterations are used elsewhere, their behavior follows from the class and fixed-point structure, but this single-step calculation does not estimate a physical speed, a travel time or a Euclidean rigid rotation angle.
A few questions, answered
Why do A and minus A give the same result?
The common scalar cancels from numerator and denominator of the fractional transformation.
Is the identity parabolic?
No. It is separated because every point is fixed, unlike a nonidentity parabolic action.
Can a fixed point be infinity?
Yes. Infinity belongs to the boundary of the upper-half-plane model.
Is query displacement always the translation length?
No. For a hyperbolic map it equals translation length only on the invariant axis.