Introduction

A classical Greek topic in geometry was to determine the regular polygons that are constructible by compass and ruler, in a finite number of steps. The equilateral triangle, the square, the pentagon and the hexagon all are constructible, but heptagon is not, nor is the nonagon. A related classical topic is the ruler and compass construction of the angle of 40°, that is, the angle in the centre of a nonagon pointing to two adjacent vertices. In the late eleventh century, Muslim architects and mathematicians discovered some approximate constructions of the regular nonagon. Indeed, in the Seljuk period (1038–1194) and in Mamluk architecture (1250–1517) geometric decorations show mainly patterns with stars with five, six, eight and ten points, as well as twelve and sixteen, although some stars with seven and nine points appear as well, and even some stars with eleven and thirteen points (Fig. 1).

Fig. 1
figure 1

a Left Mamluk woodwork on the minbar in al-Ghuriyya Complex, Cairo, Egypt (1505) (Wade Photo Archive EGY1722); b right star dome of the Shrine of Shah Ni’Matuollahi in Mahan, Iran (1436) (WADE Photo Archive IRA 2313)

Later on, some nine-pointed stars appear (in other words, concave eighteen-sided polygons) made by connecting vertices of other constructible polygons. However, the regular convex nonagon is not frequently determined by these methods. Almost regular nonagons placed over a net of regular hexagons can be found in the balustrade leading to the minbar of the Selimiye Mosque in Edirne (Turkey, 1569–1575; Fig. 2).

Fig. 2
figure 2

Minbar of the Selimiye Mosque in Edirne (Wikimedia Commons) and detail of the decoration in woodwork carved (WADE Photo Archive TUR 0117)

This kind of ornament also occurs in Hagia Sophia in the top of the frieze and in the stucco carvings of the gallery or mahfil of Sultan Murad III (1574–1595; Fig. 3), in the grill on the upper level of the Library of Sultan Mahmud I (1739; Fig. 4), and in the minbar in the rosette decorating the end of the staircase (Fig. 5).

Fig. 3
figure 3

a Left Muezzin galleryor mahfil, Hagia Sophia; b right a detail of the stucco carving in the frieze. Photos: authors

Fig. 4
figure 4

a Left the Library of Sultan Mahmum I, Hagia Sophia; b right detail of the grill on the upper level. Photos: authors

Fig. 5
figure 5

a Left Minbar of Hagia Sophia; b right detail of the rosette in the panel decorating the end of the stairway. Photos: authors

The use of the nonagon is not frequent. It is remarkable that this particular grid of interlocking nonagons and hexagons often appears in the decorations of the works of Ottoman architect Mimar Sinan. Decorations similar to those in the Selimiye Mosque and the Hagia Sophia can be seen in his mausoleum of Shehzade Mehmet in Istanbul (1557; Fig. 6) and in the balcony of the minaret in the Mihrimah Sultan Camii in Uskudar, Istanbul (1546–1548). Also in Istanbul, the pattern occurs in the mausoleum of Koca Sinan Paşa (1596) by Mimar Davud Ağa, a student of Mimar Sinan. Surprisingly, the pattern appears in India too, in a panel decorating the outside of the Red Fort in Agra, built by the Mughal dynasty in the time when the Ottoman Empire reached until India (1550 EC), and in the Jaypur Palace built during the Rajput dynasty (Fig. 7).

Fig. 6
figure 6

a Left Sculpture of Master Sinan in the garden of the MET University, Ankara. Photo: authors; b right window grill of the Mausoleum of Shehzade Mehmet, Istanbul (WADE Photo Archive TUR 1130)

Fig. 7
figure 7

a Left Red Fort, Agra, India, 1550 EC (WADE Photo Archive IND 0336); b right Maharajah’s Palace, Jaipur, India, 1700 EC (WADE Photo Archive IND1006)

This paper studies the geometry of this nonagonal pattern. It presents original results for the regular nonagon and looks at practical ways to approximate its construction. It gives simple procedures for obtaining angles close to 40° that could have been useful for craftsmen to realize the nonagonal geometric patterns. Observation of the patterns provides mathematical arguments to analyse the hypothetical regularity of the nonagons of the pattern. Finally, the pattern will be constructed in different ways.

Mathematical Prerequisites

Given a regular nonagon ABCDEFGHI, the numbers α, β and γ (α < β < γ) usually denote the ratios between the three diagonals of the polygon and its side (see Fig. 8a). Without loss of generality, we will always consider regular nonagons with side AB = 1, so that AC = α = 1.87938…, AD = β = 2.53208… and AE = γ = 2.87938….

Fig. 8
figure 8

a Left The three “diagonal/side” ratios of the regular nonagon; b right equiangular (though not necessarily regular) hexagon ABDEGH and the derived equilateral nonagon

