Introduction

According to Refs. [1,2,3,4,5], the generalized trigonometric functions (GTF) of order 2 \(C(t),\, S(t)\) are defined by means of the identity

$$\begin{aligned} e^{t \hat{M}} =C(t)\, \hat{1}+S(t)\, \hat{M} \end{aligned}$$
(1)

where \(\hat{M},\, \hat{1}\) are respectively a \(2\times 2\) non-singular matrix and the unit, namely

$$\begin{aligned} \hat{M}=\left( \begin{array}{c@{\quad }c} {a} &{} {b} \\ {c} &{} {d} \end{array}\right) ,\quad \hat{1}=\left( \begin{array}{c@{\quad }c} {1} &{} {0} \\ {0} &{} {1} \end{array}\right) \end{aligned}$$
(2)

From Eq. (1) it also follows that

$$\begin{aligned} \begin{aligned} e^{t\, \lambda _{+} }&=C(t)\, +S(t)\, \lambda _{+} , \\ e^{t\, \lambda _{-} }&=C(t)\, +S(t)\, \lambda _{-} \end{aligned} \end{aligned}$$
(3)

with \(\lambda \, _{\pm } \) being the eigenvalues of \(\hat{M}\), assumed to be non-singular, thus getting the explicit form of the GTF, namely

$$\begin{aligned} \begin{aligned} C(t)&=\frac{\lambda _{-} e^{\lambda _{+} t} -\lambda _{+} e^{\lambda _{-} t} }{\lambda _{-} -\lambda _{+} } , \\ S(t)&=\frac{e^{\lambda _{+} t} -e^{\lambda _{-} t} }{\lambda _{+} -\lambda _{-} } \end{aligned} \end{aligned}$$
(4)

The structure of Eq. (1) is that of the Euler–De Moivre identity, with \(\hat{M}\) playing the role of imaginary unit, on the other side Eq. (3) represents the scalar counterpart of (1) and, accordingly, \(\lambda _{\pm }\) are understood as conjugated imaginary units.

The properties of the \(\cos \) and \(\sin \) like functions \(C(t),\, S(t)\) can be inferred from either Eqs. (1)–(3), which yield for example (see also Ref. [5])

$$\begin{aligned} \begin{aligned}&C^{2} +\Delta _{\hat{M}} S^{2} +{ Tr}(\hat{M})\, { CS}=e^{{ Tr}(\hat{M})\,t} ,\\&{ Tr}(\hat{M})=a+d, \\&\Delta _{\hat{M}} =a\, d-b\, c \end{aligned} \end{aligned}$$
(5)

and

$$\begin{aligned} \begin{aligned} C(2\, t)&=C^{2} -\Delta _{\hat{M}} S^{2} , \\ S(2\, t)&=2\, C(t)\, S(t)+{ Tr}(\hat{M})\, S^{2} \end{aligned} \end{aligned}$$
(6)

The previous relationships are recognized as the fundamental trigonometric identity (Eq. 5) and as the duplication formulae (Eq. 6).

By keeping the derivative of both sides of Eq. (1) with respect to the variable t, we find

$$\begin{aligned} \frac{d}{{ dt}} e^{t\, \hat{M}} =\left( \frac{d}{{ dt}} C(t)\right) \, \hat{1}+\left( \frac{d}{{ dt}} S(t)\right) \, \hat{M} \end{aligned}$$
(7)

being also

$$\begin{aligned} \frac{d}{{ dt}} e^{t\, \hat{M}} =\hat{M}e^{t\, \hat{M}} =C(t)\hat{M}+S(t)\, \hat{M}^{2} \end{aligned}$$
(8)

and since

$$\begin{aligned} \hat{M}^{2} =-\Delta _{\hat{M}} \hat{1}+{ Tr}(\hat{M})\, \hat{M} \end{aligned}$$
(9)

we end up, after combining Eqs. (7)–(9) and equating “real” and “imaginary” parts, the following identities, specifying the properties under derivatives of the GTF

$$\begin{aligned} \begin{aligned} \frac{d}{{ dt}} C(\, t)&=-\Delta _{\hat{M}} S(t), \\ \frac{d}{{ dt}} S(\, t)&={ Tr}(\hat{M})\, S(t)+C(t) \end{aligned} \end{aligned}$$
(10)

We can infer directly from Eq. (4) that the second order GTF’s exhibit, under variable reflection, the identities

$$\begin{aligned} \begin{aligned} C(-\, t)&=e^{-{ Tr}(\hat{M})\, t} \left( -{ Tr}(\hat{M})\, S(t)+C(t)\right) =e^{-{ Tr}(\hat{M})\, t} \left( \frac{d}{{ dt}} S(t)\right) , \\ S(-t)&=-e^{-{ Tr}(\hat{M})\, t} S(t) \end{aligned} \end{aligned}$$
(11)

which underscore the significant difference with the ordinary TF (be they circular or hyperbolic) with definite even or odd parities.

Further properties can be argued by the use of other means; by keeping e.g. the freedom of treating \(\hat{M}\) as an ordinary algebraic quantity we can formally derive integrals involving GTF thus finding e.g.

$$\begin{aligned} \begin{aligned} \int _{}^{t}{} { dt}' e^{t'\, \hat{M}}&={}_{I} C(t)\, \hat{1}+{}_{I} S(t)\, \hat{M}, \\ \int _{}^{t}{} { dt}' e^{t'\, \hat{M}}&=\frac{1}{\hat{M}} e^{t\, \hat{M}} =C(t)\, \hat{M}^{-1} +S(t)\, \hat{1}, \\ {}_{I} C(t)&=\int _{}^{t}{} { dt}' C(t'),\, {}_{I} S(t)=\int _{}^{t}{} { dt}' S(t') \end{aligned} \end{aligned}$$
(12)

