Constructing Hyperbolic Triangles in the Upper Half Plane

From angle data to explicit geodesics in the upper half plane.

Hyperbolic triangles are completely determined by their angles. This is already different from Euclidean geometry, where fixing three angles leaves a whole family of similar triangles, one for every possible scale. In the hyperbolic plane there is no scaling ambiguity: fix the angles and the side lengths are fixed as well.

There is also a different condition on which angles are possible. The angles of a Euclidean triangle sum to π\pi, while those of a hyperbolic triangle sum to less than π\pi. In fact the deficit is exactly its area:

area(T)=π(α+β+γ)\operatorname{area}(T)=\pi-(\alpha+\beta+\gamma)

For every α,β,γ>0\alpha,\beta,\gamma>0 with α+β+γ<π\alpha+\beta+\gamma<\pi, there is a unique hyperbolic triangle with those angles, up to isometry. Our goal in this note is to construct that triangle explicitly. We will write down its three bounding geodesics in the upper half plane, each described by its endpoints in R=R{}\overline{\mathbb{R}}=\mathbb{R}\cup\{\infty\}. From these coordinates we can draw the triangle directly.

Our first choice is a model. We will work in the upper half plane, where geodesics are vertical lines or semicircles centered on the real axis. The model is conformal, so the hyperbolic angles between geodesics are the Euclidean angles visible in the picture.

The Right-Angled Case

Right angles simplify the construction, so we begin with a triangle whose angles are

π2,β,γ\frac{\pi}{2},\qquad \beta,\qquad \gamma

We only need one representative of its isometry class, so move the right-angled vertex to ii, then rotate about ii until one side is the vertical geodesic

γ1{0,}\gamma_1\longmapsto\{0,\infty\}

The other side through ii must cross the vertical at a right angle. Its tangent at ii is therefore horizontal, so its radius there is vertical. Since its center lies on the real axis, the center can only be 00 and the radius can only be 11:

γ2{1,1}\gamma_2\longmapsto\{-1,1\}

This fixes the first two sides. The third side must now supply both remaining angles.

Reading the Angles of a Circle

Write the third side as a semicircle with center cc and radius ρ\rho. These are the two unknowns in the problem. Before solving for them, we first determine the forward relationship: given cc and ρ\rho, what angles does this circle make with the two sides already placed?

Drag cc and ρ\rho to move through this two-dimensional space of circles and watch the two crossing angles respond.

Its crossing with the vertical occurs at height

h=ρ2c2h=\sqrt{\rho^2-c^2}

We want to express this angle in terms of cc and ρ\rho, but the tangent and the vertical do not bound a triangle with those lengths. Rotate both through a quarter turn. The tangent becomes the circle’s radius, the vertical becomes a horizontal line, and their angle does not change because both lines were rotated by the same amount.

These two new directions are parallel to the sides meeting at the center of the Euclidean right triangle drawn below. Thus its angle at cc is the same θ1\theta_1 we started with at the crossing. The triangle has hypotenuse ρ\rho and adjacent side c|c|, so

cosθ1=cρ\cos\theta_1=\frac{|c|}{\rho}

The crossing with the unit circle gives another Euclidean triangle: its three sides are the two radii 11 and ρ\rho, together with the distance c|c| between their centers. The ordinary law of cosines gives

c2=1+ρ22ρcosθ2c^2=1+\rho^2-2\rho\cos\theta_2

We now reverse this process, beginning with the two angles and solving for cc and ρ\rho.

Solving for a Right Triangle

Now we run the two equations backwards. Asking for θ1=β\theta_1=\beta fixes the ratio of center to radius,

c=ρcosβ|c|=\rho\cos\beta

The two signs of cc give mirror-image pictures, so choose the center on the left:

c=ρcosβc=-\rho\cos\beta

Asking for θ2=γ\theta_2=\gamma and substituting this value of cc gives

ρ2cos2β=1+ρ22ρcosγ0=sin2 ⁣βρ22cosγρ+1\begin{aligned} \rho^2\cos^2\beta&=1+\rho^2-2\rho\cos\gamma\\[4pt] 0&=\sin^2\!\beta\,\rho^2-2\cos\gamma\,\rho+1 \end{aligned}

Thus the construction has come down to one quadratic:

ρ=cosγ±cos2γsin2βsin2β\rho=\frac{\cos\gamma\pm\sqrt{\cos^2\gamma-\sin^2\beta}}{\sin^2\beta}

The expression under the square root is nonnegative exactly when

cosγsinβ=cos(π2β)\cos\gamma\geq\sin\beta=\cos\left(\frac\pi2-\beta\right)

or equivalently

π2+β+γπ\frac\pi2+\beta+\gamma\leq\pi

Thus the quadratic reproduces the angle-sum condition. When the sum is less than π\pi there are two real roots; at equality they merge; when the sum is greater than π\pi there is no real circle satisfying the two angle conditions.

TheoremA Right Triangle from Its Angles

For π2+β+γ<π\frac\pi2+\beta+\gamma<\pi, a triangle with angles π2,β,γ\frac\pi2,\beta,\gamma is bounded in the upper half plane by

γ1{0,}γ2{1,1}γ3{cρ,c+ρ}\begin{aligned} \gamma_1&\longmapsto\{0,\infty\}\\[2pt] \gamma_2&\longmapsto\{-1,1\}\\[2pt] \gamma_3&\longmapsto\{c-\rho,c+\rho\} \end{aligned}

where

ρ=cosγ+cos2γsin2βsin2β,c=ρcosβ.\rho=\frac{\cos\gamma+\sqrt{\cos^2\gamma-\sin^2\beta}}{\sin^2\beta}, \qquad c=-\rho\cos\beta.