The six diagonals with common vertex A dissect the nonagon in seven triangles ABC, ACD,…, AHI, where \( \angle BAC = \angle CAD = \cdots = \angle HAI = 20^{ \circ } \), so that \( \angle BAE = 60^{ \circ } \) and \( \angle ABG = 60^{ \circ } \). Thus, the triangles ABJ, KDE and HLG shown in Fig. 8b are equilateral with side 1 and the quadrilateral ABDK is a parallelogram. Hence, Fig. 8b is an illustration of the relation γ = α + 1.

In Fig. 8 we define an equiangular hexagon, ABDEGH, with angles 120° and with sides of alternating lengths 1 and α. Three congruent isosceles triangles, CDB, EFG and HIA, with sides 1, 1 and α are added to it. Note that for any two lines segments of lengths a and b, with b/2 < a < b, we can construct a general equiangular hexagon with shorter side a and longer side b, deriving a nine-sided equilateral polygon whose regularity depends on the value of the ratio R = b/a where 1 < R < 2 (Fig. 9). Thus, each value of R generates an equilateral nonagon that will be regular only if R = α. The case a = b (R = 1) is not considered because that equality implies the hexagon is regular, and then the derived nonagon is an equilateral triangle. The case b/2 = a (R = 2) is not considered because the nonagon derived in a similar way is the initial hexagon.

Fig. 9
figure 9

The equiangular hexagon with alternating sides a and b (above) and equilateral nonagons for different values of R (below)

For each of these equilateral nonagons an equilateral triangle PQR is obtained by extending their sides AB, DE and HG (Fig. 10).

Since equilateral triangles allow covering the plane, equilateral convex nonagons and six-pointed stars may generate interesting tessellations using symmetries and equilateral triangles (Fig. 10). Elementary rosettes of these tessellations can be obtained by successive reflections with respect to one side, or equivalently, by successive rotations over 60° with a vertex as centre.

Fig. 10
figure 10

Left equilateral triangle PQR generated by the nonagon and its common mirror image by reflection with respectto r or by a rotation over 60° with centre the vertex O; right two rosettes

An additional translation of the nonagons towards the centre of the rosette generates an interesting family of patterns (Fig. 11). In Fig. 12 we recognize the rosette of the grill and derived friezes shown in Figs. 2, 3, 4, 5 and on the right of Fig. 11.

Fig. 11
figure 11

Translation of the triangles yields a rosette with interlaced nonagons

Fig. 12
figure 12

Overlaying diagrams showing the rosette of interlocking nonagons obtained by the extension of polygons beyond the boundary of the frieze. Overlay sand photos: authors; see Figs. 2 and 3)

The nonagons of the patterns in the given examples are perceived as regular, but later we will examine how close this apparent regularity comes to an exact regularity. Equilateral nonagons with easily perceptible irregularity appear in the decoration in the tympanum of Gonbad-e Sork, Maragha, Iran, dated 1148 (Fig. 13). This unique intricate pattern shows a layer of interlaced non-regular nonagons shaped as on the right of Fig. 10, but with alternating up-down orientation. A layer of dodecagons is added, over a double hexagonal net. Although the variable orientation of the nonagons implies differences in the rosette as a whole, this decoration can be considered an example of the generation of nonagonal patterns by the given procedure. Figure 14 shows how the external ring of nonagons is the reflection of the central rosette, which results after some translation of the nonagons of an initial rosette as given in the right of Fig. 10.

Fig. 13
figure 13

a Left Gonbad-e Sork’s tower in Maragha, Iran. Photo: Wikimedia Commons; b right detail

Fig. 14
figure 14

Drawing by the authors of the decoration of the tympanus of Gonbad-e Sork’s tower with the rosettes formed by irregular equilateral nonagons

The ratios α, β and γ satisfy a large number of relations between them (Steinbach 1997:26) thus generalizing the golden section. Sixteen different identities hold involving two or three of these ratios.

$$- \underline{{}} \left. {\begin{array}{*{20}c} {\frac{\alpha }{1} = \frac{1 + \beta }{\alpha } = \frac{\alpha + \gamma }{\beta } = \frac{\beta + \gamma }{\gamma }} \\ {\frac{\beta }{1} = \frac{\alpha + \gamma }{\alpha } = \frac{1 + \beta + \gamma }{\beta } = \frac{\alpha + \beta + \gamma }{\gamma }} \\ {\frac{\gamma }{1} = \frac{\beta + \gamma }{\alpha } = \frac{\alpha + \beta + \gamma }{\beta } = \frac{1 + \alpha + \beta + \gamma }{\gamma }} \\ \end{array} } \right\} \Rightarrow \begin{array}{*{20}c} {\alpha^{2} - 1 - \beta = 0} \\ {\beta^{2} = 1 + \beta + \gamma } \\ {\gamma^{2} = 1 + \alpha + \beta + \gamma } \\ \vdots \\ \end{array} $$