Moreover, since the following identity holds

$$\begin{aligned} \begin{aligned} \hat{M}^{-1}&=c_{-1} \hat{1}+s_{-1} \hat{M} \\ c_{-1}&=\frac{\lambda _{-} \lambda _{+}^{-1} -\lambda _{+} \lambda _{-}^{-1} }{\lambda _{-} -\lambda _{+} } =\frac{{ Tr}(\hat{M})}{\Delta _{\hat{M}} } , \\ s_{-1}&=\frac{\lambda _{+}^{-1} -\lambda _{-}^{-1} }{\lambda _{+} -\lambda _{-} } =-\frac{1}{\Delta _{\hat{M}}} \end{aligned} \end{aligned}$$
(13)

we obtain the “primitives” of the GTF’s

$$\begin{aligned} \begin{aligned} {}_{I} C(t)&=\frac{{ Tr}(\hat{M})}{\Delta _{\hat{M}} } C(t)+S(t), \\ {}_{I} S(t)&=-\frac{1}{\Delta _{\hat{M}} } C(t) \end{aligned} \end{aligned}$$
(14)

A straightforward consequence of the previous relationships is

$$\begin{aligned} \begin{aligned} \int _{0}^{\infty }{} { dt}' C(-t')&=\frac{{ Tr}(\hat{M})}{\Delta _{\hat{M}} } , \\ \int _{0}^{\infty }{} { dt}' S(-t')&=-\frac{1}{\Delta _{\hat{M}} } \hat{M} \end{aligned} \end{aligned}$$
(15)

which hold true only if the integrals are convergent, namely if \({ Re}(\lambda _{\pm } )\) are both positive.

A further slightly more intriguing example is provided by the Gaussian integral

$$\begin{aligned} \begin{aligned}&\int _{-\infty }^{+\infty }{} { dt}\,e^{-t^{2} \, \hat{M}} =\sqrt{\frac{\pi }{\hat{M}} } =\sqrt{\pi } \left( c_{-\frac{1}{2} } \hat{1}+s_{-\frac{1}{2} } \hat{M}\right) , \\&c_{-1/2} =\frac{\lambda _{-} \lambda _{+}^{-1/2} -\lambda _{+} \lambda _{-}^{-1/2} }{\lambda _{-} -\lambda _{+} } , \\&s_{-1/2} =\frac{\lambda _{+}^{-1/2} -\lambda _{-}^{-1/2} }{\lambda _{+} -\lambda _{-} } \end{aligned} \end{aligned}$$
(16)

which yields the following generalizations of the Fresnel integrals, obtained by other means in Ref. [5],

$$\begin{aligned} \begin{aligned} \int _{-\infty }^{+\infty }{} { dt}\,C(-t^{2} )&=\sqrt{\pi } c_{-\frac{1}{2} } \\ \int _{-\infty }^{+\infty }{} { dt}\,S(-t^{2} )&=\sqrt{\pi } s_{-\frac{1}{2} } \end{aligned} \end{aligned}$$
(17)

The convergence of these integrals depends on the eigenvalues \(\lambda _{\pm } \), if convergence is ensured, Eq. (17) provides the most general form of solution.

Iterating the procedure, leading to Eq. (10), namely by keeping successive derivatives with respect to t of both sides of (1) and by noting that

$$\begin{aligned} \hat{M}^{n} =c_{n} \hat{1}+s_{n} \hat{M} \end{aligned}$$
(18)

we end up with

$$\begin{aligned} \begin{aligned} \left( \frac{d}{{ dt}} \right) ^{n} C(t)&=c_{n} C(t)+c_{n+1} S(t) \\ \left( \frac{d}{{ dt}} \right) ^{n} S(t)&=s_{n} C(t)+s_{n+1} S(t) \end{aligned} \end{aligned}$$
(19)

It is evident that the coefficients \(c_{\nu } ,\, s_{\nu } \) are essentially GTF in which \(e^{\lambda _{\pm } t} \) are replaced by \(\lambda _{\pm }^{\nu } \). The relevant properties are discussed later in the paper.

The addition formulae too can be derived in terms of the \(c_{n} ,\, s_{n} \) coefficients as

$$\begin{aligned} \begin{aligned} C(t+t')&=C(t)\, C(t')+c_{2} S(t)\, S(t'), \\ S(t+t')&=\left( C(t)\, +s_{2} S(t)\right) \, S(t')+S(t)\, C(t'), \\ s_{2}&={ Tr}(\hat{M}),\quad c_{2} =-\Delta _{\hat{M}} \end{aligned} \end{aligned}$$
(20)

In absence of the simple reflection properties of the ordinary circular functions, we can establish the subtraction formulae according to the expressions given below