The two roots are the two circles shown in the figure. They are exchanged by the hyperbolic half-turn about ii,

H(z)=1zH(z)=-\frac1z

which preserves the first two sides and sends height hh on the vertical to 1/h1/h. Indeed, Vieta’s formula shows that the two crossing heights h±=ρ±sinβh_\pm=\rho_\pm\sin\beta satisfy

h+h=1h_+h_-=1

Thus one triangle lies above ii and the other below it. They are isometric, and our formula simply chooses the larger root.

At the limiting value π2+β+γ=π\frac\pi2+\beta+\gamma=\pi, the two roots merge. Since their heights still satisfy h+h=1h_+h_-=1, their common height must be h=1h=1. The second vertex has collided with ii, the third side passes through ii as well, and all three geodesics meet at one point. The triangle has collapsed to zero area.

The General Case

For a general triangle, keep the first side vertical and normalize the second side to be a circle of radius 11. If its center is aa, the same angle calculation as before shows that it meets the vertical at angle α\alpha when

a=cosαa=\cos\alpha

The crossing has height sinα\sin\alpha, so the second side is

γ2{cosα1,cosα+1}\gamma_2\longmapsto\{\cos\alpha-1,\cos\alpha+1\}

At α=π/2\alpha=\pi/2 the center returns to zero, recovering the previous picture.

The third side is again a circle of radius ρ\rho and center

c=ρcosβc=-\rho\cos\beta

Only one distance in the previous calculation changes. The centers of the two circles are now aa and cc, so their separation is aca-c rather than c|c|. Requiring them to cross at angle γ\gamma gives

(ac)2=1+ρ22ρcosγ(a-c)^2=1+\rho^2-2\rho\cos\gamma

Substitute a=cosαa=\cos\alpha and c=ρcosβc=-\rho\cos\beta, expand, and use 1cos2α=sin2α1-\cos^2\alpha=\sin^2\alpha:

sin2 ⁣βρ22(cosγ+cosαcosβ)ρ+sin2 ⁣α=0\sin^2\!\beta\,\rho^2-2\left(\cos\gamma+\cos\alpha\cos\beta\right)\rho+\sin^2\!\alpha=0

This is the right-triangle quadratic with one extra term. To examine its discriminant, abbreviate

B=cosγ+cosαcosβB=\cos\gamma+\cos\alpha\cos\beta

The discriminant is

B2sin2αsin2β=(Bsinαsinβ)(B+sinαsinβ)=(cosγ+cos(α+β))(cosγ+cos(αβ)).\begin{aligned} B^2-\sin^2\alpha\sin^2\beta &=(B-\sin\alpha\sin\beta)(B+\sin\alpha\sin\beta)\\ &=\bigl(\cos\gamma+\cos(\alpha+\beta)\bigr) \bigl(\cos\gamma+\cos(\alpha-\beta)\bigr). \end{aligned}

For an admissible triple, α+β<πγ\alpha+\beta<\pi-\gamma, so the first factor is positive, and the second is positive as well. At α+β+γ=π\alpha+\beta+\gamma=\pi, the first factor vanishes. Therefore the construction gives real circles throughout the hyperbolic range, and its two solutions merge exactly when the angle sum reaches π\pi.

TheoremA Hyperbolic Triangle from Its Angles

For every α,β,γ>0\alpha,\beta,\gamma>0 with α+β+γ<π\alpha+\beta+\gamma<\pi, a triangle with those angles is bounded in the upper half plane by

γ1{0,}γ2{cosα1,cosα+1}γ3{cρ,c+ρ},\begin{aligned} \gamma_1&\longmapsto\{0,\infty\}\\[2pt] \gamma_2&\longmapsto\{\cos\alpha-1,\cos\alpha+1\}\\[2pt] \gamma_3&\longmapsto\{c-\rho,c+\rho\}, \end{aligned}

where

ρ=B+B2sin2αsin2βsin2β,c=ρcosβ,B=cosγ+cosαcosβ.\rho=\frac{B+\sqrt{B^2-\sin^2\alpha\sin^2\beta}}{\sin^2\beta}, \qquad c=-\rho\cos\beta, \qquad B=\cos\gamma+\cos\alpha\cos\beta.

Its vertices are the pairwise crossings of these three geodesics.

The two roots still describe the same triangle twice. Their vertical crossing heights satisfy

h+h=sin2αh_+h_-=\sin^2\alpha

and the half-turn about the first vertex (0,sinα)(0,\sin\alpha) sends hh to sin2α/h\sin^2\alpha/h while preserving the first two geodesics. It exchanges the two roots, just as it did in the right-angled picture.

This also proves uniqueness. After the first two sides have been normalized, the angle conditions leave only these two isometric placements for the third. Equivalently, the second hyperbolic law of cosines reads

coshγ=cosγ+cosαcosβsinαsinβ\cosh \ell_\gamma=\frac{\cos\gamma+\cos\alpha\cos\beta}{\sin\alpha\sin\beta}

where γ\ell_\gamma is the side opposite γ\gamma. Thus the angles determine a side length on their own. Euclidean triangles have similarity; hyperbolic triangles do not.

Together these formulas give an explicit representative of the unique triangle associated to every point

{(α,β,γ)>0:α+β+γ<π}\{(\alpha,\beta,\gamma)>0:\alpha+\beta+\gamma<\pi\}

in the space of hyperbolic triangles. Unlike the right-angled pentagons and hexagons considered in the notes that follow, there are no additional side-length parameters: for a triangle, the angles determine everything.

← All notes