None of these equalities is used in this work, since all of our results will be obtained from the identities \( \gamma = \alpha + 1 \), \( \alpha^{3} - 3\alpha - 1 = 0 \) and \( \gamma^{3} - 3\gamma^{2} + 1 = 0 \). The relevance of equation \( x^{3} - 3x - 1 = 0 \) in the construction of the regular nonagon was known to (Al-Biruni 1954). He showed that the chord of 40° can be found if two cubic equations \( x^{3} - 3x - 1 = 0 \) and \( x^{3} - 3x + 1 = 0 \) can be solved (Hogendijk 1979). However, these equations are not independent and their solutions are related: the largest solution of the first equation is α = 1.87938524…, while the smallest solution of the second equation is −α. So, both equations of Al-Biruni imply the identity \( \alpha^{3} - 3\alpha - 1 = 0 \):

$$ x^{3} - 3x - 1 = 0\,\,\, \Rightarrow \,\,\,\alpha^{3} - 3\alpha - 1 = 0\,\, \Leftarrow \,\,\, - \alpha^{3} + 3\alpha + 1 = 0\,\,\, \Leftarrow \,\,\,\left( { - \alpha } \right)^{3} - 3\left( { - \alpha } \right) + 1 = 0\,\,\, \Leftarrow \,\,\,\,x^{3} - 3x + 1 = 0 $$

Also, because of the relation \( \alpha \, = \,\gamma - 1 \), the substitution for α in the equality \( \alpha^{3} - 3\alpha - 1 = 0 \), leads to the equality \( \gamma^{3} - 3\gamma^{2} + 1 = 0 \).

Applying the cosine law to the triangle ABC in Fig. 8 it follows that \( \alpha = 2\cos 20^{ \circ } \). Considering the triangles ACD and ADE, this property, combined with the sine and cosine law, implies that \( \beta^{2} = \alpha^{2} + 1 + \alpha \) and \( \sin \left( {20^{ \circ } } \right) = {{\sqrt 3 } \mathord{\left/ {\vphantom {{\sqrt 3 } {\left( {2\beta } \right)}}} \right. \kern-0pt} {\left( {2\beta } \right)}} \), respectively. Next, as \( \alpha \, = \,\gamma - 1 \), the angle of 20° can be evaluated through the following expressions:

$$ \sin \left( {20^{ \circ } } \right) = \frac{\sqrt 3 }{{2\,\sqrt {\alpha^{2} + \alpha + 1} }}\quad\sin \left( {20^{ \circ } } \right) = \frac{\sqrt 3 }{{2\,\sqrt {\gamma^{2} - \gamma + 1} }} $$
(1)

An extensive algebraic study of the ratios of the regular nonagon can be found in (Kappraff et al. 2004). In this paper the constants α, β and \( \gamma \), are determined as limits of the ratios of certain pairs of consecutive terms that are obtained by jumping over generalized Fibonacci sequences. However, because we are more interested in geometric aspects, we focus on a different sequence c n :

c n : 1, 1, 1, 3, 8, 23, 66, 190, 547, 1575, 4535, 13058, 37599, 108262,…

$$ c_{n} = 3c_{n - 1} - c_{n - 3} \,,\,\,n = 4,\,5,\,6, \ldots \quad \quad \frac{{c_{n + 1} }}{{c_{n} }}:\,\frac{1}{1},\,\frac{3}{1},\,\frac{4}{3},\,\frac{10}{4},\,\frac{15}{10},\, \ldots \mathop {\underrightarrow {n \to + \infty }} \gamma = 2.87938524. $$

It is defined by a recurrence relation, such that the ratios of pairs of consecutive terms \( {{c_{n + 1} } \mathord{\left/ {\vphantom {{c_{n + 1} } {c_{n} }}} \right. \kern-0pt} {c_{n} }}\, \) converge to \( \gamma \), similar to the Fibonacci sequence, where consecutive terms converge to the golden section.

A Trisection of the 60° Angle

An accurate classical Greek construction of an angle of 40° using compass and ruler in a finite steps is impossible. This problem is linked to the classic problem of the trisection of an angle, and here in the particular case of an angle of 60°, and also to methods for solving cubic equations (see Hogendijk 1979 and Özdural 2002). Figure 15a visualizes the equivalence between the construction of the regular nonagon and the trisection of the angle of an equilateral triangle. It is based on the construction of a triangle ADE with angles 20°, 60° and 100°, and with sides of lengths proportional to 1, β and γ. We will use consecutive terms of the sequence \( c_{n} \) to construct approximations of that triangle.

Fig. 15
figure 15

a Left exact trisection of the 60° angle and its importance for constructing the regular nonagon; b centre approximated trisection of 60°; c right deriving the equilateral nonagon ABCDEFGHI associated to the hexagon ABDEGH

