Hansen's problem

In trigonometry, Hansen's problem is a problem in planar surveying, named after the astronomer Peter Andreas Hansen (1795–1874), who worked on the geodetic survey of Denmark.

There are two known points A, B, and two unknown points P1, P2.

From P1 and P2 an observer measures the angles made by the lines of sight to each of the other three points.

The problem is to find the positions of P1 and P2.

See figure; the angles measured are (α1, β1, α2, β2).

Since it involves observations of angles made at unknown points, the problem is an example of resection (as opposed to intersection).

Define the following angles:

As a first step we will solve for φ and ψ.

The sum of these two unknown angles is equal to the sum of β1 and β2, yielding the equation

ϕ + ψ =

A second equation can be found more laboriously, as follows.

The law of sines yields

sin ⁡ ϕ

sin ⁡ δ

sin ⁡ ϕ sin ⁡ δ

Entirely analogous reasoning on the other side yields

sin ⁡ ψ sin ⁡ γ

Setting these two equal gives

sin ⁡ ϕ

sin ⁡ ψ

Using a known trigonometric identity this ratio of sines can be expressed as the tangent of an angle difference: Where

sin ⁡ ϕ

sin ⁡ ψ

Once we solve the two equations for the two unknowns φ, ψ, we can use either of the two expressions above for

We can then find all the other segments using the law of sines.

[1] We are given four angles (α1, β1, α2, β2) and the distance AB.

sin ⁡ ϕ sin ⁡ δ

sin ⁡ ψ sin ⁡ γ

If one of these fractions has a denominator close to zero, use the other one.

In addition to presenting algorithms for solving the problem via Vector Geometric Algebra and Conformal Geometric Algebra, Ventura et al.[2] review previous methods, and compare the various methods' computational speeds and sensitivity to measurement error.