$$\begin{aligned} \begin{aligned} C(t-t')&=e^{-s_{2} \, t'} \left[ s_{2} S(t')C(t)+C(t')C(t)-c_{2} S(t)\, S(t')\right] , \\ S(t-t')&=-e^{-\, s_{2} t'} \left[ C(t)S(t')-C(t')S(t)\right] \end{aligned} \end{aligned}$$
(21)

which, once combined with Eq. (20), yields the following prosthaphaeresis like identities

$$\begin{aligned} \begin{aligned} C(p)-e^{s_{2} \frac{(p-q)}{2} } C(q)=&-s_{2} S\left( \frac{p-q}{2} \right) C\left( \frac{p+q}{2} \right) \\&+2c_{2} S\left( \frac{p-q}{2} \right) S\left( \frac{p+q}{2} \right) \end{aligned} \end{aligned}$$
(22)

In the forthcoming section we will provide some examples aimed at providing the usefulness of this family of functions in applications.

GTF, Matrix Parameterization and Generalized Complex Forms

To proceed further, we remind that Eq. (1) follows from the Cayley–Hamilton Theorem [6], which allows to write a given function (usually an exponential) of a matrix \(\hat{\Sigma }\) in terms of its characteristic polynomial. We will now use the GTF to provide the reverse procedure, namely we write a given matrix \(\hat{\Sigma }\) in exponential form, namely

$$\begin{aligned} \begin{aligned}&\hat{\Sigma }=e^{\hat{T}}, \\&\hat{\Sigma }=\left( \begin{array}{c@{\quad }c} {l} &{} {m} \\ {n} &{} {p} \end{array}\right) ,\quad \hat{T}=\left( \begin{array}{c@{\quad }c} {\alpha } &{} {\beta } \\ {\gamma } &{} {\delta } \end{array}\right) \end{aligned} \end{aligned}$$
(23)

The problem we are interested in is therefore that of finding the elements of the exponentiated matrix \(\hat{T}\), once those of \(\hat{\Sigma }\) are known. The use of Eq. (1) yields

$$\begin{aligned} e^{\, \hat{T}} =C(1)\, \hat{1}+S(1)\, \hat{T} \end{aligned}$$
(24)

where the GTF are expressed in terms of the eigenvalues of \(\hat{T}\). It is therefore worth to remind that both \(\hat{\Sigma },\, \hat{T}\) are diagonalised through the same matrix \(\hat{D}\) and therefore

$$\begin{aligned} \begin{aligned}&\hat{D}^{-1} \hat{\Sigma }\, \hat{D}=e^{\hat{D}^{-1} \hat{T}\, \hat{D}} , \\&\hat{D}^{-1} \hat{\Sigma }\, \hat{D}=\left( \begin{array}{c@{\quad }c} {\sigma _{+} } &{} {0} \\ {0} &{} {\sigma _{-} } \end{array}\right) =\left( \begin{array}{c@{\quad }c} {e^{\tau _{+} } } &{} {0} \\ {0} &{} {e^{\tau _{-} } } \end{array}\right) \end{aligned} \end{aligned}$$
(25)

where \(\sigma _{\pm } ,\, \tau _{\pm } \) denote the eigenvalues of the \(\hat{\Sigma }\) and \(\hat{T}\) matrices respectively it is furthermore evident that

$$\begin{aligned} \tau _{\pm } =\ln (\sigma _{\pm } ) \end{aligned}$$
(26)

We can therefore write

$$\begin{aligned} \begin{aligned} \hat{\Sigma }&=C(1)\, \hat{1}+S(1)\, \hat{T}, \\ C(1)&=\frac{\ln (\sigma _{-} )\, \sigma _{+} -\ln (\sigma _{+} )\, \sigma _{-} }{\ln (\sigma _{-} )-\ln (\sigma _{+} )} , \\ S(1)&=\frac{\sigma _{+} \, -\sigma _{-} \, }{\ln (\sigma _{+} )-\ln (\sigma _{-} )} \end{aligned} \end{aligned}$$
(27)

and

$$\begin{aligned} \hat{T}=\left( \begin{array}{c@{\quad }c} {\dfrac{l-C(1)}{S(1)} } &{} {\dfrac{m}{S(1)} } \\ {\dfrac{n}{S(1)} } &{} {\dfrac{p-C(1)}{S(1)} } \end{array}\right) \end{aligned}$$
(28)

It is now worth noting that

$$\begin{aligned} \hat{\Sigma }^{n} =e^{n\, \hat{T}} =C(n)\, \hat{1}+S(n)\, \hat{T} \end{aligned}$$
(29)

and it should be stressed that the arguments of the GTF in the elements of the matrix \(\hat{T}\) in Eq. (24) remains the unity.

The parameterization we have proposed is a generalized form of what is known in the Physics of charged beam transport as the Courant–Snyder parameterization, which is exploited to adapt the beam sizes to the characteristics of the transport device or in laser optics to transport an optical beam through ordinary lens systems [7].

In the following we will extend the method to matrices with larger dimensions, using higher order GTF. Before doing this, we take advantage from the present point of view to extend the notion of complex number, which will be defined as

$$\begin{aligned} \begin{aligned} \zeta _{+}&=x+\lambda _{+} \, y, \\ \zeta _{-}&=x+\lambda _{-} \, y \end{aligned} \end{aligned}$$
(30)

with “modulus”

$$\begin{aligned} \zeta _{+} \zeta _{-} =x^{2} +{ Tr}(\hat{M})\, x\, y+\Delta _{\hat{M}} y^{2} \end{aligned}$$
(31)

The relevant trigonometric form can be written as (\(\lambda \) may be either \(\lambda _{+} \) or its conjugate form \(\lambda _{-} \))

$$\begin{aligned} \begin{aligned} \zeta&=\left| A\right| e^{\lambda \, \vartheta } , \\ \left| A\right|&=\sqrt{\zeta _{+} \zeta _{-} } e^{-{ Tr}(\hat{M})\, \frac{\vartheta }{2} } , \\ \vartheta&=\frac{1}{\lambda _{+} -\lambda _{-} } \ln \left[ \frac{1+\frac{y}{x} \lambda _{+} }{1+\frac{y}{x} \lambda _{-} } \right] \end{aligned} \end{aligned}$$
(32)

The conclusion, we may draw from this last result, is that the concept of imaginary number is more subtle than it might be thought, it is not necessarily associated with the roots of a negative number but can be constructed with any pair of numbers, solutions of a second degree algebraic equation [5].

We have tried to keep our treatment of GTF following in a close parallel with the ordinary circular trigonometry, it is therefore important to note that the geometrical image of the condition (5) is no more a circle but a more complicated curve not necessarily closed. Notwithstanding a “cos” and “sin” like interpretation of the GTF is still possible (see Figs. 1, 2). It is however worth noting that GTF may be circular or hyperbolic like, according to whether \({ Im}(\lambda )\) be \(\ne 0,\, \mathrm{or\; }=0\). The argument of the GTF cannot be simply regarded as angles, notwithstanding, it is natural to ask whether there is any quantity playing the role of \(\pi \), even though if e.g. \({ Tr}(\hat{M})\ne 0\) we are not dealing with periodic functions.

To clarify this point we try to keep advantage from the Euler-formula “\(e^{\;i\, \frac{\pi }{2} } =i\)” to define two distinct quantities \(\pi _{\pm } \) such that

$$\begin{aligned} \begin{aligned}&e^{\lambda _{-} \frac{\pi _{-} }{2} } =\lambda _{-} \\&e^{\lambda _{+} \frac{\pi _{+} }{2} } =\lambda _{+} \end{aligned} \end{aligned}$$
(33)

yielding

$$\begin{aligned} \pi _{\pm } =\frac{2\, \ln (\lambda _{\pm } )}{\lambda _{\pm } } \end{aligned}$$
(34)

It is furthermore worth noting the “funny” identities

$$\begin{aligned} \begin{aligned}&e^{\lambda _{\pm } \pi _{\pm } } ={ Tr}(\hat{M})\lambda _{\pm } -\Delta _{\hat{M}} \\&\lambda _{-}^{\lambda _{+} } =e^{\frac{\Delta _{\hat{M}} }{2} \pi _{-} } , \\&\lambda _{+}^{\lambda _{-} } =e^{\frac{\Delta _{\hat{M}} }{2} \pi _{+} } , \\&e^{\lambda _{-}^{2} \frac{\pi _{-} }{2} } =e^{({ Tr}(\hat{M})\lambda _{-} \frac{\pi _{-} }{2} } e^{-\, \frac{\Delta _{\hat{M}} }{2} \pi _{-} } =\lambda _{-}^{\lambda _{-} } \end{aligned} \end{aligned}$$
(35)

The last of which can also be reinterpreted as

$$\begin{aligned} \lambda _{-}^{\lambda _{-} } =\lambda _{-}^{{ Tr}(\hat{M})-\lambda _{+}} \end{aligned}$$
(36)

It is also evident that if \({ Im}(\lambda _{\pm } )\ne 0\) the GTF functions exhibit infinite zeros on the real axis, which for C and S are, respectively, given by

$$\begin{aligned} \begin{aligned}&{}_{C} t_{n}^{*} =\frac{1}{2(\lambda _{-} -\lambda _{+} )} \left[ \lambda _{-} \pi _{-} -\lambda _{+} \pi _{+} -4\, i\, n\, \pi \right] , \\&{}_{S} t_{n}^{*} =\frac{2\, in\, \pi }{(\lambda _{-} -\lambda _{+} )} \end{aligned} \end{aligned}$$
(37)
Fig. 1
figure 1

Generalized trigonometric functions for \({ Im}(\lambda )\ne 0\)

Fig. 2
figure 2

Generalized trigonometric functions for \({ Im}(\lambda )= 0\)

To appreciate the analogies and the differences as well, we have reported in Fig. 3 the function C(t) and its counterpart \(C(-t)\).

Fig. 3
figure 3

Behavior of C(t) and \( C(-t) \) versus argument

Third and Higher Order GTF

According to terminology of Ref. [5] the order of the GTF is associated with that of the corresponding generating matrix. If \(\hat{M}\) is a \(3\times 3\) non-singular matrix with three distinct eigenvalues we have

$$\begin{aligned} e^{t\, \hat{M}} =C_{0} (t)\, \hat{1}+C_{1} (t)\, \hat{M}+C_{2} (t)\, \hat{M}^{2} \end{aligned}$$
(38)

We can introduce the third order GTF, \(C_{0,\, 1,\, 2} (t)\)

$$\begin{aligned} \begin{aligned}&\left( \begin{array}{c} {C_{0} (t)} \\ {C_{1} (t)} \\ {C_{2} (t)} \end{array}\right) =\left[ \hat{V}(\lambda _{1} ,\lambda _{2} ,\lambda _{3} )\right] ^{-1} \, \left( \begin{array}{c} {e^{\lambda _{1} t} } \\ {e^{\lambda _{2} t} } \\ {e^{\lambda _{3} t} } \end{array}\right) \\&\hat{V}(\lambda _{1} ,\lambda _{2} ,\lambda _{3} )=\left( \begin{array}{c@{\quad }c@{\quad }c} {1} &{} {\lambda _{1} } &{} {\lambda _{1}^{2} } \\ {1} &{} {\lambda _{2} } &{} {\lambda _{2}^{2} } \\ {1} &{} {\lambda _{3} } &{} {\lambda _{3}^{2} } \end{array}\right) \end{aligned} \end{aligned}$$
(39)

where \(\hat{V}(\lambda _{1} ,\lambda _{2} ,\lambda _{3} )\) is the Vandermonde matrix, constructed with the eigenvalues of \(\hat{M}\). The inverse of \(\hat{V}\) can be written as [8]

$$\begin{aligned}&\left( \begin{array}{c@{\quad }c@{\quad }c} {1} &{} {\lambda _{1} } &{} {\lambda _{1}^{2} }\\ {1} &{} {\lambda _{2} } &{} {\lambda _{2}^{2} } \\ {1} &{} {\lambda _{3} } &{} {\lambda _{3}^{2} } \end{array}\right) ^{-1}\nonumber \\&\quad =\left( \begin{array}{c@{\quad }c@{\quad }c} {\dfrac{\lambda _{2} \lambda _{3} }{(\lambda _{1} -\lambda _{2} )\, \left( \lambda _{1} -\lambda _{3} \right) } } &{} {\dfrac{\lambda _{1} \lambda _{3} }{(\lambda _{2} -\lambda _{1} )\, \left( \lambda _{2} -\lambda _{3} \right) } } &{} {\dfrac{\lambda _{1} \lambda _{2} }{(\lambda _{3} -\lambda _{1} )\, \left( \lambda _{3} -\lambda _{2} \right) } } \\ {-\dfrac{\lambda _{2} +\lambda _{3} }{(\lambda _{1} -\lambda _{2} )\, \left( \lambda _{1} -\lambda _{3} \right) } } &{} {-\dfrac{\lambda _{1} +\lambda _{3} }{(\lambda _{2} -\lambda _{1} )\, \left( \lambda _{2} -\lambda _{3} \right) } } &{} {-\dfrac{\lambda _{1} +\lambda _{2} }{(\lambda _{3} -\lambda _{1} )\, \left( \lambda _{3} -\lambda _{2} \right) } }\\ {\dfrac{1}{(\lambda _{1} -\lambda _{2} )\, \left( \lambda _{1} -\lambda _{3} \right) } } &{} {\dfrac{1}{(\lambda _{2} -\lambda _{1} )\, \left( \lambda _{2} -\lambda _{3} \right) } } &{} {\dfrac{1}{(\lambda _{3} -\lambda _{1} )\, \left( \lambda _{3} -\lambda _{2} \right) } } \end{array}\right) \nonumber \\ \end{aligned}$$
(40)

We can therefore write the third order GTF as

$$\begin{aligned} \begin{aligned} C_{0} (t)&=\frac{1}{\Delta \left( \lambda _{1} ,\lambda _{2} ,\lambda _{3} \right) } \sum _{i,j,k=1}^{3}\frac{\varepsilon _{i,j,k} }{2} \lambda _{i} \lambda _{j} (\lambda _{j} -\lambda _{i} )\, e^{\lambda _{k} t} , \\ C_{1} (t)&=\frac{1}{\Delta \left( \lambda _{1} ,\lambda _{2} ,\lambda _{3} \right) } \sum _{i,j,k=1}^{3}\frac{\varepsilon _{i,j,k} }{2} (\lambda _{i}^{2} -\lambda _{j}^{2} )\, e^{\lambda _{k} t} , \\ C_{2} (t)&=-\frac{1}{\Delta \left( \lambda _{1} ,\lambda _{2} ,\lambda _{3} \right) } \sum _{i,j,k=1}^{3}\frac{\varepsilon _{i,j,k} }{2} (\lambda _{i} -\lambda _{j} )\, e^{\lambda _{k} t} \end{aligned} \end{aligned}$$
(41)

where

$$\begin{aligned} \Delta (\lambda _{1} ,\, \lambda _{2} ,\, \lambda _{3} )=(\lambda _{2} -\lambda _{1} )\, \left( \lambda _{3} -\lambda _{1} \right) \left( \lambda _{3} -\lambda _{2} \right) \end{aligned}$$
(42)

Is the Vandermonde determinant and \(\varepsilon _{i,j,k} \) is the Levi–Civita tensor.

By following the same procedure as before, we can extend to the third order the properties of the second order case. It is easily argued that they satisfy third order differential equations and that the relevant addition formulae read

$$\begin{aligned} C_{0} (t+t')= & {} C_{0} (t)\, C_{0} (t')+{}_{0} c_{3} \left[ C_{1} (t)\, C_{2} (t')+C_{1} (t')\, C_{2} (t)\right] +{}_{0} c_{4} C_{2} (t)\, C_{2} (t'), \nonumber \\ C_{1} (t+t')= & {} \left[ C_{0} (t)\, C_{1} (t')+C_{1} (t)\, C_{0} (t')\right] +{}_{1} c_{3} \left[ C_{1} (t)\, C_{2} (t')+C_{1} (t')\, C_{2} (t)\right] \nonumber \\&+\,{}_{1} c_{4} C_{2} (t)\, C_{2} (t'), \nonumber \\ C_{2} (t+t')= & {} \left[ C_{0} (t)\, C_{2} (t')+C_{1} (t)\, C_{1} (t')+C_{2} (t)\, C_{0} (t')\right] +{}_{2} c_{3} \left[ C_{1} (t)\, C_{2} (t')\right. \nonumber \\&\left. +\,C_{1} (t')\, C_{2} (t)\right] +{}_{2} c_{4} C_{2} (t)\, C_{2} (t') \end{aligned}$$
(43)

where \({}_{\alpha } c_{n} ,\, \alpha =0,\, 1,\, 2\) are the third order GTF with \(e^{\lambda _{\alpha } t} \) replaced by \(\lambda _{\alpha }^{n} \).

More in general we also find that

$$\begin{aligned} C_{\alpha } (n\, t)=\sum _{\begin{array}{c} n_{1} ,n_{2} ,\, n_{3} =0 \\ n_{1} +n_{2} +n_{3} =n \end{array} }^{n}\left( {\begin{array}{c}n\\ n_{1}\;n_{2}\;n_{3}\end{array}}\right) \, {}_{\alpha } c_{n-n_{1} } C_{0}^{n_{1} } C_{1}^{n_{2} } C_{2}^{n_{3}} \end{aligned}$$
(44)

with \(\left( {\begin{array}{c}n\\ n_{1}\;n_{2}\;n_{3}\end{array}}\right) \) being the multinomial coefficient.

It is also easily understood that the analogous of Eqs. (13), (15) for the third order GTF read

$$\begin{aligned} \begin{aligned}&{}_{I} C_{0} (t)={}_{0} c_{-1} C_{0} (t)+C_{1} (t), \\&{}_{I} C_{1} (t)=C_{2} (t)+{}_{1} c_{-1} C_{2} \\&{}_{I} C_{2} (t)={}_{2} c_{-1} C_{0} (t), \\&\int _{0}^{\infty }{} { dt}\,C_{\alpha } (-t)={}_{\alpha } c_{-1} , \\&\int _{-\infty }^{\infty }{} { dt}\,C_{\alpha } (-t^{2} )=\sqrt{\pi } {}_{\alpha } c_{-\frac{1}{2} } , \\&\alpha =0,\, 1,\, 2 \end{aligned} \end{aligned}$$
(45)

where

$$\begin{aligned} \begin{aligned}&{}_{0} c_{\nu } =\frac{1}{\Delta (\lambda _{1} ,\lambda _{2} ,\lambda _{3} )} \sum _{i,j,k=1}^{3}\frac{\varepsilon _{i,j,k} }{2} \lambda _{i} \lambda _{j} (\lambda _{j} -\lambda _{i} )\, \lambda _{k}^{\nu } , \\&{}_{1} c_{\nu } =\frac{1}{\Delta (\lambda _{1} ,\lambda _{2} ,\lambda _{3} )} \sum _{i,j,k=1}^{3}\frac{\varepsilon _{i,j,k} }{2} (\lambda _{i}^{2} -\lambda _{j}^{2} )\, \lambda _{k}^{\nu } , \\&{}_{2} c_{\nu } =-\frac{1}{\Delta (\lambda _{1} ,\lambda _{2} ,\lambda _{3} )} \sum _{i,j,k=1}^{3}\frac{\varepsilon _{i,j,k} }{2} (\lambda _{i} -\lambda _{j} )\, \lambda _{k}^{\nu } \end{aligned} \end{aligned}$$
(46)

It is now worth stressing that the following identities hold true in the case of third order matrices expressed in terms of GTF, namely

$$\begin{aligned} \hat{M}^{n} ={}_{0} c_{n} \hat{1}+{}_{1} c_{n} \hat{M}+{}_{2} c_{n} \hat{M}^{2} \end{aligned}$$
(47)

Let us now consider the possibility of extending the Courant–Snyder parameterization to third order matrices. To this aim we set

$$\begin{aligned} \hat{\Sigma }=e^{\hat{T}} \end{aligned}$$
(48)

The explicit form of the matrix \(\hat{T}\) can be obtained by setting

$$\begin{aligned} \hat{\Sigma }=C_{0} (1)\, \hat{1}+C_{1} (1)\, \hat{T}+C_{2} (1)\, \hat{T}^{2} \end{aligned}$$
(49)

where \({}_{\alpha } C(1)\) \(C_{\alpha } (1)\) are written in terms of the eigenvalues of the matrix \( \hat{T} \) according to the prescription discussed in section “GTF, Matrix Parameterization and Generalized Complex Forms”, furthermore, since

$$\begin{aligned} \hat{\Sigma }^{-1} =C_{0} (-1)\, \hat{1}+C_{1} (-1)\, \hat{T}+C_{2} (-1)\, \hat{T}^{2} \end{aligned}$$
(50)

the matrix \(\hat{T}\) can be obtained as

$$\begin{aligned} \hat{T}=\frac{C_{2} (-1)\, \hat{\Sigma }-C_{2} (1)\, \hat{\Sigma }^{-1} +\left[ C_{2} (-1)\, C_{0} (1)-C_{2} (1)\, C_{0} (-1)\right] \, \hat{1}}{C_{2} (-1)\, C_{1} (1)-C_{1} (-1)\, C_{2} (1)} \end{aligned}$$
(51)

The use in applications of these last results in applications will be discussed elsewhere.

It is evident that the results we have obtained so far can be extended to an arbitrary \(n\times n\) matrix, it is however instructive to consider more specific examples involving particular cases as e.g. a \(5\times 5\) anti-symmetric matrix \(\hat{F}\), which can be exponentiated as it follows [9]

$$\begin{aligned} e^{t\, \hat{F}} =\hat{1}+\frac{1}{\sqrt{\Gamma } } \left[ f_{1} (t)\, \hat{F}+f_{2} (t)\, \hat{F}^{2} +f_{3} (t)\hat{F}^{3} +f_{4} (t)\, \hat{F}^{4} \, \right] \end{aligned}$$
(52)

where

$$\begin{aligned} \begin{aligned}&\Gamma ={ Tr}(\hat{F}^{4} )-\frac{1}{4} \left[ { Tr}(\hat{F}^{2} )\right] ^{2} , \\&\theta _{\pm }^{2} =-\frac{1}{4} { Tr}(\hat{F}^{2} )\pm \frac{1}{2} \sqrt{\Gamma } , \\&f_{1} (t)=\left( \frac{\sin (\theta _{-} t)}{\theta _{-} } \theta _{+}^{2} -\frac{\sin (\theta _{+} t)}{\theta _{+} } \theta _{-}^{2} \right) \\&f_{2} (t)=\left( \frac{1-\cos (\theta _{-} t)}{\theta _{-}^{2} } \theta _{+}^{2} -\frac{1-\cos (\theta _{+} t)}{\theta _{+}^{2} } \theta _{-}^{2} \right) \\&f_{3} (t)=\left( \frac{\sin (\theta _{-} t)}{\theta _{-} } -\frac{\sin (\theta _{+} t)}{\theta _{+} } \right) , \\&f_{4} (t)=\left( \frac{1-\cos (\theta _{-} t)}{\theta _{-}^{2} } -\frac{1-\cos (\theta _{+} t)}{\theta _{+}^{2} } \right) \end{aligned} \end{aligned}$$
(53)

We can provide the identification of the f functions with the fifth order GTF

$$\begin{aligned} \begin{aligned}&C_{0} (t)=1,\\&C_{\alpha } (t)=\frac{1}{\sqrt{\Gamma } } f_{\alpha } (t), \\&\alpha =1,\ldots ,4 \end{aligned} \end{aligned}$$
(54)

It is also worth noting that, from the previous identities, the following relationships are easily inferred

$$\begin{aligned} \begin{aligned}&\hat{F}^{2\, n+1} =\frac{1}{\sqrt{\Gamma } } \left[ {}_{1} f_{2\, n+1} \, \hat{F}+{}_{3} f_{2\, n+1} \hat{F}^{3} \, \right] , \\&\hat{F}^{2\, n} =\hat{1}+\frac{1}{\sqrt{\Gamma } } \left[ {}_{2} f_{2\, n} \, \hat{F}^{2} +{}_{4} f_{2\, n} \hat{F}^{4} \, \right] \end{aligned} \end{aligned}$$
(55)

where the coefficients

$$\begin{aligned} \begin{aligned}&{}_{1} f_{2\, n+1} =\left( \frac{\theta _{-}^{2\, n+1} }{\theta _{-} } \theta _{-}^{2} -\frac{\theta _{+}^{2\, n+1} }{\theta _{+} } \theta _{+}^{2} \right) , \\&{}_{3} f_{2\, n+1} =\left( \frac{\theta _{-}^{2\, n+1} }{\theta _{-} } -\frac{\theta _{+}^{2\, n+1} }{\theta _{+} } \right) , \\&{}_{2} f_{n} =\left( \frac{\theta _{-}^{2\, n} }{\theta _{-}^{2} } \theta _{+}^{2} -\frac{\theta _{+}^{2\, n} }{\theta _{+}^{2} } \theta _{-}^{2} \right) , \\&{}_{4} f_{n} =\left( \frac{\theta _{-}^{2\, n} }{\theta _{-}^{2} } -\frac{\theta _{+}^{2\, n} }{\theta _{+}^{2} } \right) \end{aligned} \end{aligned}$$
(56)

play a role analogous to that of \({}_{\alpha } c_{n} \) introduced in the previous sections.

Final Comments

In the previous sections we have introduced the properties of the auxiliary coefficients \(c_{n} \) and \( s_{n} \), their role is fairly important within the present context and warrants further analysis.

To this aim we note that they satisfy the following recurrences

$$\begin{aligned} \begin{aligned}&\left( \begin{array}{c} {c_{n+1} } \\ {s_{n+1} } \end{array}\right) =\left( \begin{array}{c@{\quad }c} {0} &{} {-\Delta _{\hat{M}} } \\ {1} &{} {{ Tr}(\hat{M})} \end{array}\right) \, \left( \begin{array}{c} {c_{n} } \\ {s_{n} } \end{array}\right) , \\&\left( \begin{array}{c} {c_{0} } \\ {s_{0} } \end{array}\right) =\left( \begin{array}{c} {1} \\ {0} \end{array}\right) \end{aligned} \end{aligned}$$
(57)

which follow from the identities

$$\begin{aligned} \begin{aligned} \hat{M}^{n+1}&=c_{n+1} \hat{1}+s_{n+1} \hat{M}, \\ \hat{M}^{n+1}&=-\Delta _{M} s_{n} \hat{1}+\left[ c_{n} +{ Tr}(\hat{M})\, s_{n} \right] \, \hat{M} \end{aligned} \end{aligned}$$
(58)

The above recurrences can be cast in the decoupled form

$$\begin{aligned} c_{n+2} -{ Tr}(\hat{M})\, c_{n+1} +\Delta _{\hat{M}} \, c_{n} =0 \end{aligned}$$
(59)

and for \(s_{n} \) we find an analogous expression.

The solution of the difference Eq. (59) can be obtained by the use of the Binet method [10], after setting \(c_{n} =r^{n} \) we find indeed

$$\begin{aligned} c_{n} =\alpha _{1} r_{+}^{n} +\alpha _{2} r_{-}^{n} \end{aligned}$$
(60)

with \(r_{\pm } \) being solutions of the auxiliary equation

$$\begin{aligned} r^{2} -{ Tr}(\hat{M})r+\Delta _{\hat{M}} =0 \end{aligned}$$
(61)

and \(\alpha _{1,2} \) being defined through the “initial constants” \(c_{0,1} \).

Accordingly we obtain

$$\begin{aligned} c_{n} =\frac{1}{r_{-} -r_{+} } \left[ c_{0} (r_{-} r_{+}^{n} -r_{+} r_{-}^{n} )+c_{1} \left( r_{-}^{n} -r_{+}^{n} \right) \right] \end{aligned}$$
(62)

It is also interesting to note that, by rescaling \( n = m-2 \), Eq. (59) writes

$$\begin{aligned} c_{m} =-\Delta _{\hat{M}} \, c_{m-2} +{ Tr}(\hat{M})\, c_{m-1} \end{aligned}$$
(63)

Equation (63), for \({ Tr}(\hat{M})=1\) and \(\Delta _{\hat{M}} =-1\) (e.g. the eigenvalues of \(\hat{M}\) are the golden ratio and the opposite of the golden ratio conjugate), reduces to the Fibonacci sequence. The link between the previous coefficient and the Fibonacci trigonometry will be discussed elsewhere.

These coefficients play a more general role when extended to the case of higher order matrices and the systematic study of their properties may simplify the calculations of problems where exponentiation of matrices are involved.

In the past, different generalizations of the trigonometric functions have been proposed, in addition to those quoted in this paper different avenues have been explored along this direction. The tool exploited within such a framework can be comprised into three different branches:

  1. (a)

    Use of matrix methods and generalization of the Euler exponential rule.

  2. (b)

    Extension of the trigonometric fundamental identity, providing a thread with elliptic functions [11].

  3. (c)

    Generalized forms of the series expansion, providing a link with integer order Mittag–Leffler function [12,13,14].

This last point of view provides a significant step forward in the theory of special functions, yielding a tool for applications in the field of classical and quantum optics [15,16,17].

Preliminary attempts to merge the points of view (a) and (c) have been put forward in Refs. [18, 19].

Even though the matter presented in this paper may sound abstract there are important applications in beam transport optics as illustrated below.

The use of \(4\times 4\) matrices is currently employed to deal with transverse coupling in charged beam transport [20]. Baumgarten [21] has proposed the use of real Dirac matrices [22] to construct a generalization of the one dimensional Courant–Snyder theory of beam transport.

Within such a context the beam transport through a solenoid can be written as

$$\begin{aligned} \frac{d}{ds} \left( \begin{array}{c} {x} \\ {\dfrac{x'}{K} }\\ {y} \\ {\dfrac{y'}{K} } \end{array}\right) =K\left( \begin{array}{c@{\quad }c@{\quad }c@{\quad }c} {0} &{} {1} &{} {1} &{} {0}\\ {-1} &{} {0} &{} {0} &{} {1} \\ {-1} &{} {0} &{} {0} &{} {1}\\ {0} &{} {-1} &{} {-1} &{} {0} \end{array}\right) \left( \begin{array}{c} {x} \\ {\dfrac{x'}{K} } \\ {y} \\ {\dfrac{y'}{K} } \end{array}\right) \end{aligned}$$
(64)

where K is the solenoid strength and the column vector is represented by the position an velocity for the transverse coordinates (xy), finally s is the propagation coordinate, playing the role of time.

The solution of the previous system of differential equation can be written as

$$\begin{aligned} \begin{aligned}&\underline{Z}=\hat{U}(s)\underline{Z}_{0} , \\&\hat{U}(s)=e^{Ks\hat{T}} \\&\hat{T}=\left( \begin{array}{c@{\quad }c@{\quad }c@{\quad }c} {0} &{} {1} &{} {1} &{} {0} \\ {-1} &{} {0} &{} {0} &{} {1} \\ {-1} &{} {0} &{} {0} &{} {1} \\ {0} &{} {-1} &{} {-1} &{} {0} \end{array}\right) \end{aligned} \end{aligned}$$
(65)

The use of the techniques outlined in the previous section yields for the evolution operator

$$\begin{aligned} \hat{U}(s)=\hat{1}+\frac{\sin (2Ks)}{2} \hat{T}+\frac{1-\cos (2Ks)}{4} \hat{T}^{2} -\frac{\sin (2Ks)}{16} \hat{T}^{3} \end{aligned}$$
(66)

however the above expression simplifies since \(\hat{T}^{3} =-4\, \hat{T}\).

In this case the GTF are simple combinations of the ordinary circular functions.

The method proposed is however fairly important because the (sixteen) real Majorana matrices provide a basis for the \(4\times 4\) matrices and it could be interesting to develop a systematic study within the context of GTF viewed as the associated auxiliary functions. The relevant applications might be interesting for a plethora of problems including e.g. four level systems interacting with external radiation.

We conclude this paper by noting that, in terms of the Majorana matrices, the solenoid transport matrix reads

$$\begin{aligned} \begin{aligned} \hat{T}&=\gamma _{0} -\gamma _{9} , \\ \gamma _{0}&=\left( \begin{array}{c@{\quad }c@{\quad }c@{\quad }c} {0} &{} {1} &{} {0} &{} {0} \\ {-1} &{} {0} &{} {0} &{} {0} \\ {0} &{} {0} &{} {0} &{} {1} \\ {0} &{} {0} &{} {-1} &{} {0} \end{array}\right) ,\,\;\; \gamma _{9} =\left( \begin{array}{c@{\quad }c@{\quad }c@{\quad }c} {0} &{} {0} &{} {-1} &{} {0} \\ {0} &{} {0} &{} {0} &{} {-1} \\ {1} &{} {0} &{} {0} &{} {0} \\ {0} &{} {1} &{} {0} &{} {0} \end{array}\right) \end{aligned} \end{aligned}$$
(67)

Since \(\gamma _{0} ,\, \gamma _{9} \) are commuting quantities, we can also write

$$\begin{aligned} \begin{aligned}&e^{\hat{T}\, \xi } =e^{\hat{\gamma }_{0} \xi } e^{-\hat{\gamma }_{9} \xi } , \\&e^{\hat{\gamma }_{0,9} \xi } =\cos (\xi )\, \hat{1}+\sin (\xi )\, \hat{\gamma }_{0,9} \end{aligned} \end{aligned}$$
(68)

and easily recover the result reported in Eq. (66).

A more systematic analysis will be presented elsewhere.