Figure 15b shows an equilateral triangle with side \( c_{n} \) dissected into an isosceles triangle with sides d, d and \( c_{n} - 2c_{n - 1} \), and two triangles with sides \( c_{n} \), \( c_{n - 1} \) and d, and angles θ, 60° and 120° − θ. Thus, \( d^{2} = c_{n - 1}^{2} + c_{n}^{2} - 2c_{n - 1} c_{n} \cos 60^{ \circ } \) and \( {{c_{n - 1} } \mathord{\left/ {\vphantom {{c_{n - 1} } {\sin \theta }}} \right. \kern-0pt} {\sin \theta }} = {d \mathord{\left/ {\vphantom {d {\sin 60^{ \circ } }}} \right. \kern-0pt} {\sin 60^{ \circ } }} \). Therefore

$$ \sin \theta = \frac{{\sqrt 3 \,c_{n - 1} }}{2d} = \frac{{\sqrt 3 \,c_{n - 1} }}{{2\sqrt {c_{n - 1}^{2} + c_{n}^{2} - c_{n - 1} c_{n} } }} = \frac{\sqrt 3 }{{2\sqrt {\left( {\frac{{c_{n} }}{{c_{n - 1} }}} \right)^{2} - \left( {\frac{{c_{n} }}{{c_{n - 1} }}} \right) + 1} }} . $$
(2)

Note the similarity between the expressions (1) and (2). We approximated the angle of 20° by the angle θ, obtained using the constant γ and one of the ratios \( {{c_{n} } \mathord{\left/ {\vphantom {{c_{n} } {c_{n - 1} }}} \right. \kern-0pt} {c_{n - 1} }} \). The terms \( c_{n} \) can be expressed in the closed form \( c_{n} = Ax_{1}^{n} + Bx_{2}^{n} + Cx_{3}^{n} \), where A, B and C are arbitrary constants, and \( x_{1} \), \( x_{2} \) and \( x_{3} \) are the solutions of the characteristic equation of the recurrence relation \( x^{3} - 3x^{2} + 1 = 0 \). Thus, the error of the approximation \( \gamma \approx {{c_{n} } \mathord{\left/ {\vphantom {{c_{n} } {c_{n - 1} }}} \right. \kern-0pt} {c_{n - 1} }} \) can be evaluated by

$$ \frac{{c_{n} }}{{c_{n - 1} }} = \frac{{Ax_{1}^{n} + Bx_{2}^{n} + Cx_{3}^{n} }}{{Ax_{1}^{n - 1} + Bx_{2}^{n - 1} + Cx_{3}^{n - 1} }}\mathop {\underrightarrow {n \to + \infty } }\gamma . $$

Table 1 shows four approximations of the 40° angle using values of \( 2\theta \) obtained from (2).

Table 1 Successive approximations of \( \gamma \) using \( {{c_{n} } \mathord{\left/ {\vphantom {{c_{n} } {c_{n - 1} }}} \right. \kern-0pt} {c_{n - 1} }} \) and the corresponding approximations of the angle 40°

For instance, taking \( c_{5} = 8 \) and \( c_{6} = 23 \), we get θ = 20.0339…°. This implies a division of the side of the triangle into 23 parts and results in a dissection into the parts 8/23, 7/23 and 8/23. The equiangular hexagon shown in Fig. 8 right is determined by its triangular skeleton and the equiangular hexagon with sides 8 and diagonals 23 will result in a derived equilateral nonagon with sides 8 and third diagonal 23. The three central angles will be 2θ = 40.0679…°, alternating with two angles of \( 60^{ \circ } - \theta \). The dissection 8/23–7/23–8/23 produces nonagons that are perceived as regular by the naked eye (Fig. 16).

Fig. 16
figure 16

An almost regular nonagon obtained from the dissection 8–7–8 of the side of the equilateral triangle

From the eleventh century, several methods for approximating a construction of the regular nonagon are known in Islamic architecture. From the elements of the patterns with hexagons and nonagons, one can guess that the craftsmen applied an approximated solution of the trisection of the angle of 60°, consciously or not. However, we have to keep in mind that skilful craftsmen did not make the patterns by means of quotients of consecutive terms of recurrence sequences, nor by exact mathematical constructions, but using practical methods. The lack of accuracy in the geometric construction is obvious in the stucco marble frieze of the Mahfil in Hagia Sophia (Fig. 3) and in the panel of its minbar (Fig. 5). In contrast, the woodwork decoration of the minbar of Selimiye Mosque looks almost perfect (Fig. 2). We will see that the concept of the pattern seems to be the same and so perhaps the difference in the result can be explained by the materials used to execute them (wood, stucco, stone, etc.).

