Draft:Squigonometry

Squigonometry or $p$-trigonometry is a branch of mathematics that extends traditional trigonometry to shapes other than circles, particularly to squircles, in the $p$-norm. Unlike trigonometry, which deals with the relationships between angles and side lengths of triangles and uses trigonometric functions, squigonometry focuses on analogous relationships within the context of a unit squircle.

Squigonometric functions are mostly used to solve certain indefinite integrals, using a method akin to trigonometric substitution. This approach allows for the integration of functions that are otherwise computationally difficult to handle.

Squigonometry has been applied to find expressions for the volume of superellipsoids, such as the superegg.

Etymology
The term squigonometry is a portmanteau of squircle and trigonometry. The first use of the term "squigonometry" is undocumented: the coining of the word possibly emerged from mathematical curiosity and the need to solve problems involving squircle geometries. As mathematicians sought to generalize trigonometric ideas beyond circular shapes, they naturally extended these concepts to squircles, leading to the creation of new functions.

Nonetheless, it is well estabilished that the idea of parametrizing other curves that lack the circle’s perfection has been around for around 300 years. Over the span of three centuries, many mathematicians have thought about using functions similar to trigonometric functions to parameterize these generalized curves.

Definition through unit squircle
The cosquine and squine functions, denoted as $$cq_p(t)$$ and $$sq_p(t),$$ can be defined analogously to trigonometric functions on a unit circle, but instead using the coordinates of points on a unit squircle, described by the equation:
 * $$|x|^p + |y|^p = 1$$

where $$p$$ is a real number greater than or equal to 1. Here $$x$$ corresponds to $$cq_p(t)$$ and $$y$$ corresponds to $$sq_p(t)$$

Notably, when $$p=2$$, the squigonometric functions coincide with the trigonometric functions.

Definition through differential equations
Similarly to how trigonometric functions are defined through differential equations, the cosquine and squine functions are also uniquely determined by solving the coupled initial value problem :
 * $$\begin{cases}

x'(t)=-[y(t)]^{p-1}\\ y'(t)=[x(t)]^{p-1}\\ x(0)=1\\ y(0)=0 \end{cases}$$ Where $$x$$ corresponds to $$cq_p(t)$$ and $$y$$ corresponds to $$sq_p(t)$$.

Definition through analysis
The definition of sine and cosine through integrals can be extended to define the squigonometric functions. Let $$1<p<\infty$$ and define a differentiable function $$F_p:[0,1]\rightarrow$$ by:
 * $$F_p (x)=\int_{0}^{x}\frac{1}{\sqrt[p]{1-t^p}}\,dt$$

Since $$F_p$$ is strictly increasing it is a one-to-one function on $$[0,1]$$ with range $$[0,\pi_p/2]$$, where $$\pi_p$$ is defined as follows:
 * $$\pi_p=2\int_{0}^{1}\frac{1}{\sqrt[p]{1-t^p}}\,dt$$

Let $$sq_p$$ be the inverse of $$F_p$$ on $$[0,\pi_p/2]$$. This function can be extended to $$[0,\pi_p]$$ by defining the following relationship:
 * $$sq_p (x)=sq_p (\pi_p-x)$$

By this means $$sq_p$$ is differentiable in $$$$ and, corresponding to this, the function $$cq_p$$ is defined by:
 * $$cq_p (x)=\frac{d}{dx}sq_p (x)$$

Tanquent, cotanquent, sequent and cosequent
The tanquent, cotanquent, sequent and cosequent functions can be defined as follows :
 * $$tq_p(t)=\frac{sq_p(t)}{cq_p(t)}$$
 * $$ctq_p(t)=\frac{cq_p(t)}{sq_p(t)}$$
 * $$seq_p(t)=\frac{1}{cq_p(t)}$$
 * $$cseq_p(t)=\frac{1}{sq_p(t)}$$

Inverse squigonometric functions
General versions of the inverse squine and cosquine can be derived from the initial value problem above. Let $$x=cq_p (y)$$; by the inverse function rule, $$\frac{dx}{dy} =-[sq_p (y)]^{p-1}=(1-x^p)^{(p-1)/p}$$. Solving for $$y$$ gives the definition of the inverse cosquine:
 * $$y=cq_{p}^{-1}(x) = \int_{x}^{1}(\frac{1}{1-t^p})^{\frac{p-1}{p}}\,dt$$

Similarly, the inverse squine is defined as:
 * $$sq_{p}^{-1}(x) = \int_{0}^{x}(\frac{1}{1-t^p})^{\frac{p-1}{p}}\,dt$$

Solving integrals
Squigonometric substitution can be used to solve integrals, such as integrals in the generic form $$I = \int_{a}^{b}({1-t^p})^\frac{1}{p}\,dt$$.