The mutual influence of the methods of mathematicians and craftsmen is well-known. There are several Persian medieval treatises about the ‘conversazioni’ between both groups (see, for example, Hogendijk 1979; Özdural 1996, 2002). Yet, the texts provide little information about what exactly the craftsmen’s method was. For instance, the construction of the nonagon is explained in these treatises without saying how it was actually done, probably because the better construction methods required solving a cubic equation or studying conics. Perhaps these topics were too advanced for craftsmen, who preferred methods like trialerror or dissection and composition. Thus, in view of the practical application, we searched for angles of about 20° in the shapes composed by simple polygons as the equilateral triangle, the square, the regular hexagon, the octagon and the dodecagon. Simple procedures for obtaining angles close to 40° could have been useful for craftsmen to realize the nonagonal geometric patterns.

Approximations of the 20° Angle

The 20.1° Angle, Starting from a Square and an Equilateral Triangle or a Regular Hexagon

The shape shown in Fig. 17a is composed, from top to bottom, by an equilateral triangle, a square and one half of hexagon, that is, three equilateral triangles. Hence the angle \( \angle POQ \) is equal to \( arctg\left( {{1 \mathord{\left/ {\vphantom {1 {\left( {\sqrt 3 + 1} \right)}}} \right. \kern-0pt} {\left( {\sqrt 3 + 1} \right)}}} \right) \approx 20.1^{ \circ } \).

Fig. 17
figure 17

a Left the angle of 20.1° from a square and three triangles; b, centre and c, right the 20.1° angle on two semi-regular tessellations

The angles of 60° and 90° in triangle POQ imply the angle 20.1° can be found in some semi-regular tessellations composed of hexagons, dodecagons, squares and triangles. Figure 17 shows the triangle POQ overlapping two semi-regular tessellations and Fig. 18 the nonagons determined in the corresponding tessellations.

Fig. 18
figure 18

Nonagons with angles 40.2°-39.9°-39.9° overlap two semi-regular tessellations

The 20.1° Angle, Starting from a Regular Octagon and a Dodecagon

The drawing in Fig. 19a is obtained as follows:

Fig. 19
figure 19

a Left construction of an angle of 20.1° using an octagon and a dodecagon; b right proof that the construction given in (a) is equivalent to the construction of Fig. 17

  1. 1.

    Draw a regular dodecagon and a chord of 90°, AB. Call its centre O.

  2. 2.

    Draw a regular octagon such that AB is a chord of 90°. Call its centre P.

  3. 3.

    Rotate the octagon over 60° around the point O so that P is mapped onto P’.

  4. 4.

    Call Q the vertex in the dodecagon such that the chord AO is 120°.

  5. 5.

    Drawing the segments PO, PQ and P′; then \( \angle OPQ \approx 39.9^{ \circ } \) and \( \angle QPP{\prime } \approx 20.1^{ \circ } \).

Using dynamic geometry software (such as Geogebra or Cabri) we can check in Islamic style, that is, by moving geometric shapes, that both preceding approximations of 20.1° are identical (Fig. 19b).

The 19.1° Angle

The tessellation by hexagons and equilateral triangles is especially interesting. Figure 20a determines the angle \( \angle POQ = \arccos \,\left( {{{11} \mathord{\left/ {\vphantom {{11} {14}}} \right. \kern-0pt} {14}}} \right) \approx 38.2^{ \circ } \) providing the approximation 19.1° for the 20° angle. This again produces an apparently regular nonagon in a very simple way (Fig. 20b). The angles of 19.1° and 38.2° can be constructed by just one single triangular net (Fig. 20c) and will play an important role in one of the proposed practical construction of the patterns. Note that the nonagon obtained from this method has its centre on the vertex point of \( \angle \) POQ which is located in the centre of one of the equilateral triangles of the net.

Fig. 20
figure 20

a left the 38.2° angle based on a hexagon and a six pointed star; b centre a nonagon with angles 38.2° and 40.9°; c right the same nonagon on a triangular net

Figure 21 summarizes some examples where a rosette is seen formed by six overlapping nonagons centred in the vertices of a hexagonal grid. Each of the elementary rosettes in these interlocked patterns can be thought of as generated by a nonagon that turns over 60° five successive times with respect to the centre of the hexagons of the grid, after decreasing the side of the hexagons of the grid.

Fig. 21
figure 21

Patterns found in the examples already considered

Different ratios r between the side of the hexagon and the nonagon lead to different variations of the pattern that we call pattern p(r). They have different visual aspects, but are geometrically equivalent. Figure 22 shows some patterns belonging on the family of patterns \( \left\{ {p\left( r \right):0 < r < + \infty } \right\} \), ordered by decreasing ratios.

Fig. 22
figure 22

Particular cases of the pattern p(r)

Note that the overlapping of the nonagons doesn’t happen when \( \gamma \ge \sqrt 3 \alpha \beta /3 \approx 2.75 \), and the central star of the rosette becomes like a six-petal shape if \( \gamma < \sqrt 3 /(6\sin 10^{ \circ } ) \approx 1.66 \). Thus, we will only consider patterns p(r) such that \( \sqrt 3 /(6\sin 10^{ \circ } ) \le \gamma < \sqrt 3 \alpha \beta /3 \). Assuming that the nonagons are regular, we will analyse the theoretical pattern p(r) from different points of view. To make it easier, we again suppose that the length of the side of the nonagon is 1 and the length of side of the hexagon is r.

Geometric Analysis of the General Family of Patterns p(r)

The interlaced nonagons and hexagons determine a tiling (for the initiated, it is of type p6 m (*632); see for instance Grünbaum and Shepard 1987) that can be obtained by edge to edge union of three different components or elementary tiles: I, an equilateral six-pointed star; II, an irregular convex pentagon we will call house; III, an irregular concave octagon we will call bow (see Fig. 23).

Fig. 23
figure 23

Elementary tiles I, II and III and basic polygon FGO

Some observations concerning the triangle FGO in Fig. 23:

  1. 1.

    The side of the nonagon has length 1. The side of the hexagon has length r, and is divided in three line segments FA, AB and BG; \( BC = {1 \mathord{\left/ {\vphantom {1 2}} \right. \kern-0pt} 2} \).

  2. 2.

    The sides of the hexagon and the nonagons are perpendicular in their intersections A and B. The points E and C are vertices of the regular nonagons, and thus

$$ \angle BCD = \angle DEA = 140^{ \circ } \,{\text{and}}\,\angle CDE = \angle HDI = 80^{ \circ } $$
  1. 3.

    FB is the apothem of the nonagon, so

$$ FB = \frac{1}{{2\tan 20^{ \circ } }}\,\,\,\,\,\,\,\,\,\,\,\,\,FA = BG = r - \frac{1}{{2\tan 20^{ \circ } }}\,\,\,\,\,\,\,\,\,\,AB = EC = \frac{1}{{\tan 20^{ \circ } }} - r $$
$$ ED = DC = \left( {\frac{1}{{\tan 20^{ \circ } }} - r} \right)\frac{{\sin 50^{ \circ } }}{{\sin 80^{ \circ } }} = \frac{{\left( {1 - r\tan 20^{ \circ } } \right)}}{{4\sin^{2} 20^{ \circ } }} $$

Note that the length of the perimeter of the tiles I, II and III, depends on the value of the parameter r for given a pattern p(r), though the angles of the tiles are constant. The angles in the vertices of the star tile I are 80° and 220°; the angles of the house tile II are 80°, 140° and 90°;and the bow tile III has angles of 120°, 90°, 220°, 100° and 140°.

The pattern can also be considered as the superposition of three different layers, L1, L2 and L3 (Fig. 24). Layer L1 is a hexagonal net of side r while layers L2 and L3 are formed by regular nonagons with centres on the vertices of an imaginary equilateral triangular grid with side \( \sqrt 3 r \). Both layers of nonagons L2 and L3 coincide under translation by vectors v1, v2 and v3 (Fig. 24).

Fig. 24
figure 24

The hexagonal layer L1, the nonagonal layers L2 and L3, and how they come together

Fig. 25
figure 25

a Left the sub-unities L4, L5 and L6; b right the smaller basic polygon V and the smaller practical tile VI

Intersection, union and/or subtraction of the layers L1, L2 and L3 determines different layers L4, L5 and L6 (Fig. 25a), generating the same pattern. Each pattern p(r) can also be generated by edge to edge addition of a basic polygon (a shape that covers the tiling using only isometries). Figure 23 showed one of them, but the smallest polygon with this property is the right triangle V with angles 30°, 60° and 90° and determined by the radius of the hexagon, the apothem of the nonagon and the half-side of the hexagon between them (Fig. 25b). This small shape covers the tilling by reflections only. We can also find a rectangular basic polygon, such as VI. We call these polygons V and VI practical tiles, because their triangular or rectangular shape makes it possible to use them as a template for a practical construction, especially for friezes.

Geometrical Analysis of the Practical Patterns

In the practical realizations of the pattern in the grilles, panels and friezes given in the examples, the nonagons are perceived as regular. However, one can wonder if the nonagons were regular in the mind of the designer: what could their mathematical foundations have been? We will not need measurements, because careful observation of the patterns gives theoretical arguments suggesting the designed nonagons are necessarily non-regular.

Figure 26 shows that the extension of one of the radii of the nonagons intercepts the side of the adjacent hexagon (of which one vertex is the centre of the nonagon) in the midpoint. This observation is emphasized using overlapping diagrams.

Fig. 26
figure 26

Extending the radius of the nonagon intersects the side of a hexagon in the midpoint

This simple test is valid even with the usual problem of the perspective distortion of the images, because all the designs are in the plane. If we consider the regular hexagon of Fig. 27, the shaded triangle will have an angle of 120° between the sides a and a/2.

Fig. 27
figure 27

The symmetry of the pattern and the midpoint property

Thus:

$$ d = \frac{\sqrt 7 a}{2}\quad \,\sin \theta = \frac{\sqrt 3 }{2\sqrt 7 } = \frac{{\sqrt {21} }}{14}\quad \theta = \arcsin \frac{{\sqrt {21} }}{14} \approx 1 9. 1^{ \circ } \,\,\, \Rightarrow \,\,\, 2\theta \approx 3 8. 2^{ \circ } $$

This implies that the angles of the nonagons of Selimiye Mosque and Hagia Sophia are \( 2\theta \approx 3 8. 2 2^{ \circ } \) and \( 60^{ \circ } - \theta \approx 4 0. 8 9^{ \circ } \). The same angle was obtained in Fig. 20 by a semi-regular tessellation.

As for the nonagon and the hexagon displayed in Fig. 28, the extension of the radius of the nonagon intersects the side of the hexagon at the midpoint and if this extension is prolonged beyond the midpoint, a vertex of a hexagon is obtained.

Fig. 28
figure 28

Above diagrams and details of frieze in the Hagia Sophia (left) and the Selimiye Mosque (right); below drawing showing the line segment OB, where O is the center of the nonagon, B is the vertex of the hexagon centered in C and M is the midpoint of FD and OB

Figure 28 presents the parallelogram OABC and the midpoint M where the diagonals OB and AC intersect FD. It follows that

$$ {\text{OB}}\, = \,\sqrt 7\,{\text{and}}\,\sin \theta = \frac{{\sin 120^{ \circ } }}{\sqrt 7 } = \frac{{\sqrt {21} }}{14}\,\,\, \Rightarrow \,\,\theta = \arcsin \left( {\frac{{\sqrt {21} }}{14}} \right) \approx 19.1^{ \circ } $$

Note that, in spite of the different locations of the nonagon and the hexagon in Figs. 27 and 28, the calculations are indeed the same, and they twice yield an angle of 19.1° angle. Both graphical properties occur in all of the analyzed practical patterns. There is thus a very simple way to construct the angles of the nonagons of all of the examples. We apply the two preceding observations to the theoretical pattern p(r), where the nonagons are perfectly regular.

The nonagon in Fig. 29 is regular, but a simple glance shows the point B is not the midpoint of the side AC of the hexagon. Indeed, the three rectangles OAB, DFG and GFH have angles 20°, 120° and 40°, and thus they are similar; therefore

$$ \frac{AC}{AB} = \frac{OA}{AB} = \frac{DF}{FG} = \frac{{{\text{Fist}}\,\,{\text{diagonal}}\,\,{\text{of}}\,\,{\text{the}}\,\,\,{\text{nonagon}}}}{{{\text{side}}\,\,\,{\text{of}}\,\,{\text{the}}\,\,{\text{nonagon}}}} = \alpha \approx 1.88, $$

that is, the ratio AC/AB is constant in all p(r) patterns and equals \( \alpha \), not 2.

Fig. 29
figure 29

Property of the regular nonagon centered in the vertex of the regular hexagon

Figure 30 visualizes the second observation. Again, it turns out to be only an approximation when checked out in the theoretical patterns.

Fig. 30
figure 30

The extension of the radius OP of the regular nonagon doesn’t pass through vertex B

For a regular nonagon, \( \angle POE = 20^{ \circ } \) and this is greater than \( \theta \). Consequently, the radius OP of the nonagon does not lie on the diagonal OB, and thus the points R and B are distinct points. Therefore, the construction of the pattern by using exact regular nonagons is not possible.

Since in all the cases the angles of the practical patterns are the same, the slight visual differences among the different analyzed patterns are consequences of the different ratios between the side of the hexagon and the side of the nonagon. This can be estimated by the ratios of the three segments obtained from the intercepting points of the polygons of the grid, as in Fig. 31. If call aba the lengths of the three parts determined in the side of the hexagon, we observe a ratio \( {b \mathord{\left/ {\vphantom {b a}} \right. \kern-0pt} a} \) around 1.4 \( \approx \sqrt 2 \), in the Hagia Sophia and the Selimiye Mosque. However, in the grill of the window of the Mausoleum of Shehzade Mehmet this ratio is approximately 1, while it is close to \( {2 \mathord{\left/ {\vphantom {2 3}} \right. \kern-0pt} 3} \) in some similar modern screens.

Fig. 31
figure 31

Graphic checks to verify that ratios b/a are around 1.4 in the Hagia Sophia (left) and the Selimiye Mosque (middle); and b/a around 1 in the Mausoleum of Shehzade Mehmet (right)

Finally, according the two preceding observations from Figs. 26 and 27, we construct the pattern of the frieze of the mahfil in the Hagia Sophia, and we provide a second method to construct the pattern.

Two Constructions for a Pattern in Hagia Sophia

Construction 1

The angles of the nonagons of a frieze in Hagia Sophia have been already determined. Thus, in the first step we set out these central angles over a hexagonal net in the way shown in Fig. 27 (right), and so the nonagon is determined for a given radius. We observe that one of the vertices of the nonagon, P, is the intersection of the line segment AB and the line passing by O and C (Fig. 32). We locate the points A, B, C in a Cartesian coordinate system with origin in the center of the nonagon. The x-axis is the line containing OB, and the side of the hexagon is taken as unit length.

Fig. 32
figure 32

Nonagon of the frieze with three angles of 38.2°, six angles of 40.9°, and radius OP

In this reference system, the coordinates of the considered points are \( O\left( {0,0} \right) \), \( A\left( {{{ - 3} \mathord{\left/ {\vphantom {{ - 3} 2}} \right. \kern-0pt} 2},{{\sqrt 3 } \mathord{\left/ {\vphantom {{\sqrt 3 } 2}} \right. \kern-0pt} 2}} \right) \), \( B\left( {6,0} \right) \) and \( C\left( {1,\sqrt 3 } \right) \). Since the segments AB and OC concur in the point P, it follows that

$$ P\,\left( {\lambda ,\sqrt 3 \lambda } \right) = P\,\left( {6 + 15\mu , - \sqrt 3 \mu } \right) \Rightarrow \lambda = - \mu = \frac{3}{8} \Rightarrow P\,\left( {\frac{3}{8},\frac{3\sqrt 7 }{8}} \right) \Rightarrow OP = \sqrt {\left( \frac{3}{8} \right)^{2} + \left( {\frac{3\sqrt 7 }{8}} \right)^{2} } = \frac{3}{4} $$

Thus, point P leads to a very easy value of the radius, 3/4, which is three-quarters of the side of the hexagon. Figure 33 visualizes the construction of the nonagon.

Fig. 33
figure 33

Construction of a nonagon with three angles of 38.2°, six angles of 40.9° and a radius that is 3/4 of the hexagonal net with side 1

Because of the rotational symmetry, the rosette can be completed by successive rotation over 60° of the nonagon with respect to the center of the nearby hexagon (Fig. 34). A translation of the rosette by the vector v = (3, 0) completes the frieze.

Fig. 34
figure 34

A geometric construction and the real frieze

The nonagons of this construction have three sides with length l 1  = 3\( \sqrt {21} \) /28. This value of the sides of the nonagon produces dissections a-b-a of the side of hexagon with ratio \( b/ a= \,{(30\sqrt 7 - 56)}/ {(56 - 15\sqrt 7 )} = 1.432 \ldots \). This approximation corresponds to the graphical estimations of Fig. 31.

Construction 2

The geometric analysis of the theoretical pattern given above guarantees that the grid of interlocking hexagons and nonagons can be constructed using the basic polygon V shown in Fig. 25 or from the triangle FGO defined in Fig. 23. However, it can also be derived based only on the house tile II, over a hexagonal net. Figure 35 shows the sides EB and EF produce the two sides of the irregular nonagon. The angles \( \theta \) and \( \angle EFG = 360^{ \circ } - 2\theta \) determine six angles \( \theta \) and three angles \( \alpha \) in the nonagon, in the order \( \theta - \theta - \alpha \).

Fig. 35
figure 35

The angles of the house tile determine the angles of the nonagons

The analysis of Fig. 31 suggest a hypothetic ideal ratio \( {b \mathord{\left/ {\vphantom {b a}} \right. \kern-0pt} a} \approx \sqrt 2 \), and thus we assume that the nonagons dissect the side of the hexagon in three segments AB, BC and CD such that AB = CD and with ratio \( {{BC} \mathord{\left/ {\vphantom {{BC} {AB = \sqrt 2 }}} \right. \kern-0pt} {AB = \sqrt 2 }} \). This choice allows us a simple way to construct the house tile and complete pattern by intersection of straight lines in a hexagonal net.

Figure 36 shows the house tile as the union of a rectangle with ratio \( {{2\sqrt 6 } \mathord{\left/ {\vphantom {{2\sqrt 6 } 3}} \right. \kern-0pt} 3} \) and an isosceles triangle inscribed in another rectangle with the same ratio. Note that \( {{2\sqrt 6 } \mathord{\left/ {\vphantom {{2\sqrt 6 } {3 \approx 1.6}}} \right. \kern-0pt} {3 \approx 1.6}} \) is an good approximation of the golden section, and thus the pattern of Hagia Sophia and Selimiye Mosque constructed in this way almost looks as if it respects the golden section proportion. Figure 37 explains the successive steps to construct a rosette of the pattern.

Fig. 36
figure 36

House tile for the frieze of Hagia Sophia

Fig. 37
figure 37

Steps for the construction of the rosette starting from the house tile of Fig. 36

Of course, we don’t know the exact procedure of the craftsmen who constructed the nonagonal patterns on Hagia Sophia and the Selimiye Mosque, but the hypothesis of a construction in a way similar to our Construction 1 seems quite realistic.