\documentclass[reqno]{amsart}
\usepackage{hyperref}
\usepackage{graphicx}

\AtBeginDocument{{\noindent\small
Variational and Topological Methods:
Theory, Applications, Numerical Simulations, and Open Problems (2012).
{\em Electronic Journal of Differential Equations},
Conference 21 (2014),  pp. 101--127.
ISSN: 1072-6691.  http://ejde.math.txstate.edu,
http://ejde.math.unt.edu \newline ftp ejde.math.txstate.edu}
\thanks{\copyright 2014 Texas State University - San Marcos.}
\vspace{9mm}}

\begin{document} \setcounter{page}{101}
\title[\hfilneg EJDE-2014/Conf/21 \hfil $p$-trigonometric functions]
{Differentiability properties of $p$-trigonometric functions}

\author[P. Girg, L. Kotrla \hfil EJDE-2014/Conf/21\hfilneg]
{Petr Girg, Luk\'{a}\v{s} Kotrla}  % in alphabetical order

\address{Petr Girg \newline
Department of Mathematics, University of West Bohemia,
Univerzitn\'{\i} 22, 30614, Plze\v{n}, Czech Republic}
\email{pgirg@kma.zcu.cz}

\address{Luk\'{a}\v{s} Kotrla \newline
Department of Mathematics, University of West Bohemia,
Univerzitn\'{\i} 22, 30614, Plze\v{n}, Czech Republic}
\email{kotrla@students.zcu.cz}

\thanks{Published February 10, 2014.}
\subjclass[2000]{34L10, 33E30, 33F05}
\keywords{$p$-Laplacian; $p$-trigonometry; analytic functions; approximation}

\begin{abstract}
 $p$-trigonometric functions are generalizations of the trigonometric functions.
 They appear in context of nonlinear differential equations
 and also in analytical geometry of the $p$-circle in the plain.
 The most important $p$-trigonometric function is $\sin_p(x)$.
 For $p>1$, this function is defined  as the unique solution
 of the initial-value problem
 $$
 (|u'(x)|^{p-2} u'(x))'= (p-1)
 |u(x)|^{p-2} u(x), \quad u(0)=0, \; u'(0)=1\,,
 $$
 for any $x\in\mathbb{R}$.
 We prove that the $n$-th derivative of $\sin_p(x)$ can be expressed
 in the form
 $$
 \sum_{k=0}^{2^{n-2}-1} a_{k,n} \sin_{p}^{q_{k,n}}(x) \cos_{p}^{1-q_{k,n}}(x)\,,
 $$
 on $(0, \pi_p/ 2)$, where $\pi_p=\int_0^1 (1-s^p)^{-1/p}\rm{d}s$,
 and $\cos_p(x)=\sin_p'(x)$.
 Using this formula, we proved the order of differentiability
 of the function $\sin_p(x)$. The most surprising (least expected)
 result is that $\sin_p(x)\in C^{\infty}(-{\pi_p/2}, {\pi_p/2})$
 if $p$ is an even integer.
 This result was essentially used in the proof of theorem, which says that the
 Maclaurin series of $\sin_p(x)$ converges on $(-\pi_p/2, \pi_p/2)$ if
 $p$ is an even integer. This completes previous results that were
 known e.g. by Lindqvist and Peetre where this convergence was conjectured.
\end{abstract}

\maketitle
\numberwithin{equation}{section}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{openproblem}[theorem]{Open Problem}
\newtheorem{remark}[theorem]{Remark}
\allowdisplaybreaks


\section{Introduction}

In the previous two decades, $p$-trigonometric functions have
attracted attention of many researchers; see, e.g.,
\cite{BindingBoultonCepickaDrabekGirg, BushellEdmunds, BoultonLord, 
CepDrabGirg, EdmundsGurkaLang, Elbert, Evans, LangEdmunds, Lindqvist, 
LindqvistPeetre, Peetre},
and references therein. The $p$-trigonometric functions arise from 
the study of the eigenvalue problem for the
one-dimensional $p$-Laplacian. We assume $p>1$ and say, that 
$\lambda \in \mathbb{R}$ is an eigenvalue of
\begin{equation} \label{rce:eig}
\begin{gathered}
-(|u'|^{p-2}u')'-\lambda|u|^{p-2}u=0 \quad\text{in }(0,\pi_p)\,,\\
u(0) = u(\pi_p) = 0\,,
\end{gathered}
\end{equation}
if there is a nonzero function $u\in W^{1,p}(0,\pi_p)$ that satisfy 
\eqref{rce:eig} in a weak sense.
Here
\begin{equation}\label{pi_p}
\pi_p = 2\int_0^1 \frac{1}{{(1-s^p)}^{1/p}}\,\mathrm{d}s 
= \frac{2\pi}{p\sin(\pi/p)}\,.
\end{equation}
Let us note, that the problem can be considered on any bounded open interval, 
but the choice $(0,\pi_p)$ significantly simplifies the calculations.
The discreetness of the spectrum of this eigenvalue problem was established 
already by  Ne\v{c}as \cite{Necas}.
This eigenvalue problem was later studied by means of the initial-value problem
\begin{equation}\label{rce:init}
\begin{gathered}
-(|u'|^{p-2}u')'-\lambda|u|^{p-2}u=0 \quad\text{in }(0,\infty)\,,\\
u(0)=0, \quad u'(0) = 1\,;
\end{gathered}
\end{equation}
see  Elbert~\cite{Elbert} for initial work in this direction. 
Later it was independently studied by
del Pino-Elgueta-Manasevich~\cite{DEM},  \^{O}tani~\cite{Otani} and
Lindqvist~\cite{LindqvistRockyMnts}.

Let $\sin_p(x)$ denote the solution of \eqref{rce:init} with $\lambda=(p-1)$.
It follows from \cite{Elbert} that $\sin_p(x)$ is positive on $(0, \pi_p)$ and
satisfies an identity
\begin{equation}\label{eq:ptrigonometric}
 |\sin_p(x)|^p + |\sin_p'(x)|^p = 1\quad \forall x\in\mathbb{R}\,,
\end{equation}
which for $p=2$ becomes the familiar identity for sine and cosine.
This suggest the definition 
$\cos_p(x):=\sin_p'(x)$
and justifies the notation $\sin_p(x)$ and $\cos_p(x)$. 
The identity \eqref{eq:ptrigonometric}
is called $p$-trigonometric identity.
It also follows from \cite{Elbert} that the eigenvalues of \eqref{rce:init} 
form a sequence
$\lambda_k=k^p(p-1), k\in\mathbb{N}$
and corresponding eigenfunctions are functions
$\sin_p(k x), k\in\mathbb{N}$.
Thus all the eigenfunctions are determined by the function $\sin_p(x)$. 
It comes as no surprise that
the properties of the function $\sin_p(x)$ were studied extensively 
in the previous 30 years.
It was shown in \cite{Elbert} that $\sin_p(x)$ can be expressed on 
$[0,\pi_p/2]$ (the $p$-trigonometric identity \eqref{eq:ptrigonometric} 
can be thought of as the first integral of \eqref{rce:init})
as the inverse of
\begin{equation}
\label{rce:defarcsin:intro}
\arcsin_p(x)=\int_0^x\frac{1}{(1-s^p)^{1/p}}\,\mathrm{d}s\,,\quad x\in [0,1]\,,
\end{equation}
which is extended to $[0,\pi_p]$ by reflection
$\sin_p(x)=\sin_p(\pi_p-x)$ and to
$[-\pi_p,\pi_p]$ as the odd function.
Finally, it is extended to $\mathbb{R}$ as the $2\pi_p$-periodic function.
The function $\arcsin_p(x)$ from \eqref{rce:defarcsin:intro} 
is extended to $[-1,1]$ as an odd function.
Then
\begin{equation}\label{eq:id:sin:arcsin}
 \sin_p(\arcsin_p(x)) = x\quad \forall x\in [-1,1]\,.
\end{equation}
Note that for $p=2$, we obtain classical arcsine and sine from this definition.
The (now familiar) notation $\sin_p$ appears in \cite{DEM} for the first time,
where the authors studied homotopic deformation along $p$ to calculate the degree
of trivial solutions of \eqref{rce:eig} in order to establish existence 
results for the nonlinear problem
$(|u'|^{p-2}u')'+f(t,u)=0$, $u(0)=u(T)=0$, $p>1$, $T>0$. 
The homotopy result from \cite{DEM} initiated
development of bifurcation theory for quasilinear bifurcations.

As a historical remark,
let us mention that generalizations of arcsine similar to 
\eqref{rce:defarcsin:intro} were studied in a very different
context by  Lundberg \cite{EL} in 1879.
It is interesting to mention that
the $p$-trigonometric functions satisfy certain relations to geometrical objects
such as arclength and area of a circle in a noneuclidean metric;
see  Elbert \cite{Elbert}, and  Lindqvist \cite{Lindqvist}.
The $p$-trigonometric functions also possesses some
approximation properties in certain function spaces;
see, e.g.,  Binding-Boulton-\v{C}epi\v{c}ka-Dr\'{a}bek-Girg~\cite{BindingBoultonCepickaDrabekGirg},
Lang-Edmunds~\cite{LangEdmunds} for theoretical research,
and Boulton-Lord~\cite{BoultonLord} for a very interesting computational 
application in evolutionary PDEs.
In  Wood \cite{Wood}, the particular case $p=4$ was studied and ``$p$-polar'' 
coordinates in the $xy$-plane were proposed.

In this article we focus on the differentiability and analyticity properties 
of $p$-trigonometric functions.
One can immediately see from \eqref{pi_p}, \eqref{rce:defarcsin:intro}, 
and \eqref{eq:id:sin:arcsin}
that $\sin_p(0)=0$ and $\sin_p(\pi_p/2)=1$ for all $p>1$.
From \eqref{eq:ptrigonometric} and the definition of $\cos_p(x)$, we obtain
$\cos_p(0)=1$ and $\cos_p(\pi_p/2)=0$.
It follows from the results in \cite{Elbert, Lindqvist, Otani} that the
possible differentiability issues are located at $x=0$ and $x=\pi_p/2$.
There are several results concerning differentiability and asymptotic
 behaviour of $\sin_p(x)$ at $x=0$ and $x=\pi_p/2$ in
 Man\'{a}sevich-Tak\'{a}\v{c} \cite{ManasevichTakac} and
Benedikt-Girg-Tak\'{a}\v{c} \cite{BenediktGirgTakacFredholm}.
In  Peetre \cite{Peetre}, generalized formal Maclaurin series for 
$\sin_p(x)$ were studied and their convergence was conjectured on
$(-\pi_p/2, \pi_p/2)$.
The local convergence of the generalized Taylor series 
(and/or the generalized Maclaurin series) for $\sin_p(x)$ follows from 
Paredes-Uchiyama \cite{ParedesUchiyama}.
Taking into account that the point $x=0$ is often considered as the center 
for the Taylor (i.e. the Maclaurin) series or
the generalized Taylor (i.e. the generalized Maclaurin) series for $\sin_p(x)$, 
we decided to provide detailed study of the convergence of these series towards
$\sin_p(x)$ on $(-\pi_p/2, \pi_p/2)$.
We were also motivated by work of \^{O}tani \cite{Otani2}, where he studies 
properties of the solutions of
\begin{equation} \label{rce:Otani}
\begin{gathered}
(|u'|^{p-2}u')'+|u|^{q-2}u=0 \quad\text{in }(a,b)\,,\\
u(a) = u(b) = 0\,,
\end{gathered}
\end{equation}
for general exponents  $p,q\in (1,+\infty)$ with $p\neq q$. 
Among other properties he proved that for 
$p = \frac{2m + 2}{2m + 1},m\in\{0\}\cup\mathbb{N}$ and for $q$ even, 
any solution of \eqref{rce:Otani} belongs to $C^{\infty}(a,b)$.
In our case, $p = q$ we find that $\sin_p(x)$ belongs to 
$C^{\infty}(-\pi_p/2,\pi_p/2)$ if and only if $p$ is even.
Let us also remark that local analytic solutions of the radial 
variant of \eqref{rce:Otani} were studied in  Bogn\'{a}r~\cite{Bognar}.

Though we are aware that our methods are elementary mathematics, we are 
sure that our results will help to
better understand the behavior of $\sin_p(x)$ and its derivatives in the
 vicinity of $0$. This behavior is crucial
in establishing asymptotic estimates such as those in the proof of 
the Fredholm alternative for the $p$-Laplacian in the degenerate
case Benedikt-Girg-Tak\'{a}\v{c}
 \cite{BenediktGirgTakacFredholm, BenediktGirgTakacVanishing}.
Moreover, knowledge of the convergence/nonconvergence
of the Taylor and/or the Maclaurin series is very important in the 
development of numerical methods for calculating
approximations of function values of $p$-trigonometric functions. Recently, 
 Marichev \cite{Marichev} from
the Wolfram Research, Inc., pointed out to the first author of this paper 
in a personal communication
that  Mathematica from version 8.0 has a capability
to effectively compute coefficients for $\sin_p(x)$ for formal generalized 
Maclaurin power series by means of the Bell Polynomials.
With few lines of  Mathematica code
one can obtain partial sums of generalized Maclaurin series for $\sin_p(x)$ 
of large order in a couple of minutes.
Thus the question of the convergence of the partial sums of the
 Maclaurin series is becoming quite urgent.
This was our main motivation to address this topic.

Our main result provides convergence of these partial sums.
We treat two cases separately, $p>2$ is an even integer and $p>2$ 
is an odd integer.
Namely, for the particular case $\sin_{2 (m+1)}(x)$, $m\in\mathbb{N}$, 
$x\in (-\pi_p/2, \pi_p/2)$,
we show that the Maclaurin series converges towards the values 
$\sin_{2 (m+1)}(x)$ on the
interval $(-\pi_p/2, \pi_p/2)$.
On the other hand, we show that the Maclaurin series converge towards
 $\sin_{2 m+1}(x)$, $m\in\mathbb{N}$, for $x\in (0,\pi_p/2)$
and does not for  $x\in (-\pi_p/2,0)$.
More precisely, the Maclaurin series converges on 
$x\in (-\pi_p/2, \pi_p/2)$,
but not towards values of $\sin_{2 m+1}(x)$, $m\in\mathbb{N}$ for  
$x\in (-\pi_p/2,0)$.

The article is organized as follows. In Section 2, we give a definition of
the function $\sin_p(x)$ by means of a differential equation and also 
introduce other useful notation. In Section 3, we state and discuss 
our main results concerning differentiability and/or non-differentiability
of $\sin_p(x)$ and convergence of Maclaurin series of $\sin_p(x)$. 
In Section 4, we express higher derivatives
of $\sin_p(x)$ by means of powers of $\sin_p(x)$ and $\cos_p(x)$. 
Finally, in Section 5, we prove our main results
using formulas for higher derivatives of $\sin_p(x)$ from Section 4. 
In Section 6, we conclude with remarks and open problems.


\section{Definitions of $p$-trigonometric functions}

\begin{proposition} \label{prop:init}
The initial-value problem
\begin{equation} \label{eq:prop:init}
\begin{gathered}
-(|u'|^{p-2}u')'- (p-1)|u|^{p-2}u=0 \\
u(0)=0, \quad u'(0) = 1\,,
\end{gathered}
\end{equation}
has the unique local solution and moreover any local solution 
to \eqref{eq:prop:init} can be continued to $(-\infty,+\infty)$.
\end{proposition}

For uniqueness of the solution see \cite[Sect. 3]{DEM},
and for the existence of global solutions see \cite[Lemma A.1]{DDM}.

\begin{definition} \label{def:p:sin} {\rm
The function $\sin_p(x)$ is defined as the unique solution of the 
initial-value problem \eqref{eq:prop:init} on $\mathbb{R}$.}
\end{definition}

For any $q>1$ and $z\in\mathbb{R}$ we define
\begin{equation}
\label{def:phi:p}
\varphi_q(z) =\begin{cases}
|z|^{q-2}z & \text{for} z\not=0\,, \\
0 & \text{for }z=0\,.
\end{cases}
\end{equation}
Note that $\varphi_{p'}(\varphi_p(z))=\varphi_{p}(\varphi_{p'}(z)) = z$ 
provided $p>1$ and $1/p+1/p'=1$.
With this notation, we can rewrite the initial-value problem 
\eqref{eq:prop:init} as an equivalent first-order system
\begin{equation}\label{eq:system}
\begin{gathered}
u'(x) = \varphi_{p'}(v(x))\,, \\
v'(x) = -(p-1)\varphi_{p}(u(x))\,, \\
u(0)  = 0, \quad v(0)  = 1\,.
\end{gathered}
\end{equation}
Clearly, from the definition of Carath\'{e}odory solution, it follows 
that $u(x)=\sin_p(x)$ and $v(x)=\varphi_p(\sin_p'(x))$
must be absolutely continuous on any compact interval $[-K,K]$, $K>0$. 
Thus $\sin_p'(x) = \varphi_{p'}(v(x))$ is continuous
on any $[-K,K]$, $K>0$, which entails that $\sin_p'(x) = \varphi_{p'}(v(x))$ 
is continuous on $(-\infty, +\infty)$.
Thus the following definition makes sense.

\begin{definition} \label{def:p:cos}{\rm
For $x\in\mathbb{R}$, we define $\cos_p(x)=\sin_p'(x)$.}
\end{definition}

Since $\cos_p(0)=\sin_p'(0)=1$ and $\cos_p(x)$ is continuous, 
there exists an interval $(-c,c)$ such that $\cos_p(x)>0$ on $(-c,c)$, $c>0$.
Moreover, since $\sin_p'(0)=1$ and $\sin_p \in C^{1}(\mathbb{R})$, 
there exists an interval
$[0,s)$, $s>0$, such that $\sin_p(x)\geq 0$ on $[0,s)$.


\begin{definition} \label{def:pip} {\rm
For $p>1$, let $\pi_p$ denote 
$$
2 \sup\{s>0: \forall{x}\in (0,s)\text{ holds }\sin_p(x)>0
\wedge  \cos_p(x)>0\}\,.
$$
}\end{definition}

It was shown in \cite{Elbert}, that
$$
\pi_p = 2\int_0^1 \frac{1}{{(1-x^p)}^{1/p}}\,\mathrm{d}x
 = \frac{2\pi}{p\cdot\sin(\pi/p)}\,,
$$
for $p>1$.
It was also shown in \cite{Elbert}, that
$\sin_p(x)$ can be expressed on $[0,\pi_p/2]$
as the inverse of
\begin{equation} \label{rce:defarcsin}
\arcsin_p(x)=\int_0^x\frac{1}{(1-s^p)^{1/p}}\,\mathrm{d}s\,\quad x\in [0,1]\,,
\end{equation}
and, moreover, it extends to $[0,\pi_p]$ by reflection
$\sin_p(x)=\sin_p(\pi_p-x)$ and to
$[-\pi_p,\pi_p]$ as the odd function.
Finally, it extends to $\mathbb{R}$ as the $2\pi_p$-periodic function.

\begin{remark}{\rm
In the following text, formulas containing higher order derivatives and 
powers of $\sin_p(x)$ and $\cos_p(x)$ appear.
We try to keep our notation as close as possible to the usual notation 
for classical trigonometric functions.
Thus the derivatives are denoted by, e.g., 
$\sin_p'(x), \dots, \sin_p'''(x), \sin_p^{(\mathrm{iv})}(x)$ 
(primes and roman numerals) and/or, e.g.,
$\sin_p^{(n)}(x)$, $\sin_p^{(2n-1)}$ and $\sin_p^{(2n)}$ for $n\in\mathbb{N}$.
On the other hand, the powers are denoted by $\sin_p^2(x), \sin_p^3(x), 
\sin_p^q(x)$, $q\in\mathbb{R}$.
Where a confusion may happen, we denote the powers by, e.g., 
$(\sin_p(x))^m$, $m\in\mathbb{N}$, to distinguish them clearly from derivatives.
For the convenience of the reader, we write the values of $p$ as 
explicit as possible, with a few exceptions such as in the proofs of Theorems
\ref{thm:convergence} and \ref{thm:convergence:odd}, where this 
approach would produce very lengthy formulas.
}\end{remark}

\section{Main results}

In the sequel, we study derivatives of $\sin_p(x)$ for $p\in\mathbb{N}$, $p>2$
on the interval $x\in(-\pi_p/2,\pi_p/2)$.
We distinguish two cases $p$ is even, i.e., $p= 2 (m+1)$ and 
$m\in\mathbb{N}$, and
$p$ is odd; i.e., $p= 2 m + 1$ and $m\in\mathbb{N}$.
In the first case $p=2 (m + 1)$, the $p$-trigonometric identity 
\eqref{eq:ptrigonometric}
takes form
\begin{equation}\label{eq:trig:id:even}
(\sin_{2 (m+1)}(x))^{2 (m+1)} + (\cos_{2 (m+1)(x)})^{2 (m+1)} =1\,,
\end{equation}
which is valid for any $x\in\mathbb{R}$ and hence on 
$(-\pi_p/2,\pi_p/2)$.
Note that there is no absolute value, since there are even powers.

In the second case $p=2 k + 1$, we have to distinguish
two subcases. For $0<x<\frac{\pi_p}{2}$, the $p$-trigonometric identity 
takes form
\begin{equation} \label{eq:trig:id:odd:positive}
(\sin_{2 m + 1}(x))^{2 m + 1} + (\cos_{2 m + 1}(x))^{2 m + 1}=1\,.
\end{equation}
On the other hand, for $-\pi_p/2<x<0$, the $p$-trigonometric identity takes form
\begin{equation}
\label{eq:trig:id:odd:negative}
-(\sin_{2 m + 1}(x))^{2 m + 1} + (\cos_{2 m + 1}(x))^{2 m + 1} =1\,.
\end{equation}

Since there is only one identity \eqref{eq:trig:id:even} for $p=2 (m + 1)$,
this case has nice smoothness properties on $(-\pi_p/2, \pi_p/2)$
and we obtain a rather surprising result concerning smoothness of
function $\sin_p(x)$ for even $p$.

\begin{theorem} \label{thm:main:1}
Let $p=2 (m+1)$, $m\in\mathbb{N}$. Then
$$
\sin_{2 (m+1)}(x)\in C^{\infty}\big(-\frac{\pi_{2(m+1)}}{2}, 
\frac{\pi_{2(m+1)}}{2}\big)\,.
$$
\end{theorem}

On the other hand, for $p= 2 m + 1$, we have to distinguish two 
subcases \eqref{eq:trig:id:odd:positive} and \eqref{eq:trig:id:odd:negative},
which has damaging effect on the differentiability of $\sin_p(x)$.
Thus the smoothness is lost when $p$ is odd. The smoothness is also lost 
if $p$ is not an integer.

\begin{theorem} \label{thm:max:differentiability}
Let $p\in\mathbb{R}\setminus\{2 m\}$, $m\in \mathbb{N}$, $p>1$.
Then 
$$
\sin_p(x)\in C^{\lceil p \rceil}(-\pi_p/2, \pi_p/2)\,,
$$
but
$$\sin_p(x)\not\in C^{\lceil p \rceil + 1}(-\pi_p/2, \pi_p/2)\,.
$$
\end{theorem}
Here $\lceil p \rceil :=
\min\{k\in\mathbb{N}: k\geq p\}$.

Our last result gives an explicit radius of convergence of the Maclaurin 
series for even $p>2$. To the best of our knowledge,
all previous results concerning convergence of series for $\sin_p(x)$ 
were only local; see, e.g., \cite{ParedesUchiyama}.

\begin{theorem}\label{thm:convergence}
Let $p=2 (m+1)$ for $m\in\mathbb{N}$. Then the Maclaurin series of 
$\sin_{2 (m+1)}(x)$ 
converges on $(-\frac{\pi_{2 (m+1)}}{2}, \frac{\pi_{2 (m+1)}}{2})$.
\end{theorem}

\begin{theorem} \label{thm:convergence:odd}
Let $p=2 m+1$, $m\in\mathbb{N}$.
Then the formal Maclaurin series of $\sin_{2 m+1}(x)$ converges on 
$(-\frac{\pi_{2 m+1}}{2}, \frac{\pi_{2 m+1}}{2})$.
Moreover, the formal Maclaurin series of $\sin_p(x)$ converges towards
$\sin_{2 m+1}(x)$ on $[0, \frac{\pi_{2 m+1}}{2})$, but does not converge
towards $\sin_{2 m+1}(x)$ on $(-\frac{\pi_{2 m+1}}{2},0)$.
\end{theorem}

The proofs of Theorems \ref{thm:main:1}--\ref{thm:convergence:odd} 
are postponed to Section \ref{sec:proofs:thms}.

\section{Derivatives of $\sin_p(x)$}

The following lemma summarizes basic properties of $\sin_p(x)$ and $\cos_p(x)$.

\begin{lemma} \label{lemma:basic:properties}
Let $p\in\mathbb{R}, p>1$. Functions $\sin_p(x)$ and $\cos_p(x)$
have the following basic properties.
\begin{enumerate}
\item\label{it:1} $\sin_p(x)>0$ on $(0,\pi_p)$, $\sin_p(0)=0$, $\sin_p(x)=\sin_p(\pi_p-x)$ for $x\in (\frac{\pi_p}{2}, \pi_p)$, and $\sin_p(x)=-\sin_p(-x)$ on $(-\pi_p, 0)$. The function $\sin_p(x)$ extends to $\mathbb{R}$ as $2\pi_p$-periodic function.
\item\label{it:2} $\sin_p(x)$ is strictly increasing on $(-\pi_p/2, \pi_p/2)$.
\item\label{it:3} $\cos_p(x)>0$ on $(-\pi_p/2, \pi_p/2)$,
$\cos_p(-\frac{\pi_p}{2}) = \cos_p(\frac{\pi_p}{2})=0$ and $\cos_p(x)<0$ on
$\left[-\pi_p, -\frac{\pi_p}{2})\cup (\frac{\pi_p}{2}, \pi_p\right]$.
\item\label{it:4} For all $n\in\mathbb{N}$, if $\sin_p^{(2 n - 1)}(x)$ exists on $(-\pi_p/2, \pi_p/2)$, then it is even function on $(-\pi_p/2, \pi_p/2)$.
\item\label{it:5} For all $n\in\mathbb{N}$, if $\sin_p^{(2 n)}(x)$ exists on $(-\pi_p/2, \pi_p/2)$, then it is odd function on $(-\pi_p/2, \pi_p/2)$.
\end{enumerate}
\end{lemma}

Statements \ref{it:1}--\ref{it:3} follows from \cite{Elbert}. 
Statements \ref{it:4}, and \ref{it:5} are trivial consequence of 
statement \ref{it:1}.

\begin{lemma} \label{lemm:sec:der}
For all $p\in\mathbb{R}, p>1$
\begin{gather}
\label{eq:sec:der:0pip}
\sin_p''(x)=-\sin_p^{p-1}(x)\cdot\cos_p^{2-p}(x)\quad\text{for }x\in
 (0,\pi_p/2)\,,
\\
\sin_p''(x)=\sin_p^{p-1}(-x)\cdot\cos_p^{2-p}(x)\quad
\text{for }x\in (-\pi_p/2,0)\,.
\end{gather}
\end{lemma}

\begin{proof}
The identity \eqref{eq:sec:der:0pip} is obtained by a straightforward 
calculation; see, e.g., \cite{LangEdmunds}.
For $x\in (-\pi_p/2,0)$, we obtain from Lemma \ref{lemma:basic:properties}
statement \ref{it:1} and \ref{it:3}
and the identity \eqref{eq:ptrigonometric}
\begin{equation}
\sin_p^p(-x) + \cos_p^p(x) = |-\sin_p(-x)|^p + |\cos_p(x)|^p 
= |\sin_p(x)|^p + |\cos_p(x)|^p = 1.
\end{equation}
Taking
\begin{equation}
\sin_p^p(-x) + \cos_p^p(x) = 1
\end{equation}
into derivative we obtain
\begin{equation}
- p\cdot\sin_p^{p-1}(-x)\cdot\cos_p(-x) + p\cdot\cos_p^{p-1}(x)\cdot\sin_p''(x)=0\,.
\end{equation}
From Lemma \ref{lemma:basic:properties}, statements \ref{it:3} and 
\ref{it:4}, we obtain
$$
\sin_p^{p-1}(-x)\cdot\cos_p(x) =
\cos_p^{p-1}(x)\cdot\sin_p''(x)
$$
which yields
$$
\sin_p''(x) = \sin_p^{p-1}(-x)\cdot\cos_p^{2-p}(x)\,.
$$
\end{proof}

\begin{lemma} \label{lem:sec:third}
Let $p\in\mathbb{R}\setminus\{2\}$ such that $p>1$.
\begin{enumerate}
\item If $p>2$, then the function $\sin_p(x) \in C^{1}(\mathbb{R})$ and $\sin_p(x)\not\in C^{2}(\mathbb{R})$.
\item If $p\in (1,2)$, then the function $\sin_p(x)\in C^2(\mathbb{R})$ and $\sin_p(x)\not\in C^3(\mathbb{R})$.
\end{enumerate}
\end{lemma}

\begin{proof}
By the definition of $\cos_p(x)$, $\sin_p'(x)=\cos_p(x)$. 
The function $\cos_p(x)\in C(\mathbb{R})$, for all $p>1$.
Thus $\sin_p(x)\in C^{1}(\mathbb{R})$. By Lemma \ref{lemm:sec:der},
$$
\sin_p''(x) = -\sin_p^{p-1}(x)\cdot\cos_p^{2-p}(x)\quad\text{for }
x\in (0,\pi_p/2)\,.
$$
Taking into account that
$$
\lim_{x\to\frac{\pi_p}{2}-}\sin_{p}^{p-1}(x)=1\quad\text{and}\quad
\lim_{x\to\frac{\pi_p}{2}-}\cos_p^{2-p}(x)= + \infty\quad\text{for }p>2\,,
$$
we find that
$$
\lim_{x\to \frac{\pi_p}{2}-}\sin_p''(x)=-\infty\,.
$$
Thus the continuity of $\sin_p''(x)$ fails at $x=\pi_p/2$
for $p>2$ and the statement 1 of Lemma \ref{lem:sec:third} follows.

From \eqref{eq:system}, we find that the function
$v'(x)=-(p-1)\varphi_p(\sin_p(x))$ is continuous on $\mathbb{R}$
as $\sin_p(x)$ is continuous on $\mathbb{R}$.
We also find that
$\cos_p(x)=\varphi_{p'}(v(x))$ from \eqref{eq:system}.
Taking into account that $\varphi_{p'}\in C^1(\mathbb{R})$ for $p\in (1,2)$
(observe that $p'=\frac{p}{p-1}>2$ in this case), we infer that
$\cos_p'(x)=\varphi_{p'}'(v(x))\cdot v'(x)$ is continuous on $\mathbb{R}$.
Thus $\sin_p(x)$ is two times continuously differentiable on $\mathbb{R}$ for
$p\in (1,2)$. On the other hand, taking
$$
\sin_p''(x) = -\sin_p^{p-1}(x)\cdot\cos_p^{2-p}(x)\quad\text{on }(0,\frac{\pi_p}{2})
$$
into derivative, we obtain
$$
\sin_p'''(x) = -(p-1)\sin_p^{p-2}(x)\cdot\cos_p^{3-p}(x) - (2-p)\cdot\sin_p^{p-1}(x)\cdot\cos_p^{1-p}(x)\cdot\sin_p''(x)\,.
$$
Substituting for $\sin_p''(x)$ from the later equation into the former, we have
$$
\sin_p'''(x) = -(p-1)\sin_p^{p-2}(x)\cdot\cos_p^{3-p}(x) 
+ (2-p)\cdot\sin_p^{2 p - 2}(x)\cdot\cos_p^{3 - 2 p}(x)\,.
$$
Since $\lim_{x\to 0+}\sin_p(x)=0$ and $\lim_{x\to 0+}\cos_p(x)=1$, we obtain
$$
\lim_{x\to 0+}\sin_p'''(x) = -\infty
$$
for $p\in (1,2)$.
This concludes the proof of statement 2 of Lemma \ref{lem:sec:third}.
\end{proof}

Let us define the following `symbolic' operators (rewriting rules) 
defined on expressions of the form
\begin{equation}
\label{def:dom:def:DCDS}
a \cdot \sin_p^q(x)\cdot\cos_p^{1-q}(x)\quad\text{ with }a, q\in\mathbb{R}
\end{equation}
as follows
\begin{gather}\label{def:DS}
\operatorname{D}_s a \cdot \sin_p^q(x)\cdot\cos_p^{1-q}(x)
:=
\begin{cases}
a \cdot q \cdot \sin_p^{q-1}(x)\cdot\cos_p^{1-(q-1)}(x) & q\not=0\,, \\
0 & q=0\,.
\end{cases} \\
\label{def:DC}
\operatorname{D}_c a \cdot \sin_p^q(x)\cdot\cos_p^{1-q}(x)
:=
\begin{cases}
-a \cdot (1-q) \cdot \sin_p^{q+p-1}(x)\cdot\cos_p^{1-(q+p-1)}(x) & q\not=1\,, \\
0 & q=1\,.
\end{cases}
\end{gather}
Let us observe that the results of application $\operatorname{D}_s$
and $\operatorname{D}_c$ have
the form \eqref{def:dom:def:DCDS}. Hence they are also in the domain 
of definition of
$\operatorname{D}_s$ and $\operatorname{D}_c$.
Thus we can consider compositions of $\operatorname{D}_c$ and 
$\operatorname{D}_s$ of arbitrary length.
We will show that the first derivative of $\sin_p^q(x)\cdot\cos_p^{1-q}(x)$ 
(here $a=1$) can be written using these symbolic operators as follows
\begin{align*}
&\frac{\mathrm{d}}{\mathrm{d}x}\sin_p^{q}(x)\cdot\cos_p^{1-q}(x)\\ 
&= \operatorname{D}_s\sin_p^q(x)\cdot\cos_p^{1-q}(x) +
\operatorname{D}_c\sin_p^q(x)\cdot\cos_p^{1-q}(x)\,.
\end{align*}
To show this, we have to distinguish three cases 
$q\in\mathbb{R}\setminus\{0, 1\}$, $q=1$, and $q=0$.

\noindent\textbf{Case $q\in\mathbb{R}\setminus\{0, 1\}$.}
Here
\begin{align*}
&\frac{\mathrm{d}}{\mathrm{d}x}\sin_p^{q}(x)\cdot\cos_p^{1-q}(x) \\
& = q \sin_p^{q-1}(x)\cdot\cos_p^{1-(q-1)}(x)
- (1-q) \sin_p^{q+p-1}(x)\cdot\cos_p^{1-(q+p-1)}(x) \\
& = \operatorname{D}_s\sin_p^q(x)\cdot\cos_p^{1-q}(x) +
\operatorname{D}_c\sin_p^q(x)\cdot\cos_p^{1-q}(x)\,.
\end{align*}
Note that the distance between the exponents of $\sin_p(x)$ 
in the resulting terms, i.e., $\sin_p^{q_0-1}(x)\cdot\cos_p^{2-q_0}(x)$ 
and $\sin_p^{q_0+p-1}\cdot\cos_p^{2-p-q_0}(x)$, is exactly $p$. 
This is crucial in the sequel of the paper, because in a sum of the type
$$
c_0 \sin_p^{q_0}(x)\cdot\cos_p^{1-q_0}(x) 
+ c_1 \sin_p^{q_0+p}(x)\cdot\cos_p^{1-(q_0+p)}(x)
$$
the terms combine together as in the diagram depicted on Fig. 1

\noindent\textbf{Case $q=1$.} 
In this case the term $\sin_p^{q}(x)\cdot\cos_p^{1-q}(x) = \sin_p(x)$. 
Thus the derivative of this term is the \emph{single} term $\cos_p(x)$.
By the definitions of $\operatorname{D}_s, \operatorname{D}_c$, we find that
$\operatorname{D}_s\sin_p(x) = \cos_p(x)$
and $\operatorname{D}_c\sin_p(x) = 0$.
Thus $\frac{\mathrm{d}}{\mathrm{d}x}\sin_p(x) = \operatorname{D}_s\sin_p(x) 
+ \operatorname{D}_c\sin_p(x)$.
The fact $\operatorname{D}_c\sin_p(x) = 0$ will be reflected in our 
diagrams by omitting `right-down' edge departing from this node,
see Figure 2.


\noindent\textbf{Case $q=0$.} 
This case corresponds to $\sin_p^{q}(x)\cdot\cos_p^{1-q}(x) = \cos_p(x)$. 
Thus the derivative of this term
is the \emph{single} term $-\sin_p^{p-1}(x) \cos_p^{1-(p-1)}(x)$.
By the definitions of $\operatorname{D}_s, \operatorname{D}_c$, we find that
$\operatorname{D}_s\cos_p(x) = 0$
and
$$
\operatorname{D}_c\cos_p(x) = -\sin_p^{p-1}(x) \cos_p^{1-(p-1)}(x)\,.
$$
Thus $\frac{\mathrm{d}}{\mathrm{d}x}\cos_p(x) 
= \operatorname{D}_s\cos_p(x) + \operatorname{D}_c\cos_p(x)$.
The fact $\operatorname{D}_s\cos_p(x) = 0$ will be reflected in our 
diagrams by omitting `left-down' edge departing from this node,
see Figure 3.
Note that since in our diagrams we write powers only, the node corresponding 
to $-\sin_p^{p-1}(x) \cos_p^{1-(p-1)}(x)$ is labeled by  
$s_p^{p-1}\, c_p^{1-(p-1)}$.


\begin{figure}[ht]
\begin{center}
\includegraphics[width=0.95\textwidth]{fig1} %Strom2.eps , angle=90
\end{center}
\caption{Rewriting diagram of the first derivative of
$c_0 \sin_p^{q_0}(x)\,\cdot\,\cos_p^{1-q_0}(x) + c_1 
\sin_p^{q_0+p}(x)\,\cdot\,\cos_p^{1-(q_0+p)}(x)$.
For the lack of space, we {\it do not} write the coefficients standing 
in front of these terms and {\it use short-cuts}, i.e., we write
$s_p^q$ instead of $\sin_p^q(x)$ and $c_p^{1-q}$ instead of 
$\cos_p^{1-q}(x)$}
\label{fig:1}
\end{figure}

\begin{figure}[ht]
\begin{center}
\includegraphics[width=0.95\textwidth]{fig2} % Graf1Strom.eps
\end{center}
\caption{Rewriting diagram of the case $q=1$.
Recall that we write
$s_p^q$ instead of $\sin_p^q(x)$ and $c_p^{1-q}$ instead of 
$\cos_p^{1-q}(x)$ and do not write the coefficients}
\label{fig:2}
\end{figure}



\begin{figure}
\begin{center}
\includegraphics[width=0.95\textwidth]{fig3} % Graf2Strom.eps
\end{center}
\caption{Rewriting diagram of the case $q=0$.
Recall that we write
$s_p^q$ instead of $\sin_p^q(x)$ and $c_p^{1-q}$ instead of 
$\cos_p^{1-q}(x)$
and do not write the coefficients}
 \label{fig:3}
\end{figure}

In the same way, we can express higher order derivatives, thus, e.g.,
the second derivative of $\sin_p^q(x)\cdot\cos_p^{1-q}(x)$ (here $a=1$) 
can be written as
\begin{align*}
&\frac{\mathrm{d}^2}{\mathrm{d}x^2}\sin_p^{q}(x)\cdot\cos_p^{1-q}(x) \\
&= (\operatorname{D}_s\circ\operatorname{D}_s)\sin_p^q(x)\cdot\cos_p^{1-q}(x)
 + (\operatorname{D}_c\circ\operatorname{D}_s)\sin_p^q(x)\cdot\cos_p^{1-q}(x)\\
&\quad + (\operatorname{D}_s\circ\operatorname{D}_c)\sin_p^q(x)
 \cdot\cos_p^{1-q}(x) 
 + (\operatorname{D}_c\circ\operatorname{D}_c)\sin_p^q(x)\cdot\cos_p^{1-q}(x).
\end{align*}
To better understand our methods of proof, it is good to have in 
mind the diagrams Figures \ref{fig:1}--\ref{fig:3}. 

The way how the term in the $n$-th derivative on the $k$-th position was 
derived from $\sin_p''(x)$ can be recovered from $n$ and $k$ as follows. 
First let us recall some notation from formal languages.

\begin{definition}{\rm
(Salomaa-Soittola \cite[I.2, p. 4,]{SalomaaSoittola},  and/or  Manna
\cite[p. 2--3, p. 47, p. 78]{Manna})
An \emph{alphabet} (denoted by $V$) is a finite nonempty set of letters.
A \emph{word} (denoted by $w$)
over an alphabet $V$ is a finite string of zero or more letters from 
the alphabet $V$.
The word consisting of zero letters is called the \emph{empty word}.
The set of all words over an alphabet $V$ is denoted by $V^{*}$ and
the set of all nonempty words over an alphabet $V$ is denoted by $V^{+}$.
For strings $w_1$ and $w_2$ over $V$, their juxtaposition $w_1w_2$ is 
called \emph{catenation} of
$w_1$ and $w_2$, in operator notation 
$\operatorname{cat}: V^{*}\times V^{*} \to V^{*}$ and
$\operatorname{cat}(w_1, w_2) =  w_1w_2$.
We also define the length of the word $w$, in operator notation
$\operatorname{len}: V^{*}\to\{0\}\cup\mathbb{N}$, 
which for a given word $w$ yields the number of letters
in $w$ when each letter is counted as many times as it occurs in $w$. 
We also use \emph{reverse function}
$\operatorname{rev}:V^{*}\to V^{*}$ which reverses the order
of the letters in any word $w$ (see \cite[p. 47, p. 78]{Manna}).
}\end{definition}

For our purposes here, we consider the alphabet $V=\{0,1\}$ 
and the set of all nonempty words $V^{+}$.
Thus words in $V^{+}$ are, e.g.,
$$
\text{``}{\tt 0}\text{''}, \text{``}{\tt 1}\text{''}, 
\text{``}{\tt 01}\text{''}, \text{``}{\tt 10}\text{''}, 
\text{``}{\tt 11}\text{''}\dots\,.$$
For instance, $\operatorname{cat}(\text{``}{\tt 1110}\text{''}, 
\text{``}{\tt 011}\text{''}) = \text{``}{\tt 1110011}\text{''}$, and
\begin{gather*}
\operatorname{rev}(\text{``}{\tt 010011000}\text{''}) 
= \text{``}{\tt 000110010}\text{''}\,, \\
\operatorname{len}(\text{``}{\tt 010011000}\text{''}) = 9\,.
\end{gather*}

Let $n\in\mathbb{N}$, $k\in\{0\}\cup\mathbb{N}, 0\leq k \leq 2^{n-2}-1$ 
and $(k)_{2,n-2}$
be the string of bits of the length $n-2$ which represents
binary expansion of $k$ (it means, e.g., for $k=3$ and 
$n=5$, $(3)_{2,5-2}=``{\tt 011}"$).
Now we are ready to define $D_{k,n}$ in two steps as follows.
\begin{itemize}
\item[Step 1]
 We create an ordered $n-2$-tuple $d_{k,n-2}\in \{\operatorname{D}_s, \operatorname{D}_c\}^{n-2}$
(cartesian product of sets $\{\operatorname{D}_s, \operatorname{D}_c\}$ of length $n-2$)
from $\operatorname{rev}((k)_{2, n-2})$ such that
for $1\leq i\leq n-2$,  $d_{k,n-2}$ contains $\operatorname{D}_s$ on the $i$-th position if
$\operatorname{rev}((k)_{2, n-2})$ contains ``$\tt{0}$'' on the $i$-th position, and
$d_{k,n}$ contains $\operatorname{D}_c$ on the $i$-th position if
$\operatorname{rev}((k)_{2, n-2})$ contains ``$\tt{1}$'' on the $i$-th position
(it means, e.g., for $k=3$, and $n=5$, we obtain $d_{3, 5-2}=(\operatorname{D}_c, \operatorname{D}_c, \operatorname{D}_s)$).

\item[Step 2] We define $D_{k,n}$ as the composition of operators $\operatorname{D}_s, \operatorname{D}_c$ in the order they appear
in the ordered $n$-tuple $d_{k, n-2}$ (it means, e.g., for  $k=3$, and $n=5$, we obtain $D_{3, 5}=(\operatorname{D}_c\circ\operatorname{D}_c\circ\operatorname{D}_s)$).
\end{itemize}
The following Lemma implies that
\begin{equation}
\label{eq:der:DSDC}
\sin_p^{(n)}(x) = \sum_{k=0}^{2^{n-2}-1} D_{k,n} \sin_p''(x)
\end{equation}
for all $x\in (0, \pi_p/2)$.

\begin{lemma} \label{thm:der:n:sinp}
Let $p\in\mathbb{R}$, $p>1$, $n\in\mathbb{N}$. Then $\sin_p^{(n)}(x)$ 
exists on $(0,\pi_p/2)$ and it is continuous.
Moreover,
\begin{gather}
\text{for }n=1:\quad\sin_p'(x)=\cos_p(x)\,, \\
\label{eq:sec:der}
\text{for }n=2:\quad\sin_p''(x)=-\sin_p^{p-1}(x)\cdot\cos_p^{2-p}(x)\,,
\end{gather}
and
for $n=3, 4, 5, \dots$, $k=0, 1, 2, 3, \dots, 2^{n-2}-1$
there exists $a_{k,n}\in\mathbb{R}$, $l_{k,n}, m_{k,n}\in\mathbb{Z}$ such that
\begin{equation}
\operatorname{D}_{k,n}\sin_p''(x) = a_{k,n}\cdot\sin_p^{p \cdot l_{k,n} 
+ m_{k,n}}(x)\cdot\cos_p^{1 - p \cdot l_{k,n} - m_{k,n}}(x)\,,
\end{equation}
and
\begin{equation}
\sin_p^{(n)}(x)=\sum_{k=0}^{2^{n-2}-1} a_{k,n}\cdot\sin_p^{p 
\cdot l_{k,n} + m_{k,n}}(x)\cdot\cos_p^{1 - p \cdot l_{k,n} - m_{k,n}}(x)\,.
\end{equation}
Moreover, let $j(k)\in\{0\}\cup\mathbb{N}$ be the digit sum of the binary 
expansion of $k=0,1,2,\dots, 2^{n-2}-1$
(thus $j(k)$ is the number of occurrences of
$\operatorname{D}_c$ in $\operatorname{D}_{k,n}$) and let 
$\operatorname{D}_{k,n}\sin_p''(x)\not\equiv 0$.
Then, for $k=0,1,2,\dots, 2^{n-2}-1$, the exponents
\begin{equation} \label{eq:def:qkn}
q_{k,n}:= p\cdot l_{k,n} + m_{k,n}
\end{equation}
satisfy
\begin{equation} \label{eq:qkn:binary}
q_{k,n} = j{(k)} (p-1) + (n-2-j{(k)})(-1) + p-1\,.
\end{equation}
\end{lemma}

\begin{proof}
The cases $n=1$ and $n=2$ follows immediately from the definition 
of $\cos_p(x)$ and from Lemma \ref{lemm:sec:der}.

We proceed by induction to prove the validity of the statement for 
$n=3, 4, 5, \dots$.

\noindent\textbf{Step 1.} 
Taking \eqref{eq:sec:der} into derivative, we obtain
$$
\sin_p'''(x) = -(p-1)\cdot\sin_p^{p-2}(x)\cdot\cos_p^{3-p}(x) +
(2-p)\cdot\sin_p^{2 p - 2}(x)\cdot\cos_p^{3 - 2 p}(x)\,.
$$
For $k=0,1$ we obtain $a_{0,3}=-(p-1)$, $a_{1,3}=(2-p)$, $l_{0,3}=1$, 
$l_{1,3}=2$ $m_{0,3}=-2$, and $m_{1,3}=-2$. Hence
$$
\sin_p'''(x)=\sum_{k=0}^1 a_{k,3}\cdot\sin_p^{p\cdot l_{k,3} 
 + m_{k,3}}(x)\cdot\cos_p^{1- p \cdot l_{k,3} - m_{k,3}}(x)\,.
$$
Since we assume $p>1$ we obtain $p-1\not= 0$ and thus by the 
definition of $\operatorname{D}_s$ and
$\operatorname{D}_{k,n}$
\begin{align*}
\operatorname{D}_{0,3} \sin_p''(x) 
&= \operatorname{D}_s (-\sin_p^{p-1}(x)\cdot\cos_p^{2-p}(x)) \\
&= -(p-1)\cdot\sin_p^{p-2}(x)\cdot\cos_p^{3-p}(x)  \\
&= a_{0,3}\cdot\sin_p^{p \cdot l_{0,3} + m_{0,3}}(x)\cdot
\cos_p^{1-p \cdot l_{0,3} - m_{0,3}}(x).
\end{align*}
Analogously, by the definition of $\operatorname{D}_c$ and
$\operatorname{D}_{k,n}$ for $p\not=2$, we find
\begin{align*}
\operatorname{D}_{1,3} \sin_p''(x) 
&= \operatorname{D}_c(-\sin_p^{p-1}(x)\cdot\cos_p^{2-p}(x)) \\
&= -(-1)\cdot(2-p)\cdot\sin_p^{2 p - 2}(x)\cdot\cos_p^{3- 2 p}(x)  \\
&= a_{1,3}\cdot\sin_p^{p \cdot l_{1,3} + m_{1,3}}(x)\cdot
 \cos_p^{1-p \cdot l_{1,3} - m_{1,3}}(x)\,,
\end{align*}
and for $p=2$, we obtain
$$
\operatorname{D}_{1,3} \sin_p''(x) = \operatorname{D}_c
(-\sin_2(x)\cdot\cos_2^0(x)) = 0\,.
$$
Hence,
\begin{align*}
\sin_p'''(x) 
&= \operatorname{D}_s\sin_p''(x) + \operatorname{D}_c\sin_p''(x) \\
&= \operatorname{D}_{0,3} \sin_p''(x) + \operatorname{D}_{1,3} \sin_p''(x) \\
&= \sum_{k=0}^1 \operatorname{D}_{k,3} \sin_p''(x)\,.
\end{align*}

\noindent\textbf{Step 2.}
Let us assume that $\sin_p^{(n)}(x)$ exists, it is continuous on 
$(0,\pi_p/2)$, and
for all $k=0, 1, 2,  \dots, 2^{n-2}-1$ there exist $a_{k,n}\in\mathbb{R}$, 
$l_{k,n}, m_{k,n}\in\mathbb{Z}$ such that
\begin{equation} \label{induction:assumption}
\operatorname{D}_{k,n}\sin_p^{(n)}(x) = a_{k,n}\cdot\sin_p^{p \cdot l_{k,n} 
+ m_{k,n}}(x)\cdot\cos_p^{1 - p \cdot l_{k,n} - m_{k,n}}(x)\,,
\end{equation}
and
\begin{equation}
\sin_p^{(n)}(x)=\sum_{k=0}^{2^{n-2}-1} a_{k,n}\cdot\sin_p^{p \cdot l_{k,n} 
+ m_{k,n}}(x)\cdot\cos_p^{1 - p \cdot l_{k,n} - m_{k,n}}(x)\,.
\end{equation}
By the additivity rule of the derivative, we find that
\begin{equation} \label{eq:n+1:der:sinp}
\begin{aligned}
\sin_p^{(n+1)}(x)
&= \frac{\mathrm{d}}{\mathrm{d}x}\sum_{k=0}^{2^{n-2}-1}
a_{k,n}\cdot\sin_p^{p\cdot l_{k,n}+m_{k,n}}(x)\cdot
 \cos_p^{1-p\cdot l_{k,n} - m_{k,n}}(x)  \\
& = \sum_{k=0}^{2^{n-2}-1}
\frac{\mathrm{d}}{\mathrm{d}x}(a_{k,n}\cdot\sin_p^{p\cdot l_{k,n}+m_{k,n}}(x)
 \cdot\cos_p^{1-p\cdot l_{k,n} - m_{k,n}}(x))\,.
\end{aligned}
\end{equation}
For all $k=0, 1, 2, \dots, 2^{n-2}-1$, we find
\begin{equation} \label{eq:der:product}
\begin{aligned}
&\frac{\mathrm{d}}{\mathrm{d}x}(a_{k,n}\cdot\sin_p^{p\cdot l_{k,n}+m_{k,n}}(x)
 \cdot\cos_p^{1-p\cdot l_{k,n} - m_{k,n}}(x)) \\
& = a_{k,n}\cdot(p\cdot l_{k,n}+m_{k,n})\cdot\sin_p^{p\cdot l_{k,n}+m_{k,n}-1}(x)
 \cdot\cos_p^{1-(p\cdot l_{k,n} + m_{k,n}-1)}(x)  \\
&\quad + a_{k,n}(1-p\cdot l_{k,n} - m_{k,n})\cdot\sin_p^{p\cdot l_{k,n}
 +m_{k,n}}(x)\cdot\cos_p^{1-p\cdot l_{k,n} - m_{k,n}-1}(x)\sin_p''(x) \\
& = a_{k,n}\cdot(p\cdot l_{k,n}+m_{k,n})\cdot\sin_p^{p\cdot l_{k,n}+m_{k,n}-1}(x)
  \cdot\cos_p^{1-(p\cdot l_{k,n} + m_{k,n}-1)}(x) \\
&\quad - a_{k,n}(1-p\cdot l_{k,n} - m_{k,n})\cdot\sin_p^{p\cdot(l_{k,n}+1)
 +m_{k,n}-1}(x)\cdot\cos_p^{1-(p\cdot(l_{k,n}+1)+m_{k,n}-1)}(x).
\end{aligned}
\end{equation}
For $k=0, 1, 2, \dots, 2^{n-2}-1$, we denote
\begin{gather}
\label{eq:def:alm:a}
a_{2 k, n+1} :=  a_{k,n}\cdot(p\cdot l_{k,n} + m_{k,n})\,, \\
\label{eq:def:alm:a:odd}
a_{2 k + 1, n + 1}  :=  - a_{k,n}\cdot(1 - p\cdot l_{k,n} - m_{k,n})\,, \\
\label{eq:def:alm:l}
l_{2 k, n + 1}  :=  l_{k,n}\,, \\
\label{eq:def:alm:m}
m_{2 k, n + 1}  :=  m_{k,n} - 1\,, \\
\label{eq:def:alm:l:odd}
l_{2 k + 1, n + 1}  :=  l_{k,n} + 1\,, \\
\label{eq:def:alm:m:odd}
m_{2 k + 1, n + 1}  :=  m_{k,n} -1\,.
\end{gather}
Hence from \eqref{eq:n+1:der:sinp}, \eqref{eq:der:product}, and
\eqref{eq:def:alm:a}--\eqref{eq:def:alm:m:odd} we obtain
\begin{equation} \label{der:np1}
\sin_p^{(n+1)}(x)=\sum_{k'=0}^{2^{n-1}-1} a_{k', n+1}
\cdot\sin_p^{p\cdot l_{k', n+1} + m_{k', n+1}}(x)\cdot
\cos_p^{1- p\cdot l_{k', n+1} - m_{k', n+1}}(x).
\end{equation}
Note that $\sin_p(x)>0$ and $\cos_p(x)>0$ for $x\in (0,\pi_p/2)$
by Lemma \ref{lemma:basic:properties}, statements \ref{it:1} and \ref{it:3},
and continuous by Lemma \ref{lem:sec:third}.
Moreover, the function $z\mapsto z^q$, defined for $z>0$ and
$q\in\mathbb{R}$ belongs to $C^{\infty}(0, +\infty)$.
Thus the function on the right-hand side of \eqref{der:np1} is continuous
for $x\in (0,\pi_p/2)$
which implies the continuity of $\sin_p^{(n+1)}(x)$ for $x\in (0,\pi_p/2)$.

Now, we show that
for all $k'=0, 1, 2, \dots, 2^{n-2}-1$:  $a_{k',n+1}\in\mathbb{R}$,
 $l_{k',n+1}, m_{k',n+1}\in\mathbb{Z}$ and, moreover,
\begin{equation}
\operatorname{D}_{k',n+1}\sin_p^{(n)}(x) 
= a_{k',n+1}\cdot\sin_p^{p \cdot l_{k',n+1}
 + m_{k',n+1}}(x)\cdot\cos_p^{1 - p \cdot l_{k',n+1} - m_{k',n+1}}(x)\,.
\end{equation}
Let us set
\begin{gather}\label{bin:exp:even}
\operatorname{D}_{2k, n+1} 
:= \operatorname{D}_s\circ\operatorname{D}_{k,n}\,, \\
\label{bin:exp:odd}
\operatorname{D}_{2k+1,n+1} 
:= \operatorname{D}_c\circ\operatorname{D}_{k,n}\,.
\end{gather}
Then it follows easily from corresponding binary expansion of $k$ and
 $2k$ that
\begin{gather*}
(2 k)_{2, n-1} = \operatorname{cat}((k)_{2,n-2}, \text{``}{\tt 0}\text{''}), \\
(2 k + 1)_{2, n-1} = \operatorname{cat}((k)_{2,n-2}, \text{``}{\tt 1}\text{''})
\end{gather*}
and also that \eqref{bin:exp:even}, \eqref{bin:exp:odd} cover all
 $2^{n-1}$ of $k'= 0, 1, \dots  2^{n-1}-1$.
Thus our definitions \eqref{bin:exp:even} and \eqref{bin:exp:odd} 
conform the relation between binary expansion of
$k'= 2k$ and/or $k'=2k+1$ and order of compositions of 
$\operatorname{D}_s, \operatorname{D}_c$ in $\operatorname{D}_{k',n+1}$.

For  $k' = 0, 2, 4, \dots, 2^{n-1}-2$ even,
\begin{equation}
\operatorname{D}_{k',n+1} \sin_p''(x) =
\operatorname{D}_{2 k,n+1} \sin_p''(x) =
\operatorname{D}_s\circ\operatorname{D}_{k,n} \sin_p''(x)\,.
\end{equation}
From the induction assumption \eqref{induction:assumption}, 
the definition of $\operatorname{D}_s$ \eqref{def:DS} and 
\eqref{eq:def:alm:a}, \eqref{eq:def:alm:l}, \eqref{eq:def:alm:m}, we find
\begin{align*}
&\operatorname{D}_s(\operatorname{D}_{k,n} \sin_p''(x))\\
&= \operatorname{D}_s(a_{k,n}\cdot\sin_p^{p \cdot l_{k,n} 
 + m_{k,n}}(x)\cdot\cos_p^{1 - p \cdot l_{k,n} - m_{k,n}}(x)) \\
& = a_{k,n}\cdot(p\cdot l_{k,n}+m_{k,n})\cdot\sin_p^{p
 \cdot  l_{k,n}+m_{k,n}-1}(x)\cdot\cos_p^{1-(p\cdot l_{k,n} + m_{k,n}-1)}(x) \\
& = a_{2 k, n + 1}\cdot\sin_p^{p\cdot l_{2 k, n + 1} + m_{2 k, n+1}}(x)
 \cdot\cos_p^{1 - p\cdot l_{2 k, n + 1} - m_{2 k, n+1}}(x).
\end{align*}
We can treat $k' = 1, 3, 5, \dots, 2^{n-1}-1$ in the same way using 
$\operatorname{D}_c$ instead of $\operatorname{D}_s$ and
\eqref{def:DC} and \eqref{eq:def:alm:a:odd}, \eqref{eq:def:alm:l:odd}, 
\eqref{eq:def:alm:m:odd}.
This concludes the proof by induction.

It remains to show \eqref{eq:qkn:binary}. 
In fact, from the definition \eqref{def:DC} of $\operatorname{D}_c$,
each occurrence of the symbolic operator $\operatorname{D}_c$ in 
$\operatorname{D}_{k,n}$ increases the exponent $q$ of
$\sin_p^q(x)$ by $p-1$. Analogously, from the definition of 
\eqref{def:DS} of $\operatorname{D}_s$,
each occurrence of the symbolic operator $\operatorname{D}_s$ in 
$\operatorname{D}_{k,n}$ decreases the exponent $q$ of
$\sin_p^q(x)$ by $1$. Taking into account these facts and also 
that $q_{1,2}=p-1$, the formula \eqref{eq:qkn:binary} follows.
This concludes the proof of Lemma \ref{thm:der:n:sinp}.
\end{proof}

\begin{lemma} \label{lemm:qkn:geq:0}
Let $p\in\mathbb{N}$, $p>1$, and for all $n\in\mathbb{N}$, $n\geq 2$
\begin{equation}
\label{eq:three:stars:123}
\sin_{p}^{(n)}(x) = \sum_{k=0}^{2^{n-2}-1} a_{k, n} \sin_{p}^{q_{k,n}}(x)
\cdot\cos_{p}^{1-q_{k,n}}(x)\,.
\end{equation}
Then for all $n\in\mathbb{N}$, $n\geq 2$, and all $k\in\{0\}\cup\mathbb{N}$, 
$k\leq 2^{n-2}-1$
\begin{equation}\label{eq:qkn:nonnegative}
q_{k,n}\in\{0\}\cup\mathbb{N}\,.
\end{equation}
\end{lemma}

\begin{proof}
 From the definitions \eqref{def:DS} and \eqref{def:DC},
\begin{equation} \label{eq:star:18458}
\begin{gathered}
q_{2 k, n+1}  =  q_{k, n} - 1 \quad\text{(we applied }\operatorname{D}_S\text{ on the expression)}  \\
q_{2 k + 1, n+1}  =  q_{k, n} + p - 1 \quad\text{(we applied }\mathop{\mathrm{D_C}}\text{ on the expression)}
\end{gathered}
\end{equation}
The proof proceeds by induction in $n$.

\noindent\textbf{Step 1.} 
From Lemma \ref{lemm:sec:der}, for $\sin_p''(x)$ on 
$(0,\pi_p/2)$ we obtain the formula
$$
\sin_p''(x)=-\sin_p^{p-1}(x)\cdot\cos_p^{2-p}(x)\,.
$$
Thus $q_{1,2}=p-1$. By assumption  $p\in\mathbb{N}$, $p>1$ we find 
$q_{1,2}\in\mathbb{N}$.

\noindent\textbf{Step 2.} We distinguish two cases, 
$q_{k,n}\in\mathbb{N}$ and $q_{k,n}=0$.
Let $q_{k,n}\in\mathbb{N}$. Then from \eqref{eq:star:18458}, 
$p\in\mathbb{N}$, $p>1$, we obtain
\begin{gather*}
q_{2 k, n+1}  =  q_{k, n} - 1 \in\{0\}\cup\mathbb{N}, \\
q_{2 k + 1, n+1} =  q_{k, n} + p - 1 \in\mathbb{N},
\end{gather*}
which satisfies \eqref{eq:qkn:nonnegative}.
Let $q_{k,n}=0$. Then the corresponding term in \eqref{eq:three:stars:123}
has form
\begin{equation} \label{eq:four:stars:872634}
a_{k,n}\cdot\cos_p(x)\,,
\end{equation}
since $\sin_p^0(x)\equiv 1$ for $x\in (0,\pi_p/2)$.
Taking \eqref{eq:four:stars:872634} into derivative,
we find
$$
a_{k,n}\cdot\cos'_p(x) = -a_{k,n}\cdot\sin_p^{p-1}(x)\cdot\cos_p^{2-p}(x)
$$
and $q_{2 k+1, n+1} = p-1 \in\mathbb{N}$, because $p\in\mathbb{N}$, $p>1$.
This concludes the proof by induction.
\end{proof}

\begin{lemma}\label{lemma:nonpositive}
Let $p\in\mathbb{N}$, $p\geq 3$. Then for all $n\in\mathbb{N}$, $n\geq 2$
$$
\sin_p^{(n)}(x)\leq 0\quad\mathrm{on }\quad (0,\frac{\pi_p}{2})\,.
$$
\end{lemma}

\begin{proof}
By Lemma \ref{thm:der:n:sinp} and substitution \eqref{eq:def:qkn}, we have
\begin{equation}\label{eq:suma:fundamental}
\sin_p^{(n)}(x) = \sum_{k=0}^{2^{n-2}-1} a_{k,n}
\cdot\sin_p^{q_{k,n}}(x)\cdot\cos_p^{1-q_{k,n}}(x)\,.
\end{equation}
Let $Q_n$ denote the set of all values of $q_{k,n}$ attained in the
 previous expression (this is to handle possible multiplicities), i.e.,
\begin{equation} \label{eq:def:Qn}
Q_n =\{ q_{k,n}: k=0,\dots, 2^{n-2}-1\}\,.
\end{equation}
By Lemma \ref{lemm:qkn:geq:0} for all $n\geq 2$
and for all $k\leq 2^{n-2}-1$, we have $q_{k, n}\in\{0\}\cup\mathbb{N}$.
Clearly, $Q_n\subset\{0\}\cup\mathbb{N}$ has at most $2^{n-2}$ elements 
and thus there exists $i_0\in\mathbb{N}: 0< i_0\leq 2^{n-2}-1$
and bijective mapping
\begin{equation}\label{eq:def:overlineqn}
\overline{q}_n: \{0, 1, 2, \dots i_{0}\} = Q_n
\end{equation}
satisfying the order condition
\begin{equation}\label{eq:order:qn}
\forall i,j = 0, 1, \dots, i_0: i<j\Rightarrow \overline{q}_i
< \overline{q}_j\,.
\end{equation}
In the sequel, $\overline{q}_{i,n}$ stands for $\overline{q}_{n}(i)$.
With this at hand, we add together the coefficients in
\eqref{eq:suma:fundamental} corresponding to
the same value of powers $q_{k,n}$ and for any $i=0, 1,  \dots, i_0$ define
\begin{equation}\label{eq:def:coefs:c}
c_{i,n} := \sum_{{k=0, 1, \dots 2^{n-2}-1} \atop q_{k,n}
=\overline{q}_{i,n}} a_{k,n}\,.
\end{equation}
Now, we rewrite \eqref{eq:suma:fundamental} using coefficients $c_{i,n}$:
\begin{equation} \label{eq:suma:fundamental:transformed}
\sin_p^{(n)}(x)
=\sum_{i=0}^{i_0} c_{i,n}\cdot \sin_p^{\overline{q}_{i,n}}(x)
\cdot\cos_p^{1-\overline{q}_{i,n}}(x)\,.
\end{equation}
Later, we will prove by induction that
\begin{equation}\label{eq:c:nonpositive}
\forall i=0, 1, \dots, i_0: c_{i,n}\leq 0\,.
\end{equation}
By Lemma \ref{lemma:basic:properties} statements \ref{it:1} and \ref{it:3},
$\sin_p(x)>0$ and $\cos_p(x)>0$ on $(0,\frac{\pi_p}{2})$, which implies
that for all $q, r\in\{0\}\cup\mathbb{N}$  and $x\in (0,\pi_p/2)$
\begin{equation}\label{eq:four:stars}
\sin_p^q(x)\cdot\cos_p^r(x)>0\,.
\end{equation}
Thus from \eqref{eq:suma:fundamental:transformed}--\eqref{eq:four:stars}
the statement of Lemma \ref{lemma:nonpositive}
follows.

Now it remains to prove by induction in $n$ that \eqref{eq:c:nonpositive}
holds.

\noindent\textbf{Step 1.}
By Lemma \ref{lemm:sec:der} we find that
\begin{equation}\label{eq:sec:der:sin}
\sin_p''(x) = -\sin_p^{p-1}(x)\cdot\cos_p^{2-p}(x)
\end{equation}
for all $x\in (0,\pi_p/2)$ and so $c_{0, 2} = -1 < 0$.

Taking the derivative of \eqref{eq:sec:der:sin} 
(and after some straightforward rearrangements),
\begin{equation}\label{der:sin:third}
\sin_p'''(x) =
-(p-1)\cdot\sin_p^{p-2}(x)\cdot\cos_p^{3-p}(x)
+ (2-p)\cdot\sin_p^{2p-2}(x)\cdot\cos_p^{3-2 p}(x)
\end{equation}
for $x\in (0,\pi_p/2)$.
Since $p\geq 3$, we have
$c_{0,3}=-(p-1)\leq -2 \leq 0$ and
$c_{1,3}=(2-p)\leq -1 \leq 0$ as desired.
Taking the derivative \eqref{der:sin:third},
\begin{equation} \label{der:sin:fourth}
\begin{aligned}
\sin_p^{(\mathrm{iv})}
&= -(p-1)\cdot(p-2)\cdot\sin_p^{p-3}(x)\cdot\cos_p^{4-p}(x) + \\
&\quad + (p-1)\cdot(3-p)\cdot\sin_p^{2 p-3}(x)\cdot\cos_p^{4 - 2 p}(x)  \\
&\quad + (2 -p)\cdot(2 p - 2)\cdot\sin_p^{2 p -3}(x)\cdot\cos_p^{4 - 2 p}(x) \\
&\quad - (2 - p)\cdot(3- 2p)\cdot\sin_p^{3 p - 3}(x)\cdot\cos_p^{4-3p}(x)  \\
&=  -(p-1)\cdot(p-2)\cdot\sin_p^{p-3}(x)\cdot\cos_p^{4-p}(x) \\
&\quad +((p-1)\cdot(3-p) + (2 -p)\cdot(2 p - 2))
\cdot\sin_p^{2 p-3}(x)\cdot\cos_p^{4 - 2 p}(x)  \\
&\quad - (2 - p)\cdot(3- 2p)\cdot\sin_p^{3 p - 3}(x)\cdot\cos_p^{4-3p}(x)
\end{aligned}
\end{equation}
for all $x\in (0,\pi_p/2)$. Since $p\geq 3$ we have
$c_{0,4}=-(p-1)\cdot(p-2)\leq -2\leq 0$,
$c_{1,4}=(p-1)\cdot(3-p) + (2 -p)\cdot(2 p - 2)\leq -4\leq 0$, and
$c_{2,4}=- (2 - p)\cdot(3- 2p)\leq -3\leq 0$

\noindent\textbf{Step 2.}
Let us assume that $\sin_p^{(n)}(x)$ for $n\geq 4$ can be written in the form
\eqref{eq:suma:fundamental:transformed} and
\begin{equation} \label{eq:ten:stars:m}
\forall i\leq i_0\,: c_{i,n}\leq 0\,.
\end{equation}
The proof falls naturally into two parts.

\noindent\textbf{Case 1.}
If
\begin{equation}\label{eq:seven:stars}
\overline{q}_{i,n}\geq 1\,,
\end{equation}
then taking the $i$-th term of \eqref{eq:suma:fundamental:transformed},
which is
\begin{equation}\label{eq:five:stars}
c_{i,n}\cdot\sin_{p}^{\overline{q}_{i,n}}(x)
\cdot\cos_p^{1-\overline{q}_{i,n}}(x)\,,
\end{equation}
into derivative we obtain
\begin{align*}
& c_{i,n}\cdot\overline{q}_{i,n}\cdot\sin_p^{\overline{q}_{i,n}-1}(x)
 \cdot\cos_p^{1-\overline{q}_{i,n}+1}(x)  \\
& + c_{i,n}\cdot(1-\overline{q}_{i,n})\cdot\sin_p^{\overline{q}_{i,n}}(x)
\cdot\cos_p^{1-\overline{q}_{i,n}-1}(x)\cdot\sin_p''(x)\,.
\end{align*}
Substituting \eqref{eq:sec:der:sin} for $\sin_p''(x)$ into the previous 
expression, we obtain
\begin{align*}
&c_{i,n}\cdot\overline{q}_{i,n}\cdot\sin_{p}^{\overline{q}_{i,n}-1}(x)
 \cdot\cos_p^{2-\overline{q}_{i,n}}(x)  \\
&- c_{i,n}\cdot(1-\overline{q}_{i,n})\cdot\sin_p^{\overline{q}_{i,n} 
+ p-1}(x)\cdot\cos_p^{-\overline{q}_{i,n} - p + 2}(x)\,.
\end{align*}
Let us denote
\begin{gather*}
a'_{2i-1, n+1} := c_{i,n}\cdot\overline{q}_{i,n}\,, \\
a'_{2i, n+1}   := c_{i,n}\cdot(\overline{q}_{i,n}-1)\,.
\end{gather*}
By the induction assumption \eqref{eq:ten:stars:m}  and assumption of 
Case 1 \eqref{eq:seven:stars}, we have $a'_{2i-1, n+1}, a'_{2i, n+1} \leq 0$.

\noindent\textbf{Case 2.}
If $\overline{q}_{i,n}=0$, then $i=0$ (by the ordering) and the 
corresponding term of \eqref{eq:suma:fundamental:transformed} is
\begin{equation}\label{eq:nine:stars}
c_{0,n}\cdot\sin_p^0(x)\cdot\cos_p^1(x).
\end{equation}
Taking derivatives in \eqref{eq:nine:stars} we find
\begin{equation} \label{eq:ten:stars:n}
- c_{0,n}\cdot\sin_p^{p-1}(x)\cdot\cos_p^{2-p}(x)\,.
\end{equation}
Denote $a'_{1, n+1}:=-c_{0,n}$ which is clearly nonnegative by the 
induction assumption \eqref{eq:ten:stars:m}.
We consider the second term of \eqref{eq:suma:fundamental:transformed}
 ($i=1$) and take the derivative,
\begin{align*}
& \frac{\mathrm{d}}{\mathrm{d}x} c_{1,n}\cdot\sin_p^{\overline{q}_{1,n}}(x)
 \cdot\cos_p^{1-\overline{q}_{1,n}}(x) \\
& = \operatorname{D}_s c_{1,n}\cdot\sin_p^{\overline{q}_{1,n}}(x)
\cdot\cos_p^{1-\overline{q}_{1,n}}(x)
+\operatorname{D}_c c_{1,n}\cdot\sin_p^{\overline{q}_{1,n}}(x)
\cdot\cos_p^{1-\overline{q}_{1,n}}(x)\,.
\end{align*}
Since $\overline{q}_{0,n}=0$, $\overline{q}_{1,n}=p$ (see Figure \ref{fig:4}).
Note that the right-hand side of
\begin{equation} \label{eq:dc:c1n}
\operatorname{D}_s c_{1,n}\sin_p^p(x)\cdot\cos_p^{1-p}(x)=
p\cdot c_{1,n}\cdot\sin_p^{p-1}(x)\cdot\cos_p^{2-p}(x)
\end{equation}
has the same exponent $q=p-1$ as \eqref{eq:ten:stars:n} has. 
It remains to prove that
$p\cdot c_{1,n}-c_{0,n}\leq 0$. Using $(n-2)$-th derivative
of $\sin_p(x)$ we obtain \eqref{eq:ten:stars:n},
\begin{equation}\label{eq:dcdsds:f}
\begin{aligned}
(\operatorname{D}_c\circ\operatorname{D}_s\circ\operatorname{D}_s)
c_{0, n-2}\cdot\sin_p^2(x)\cos_p^{-1}(x)
& =(\operatorname{D}_c\circ\operatorname{D}_s) 2\cdot c_{0, n-2}\cdot\sin_p(x) \\
& = \operatorname{D}_c 2\cdot c_{0, n-2}\cdot\cos_p(x) \\
&= -2\cdot c_{0, n-2}\cdot\sin_p^{p-1}(x)\cos_p^{2-p}(x)
\end{aligned}
\end{equation}
and \eqref{eq:dc:c1n},
\begin{equation} \label{eq:dsdsdc:f}
\begin{aligned}
&(\operatorname{D}_s\circ\operatorname{D}_s\circ\operatorname{D}_c)
c_{0, n-2}\cdot\sin_p^{2}(x)\cos_p^{-1}(x)\\
&=(\operatorname{D}_s\circ\operatorname{D}_s)c_{0, n-2}\cdot\sin_p^{1+p}(x)
\cos_p^{-p}(x) \\
& =\operatorname{D}_s (1+p)\cdot c_{0, n-2}\cdot\sin_p^p(x)\cdot\cos_p^{1-p}(x) \\
& = p\cdot(1+p)\cdot c_{0, n-2}\cdot\sin_p^{p-1}(x)\cdot\cos_p^{2-p}(x)\,.
\end{aligned}
\end{equation}
Comparing \eqref{eq:dcdsds:f} with \eqref{eq:ten:stars:n}, we find that
$$
-c_{0,n} = -2\cdot c_{0, n-2}\,.
$$
In addition, comparing \eqref{eq:dc:c1n} and \eqref{eq:dsdsdc:f}, we find
$$
p\cdot c_{1,n} = p\cdot(p+1)\cdot c_{0, n-2}\,.
$$
From the induction assumption,
$c_{0,n-2}\leq 0$ and for $p\geq 3$, we easily find
$$
p\cdot c_{1,n}-c_{0,n} =  (p\cdot(p+1)-2) c_{0,{n-2}}\leq 0
$$
by adding the previous two identities.

In the definition \eqref{eq:def:coefs:c} of $c_{i,n}$,
we are adding coefficients
$$
a'_{k, n}\,,\quad k=0, 1,\dots, 2 (i_0 + 1)
$$
corresponding to the same value of exponent $\overline{q}$.
From the both cases, we obtain
$c_{i,n+1}\leq 0$
for all $i\in \mathbb{N}$, $i\leq i_1$,
$0<i_1\leq 2^{n-1}-1$. This concludes the proof by induction.
\end{proof}

\begin{figure}[ht]
\begin{center}
\includegraphics[width=0.95\textwidth]{fig4}
\end{center}
\caption{Rewriting diagram - starting with $\overline{q}_{0, n-2}, 
\overline{q}_{1, n-2}, \overline{q}_{2, n-2}$}
\label{fig:4}
\end{figure}

\section{Proofs of main results} \label{sec:proofs:thms}

\begin{proof}[Proof of Theorem \ref{thm:main:1}]
By Lemma \ref{thm:der:n:sinp} and substitution \eqref{eq:def:qkn}, we can write
$$
\sin_{2 (m + 1)}^{(n)}(x) = \sum_{k=0}^{2^{n-2}-1} a_{k,n}
\cdot\sin_{2(m+1)}^{q_{k,n}}(x)\cdot\cos_{2(m+1)}^{1-q_{k,n}}(x)\,,
$$
where
$$
q_{k,n} =(2 (m+1) - 1)\cdot j(k) + (n - j(k) -2) + 2(m+1)-1\,,
$$
and $j(k)$ has the same meaning as in Lemma \ref{thm:der:n:sinp}.
Thus $a_{k,n}\in\mathbb{Z}$.

From Lemma \ref{lemma:basic:properties}, statement 4 and 5, we also
know that $\sin_{2(m+1)}^{(n)}(x)$ is even function for $n$ odd and 
$\sin_{2(m+1)}^{(n)}(x)$
is odd function for $n$ even. It follows that for 
$x\in (-\frac{\pi_{2(m+1)}}{2}, 0)$
\begin{equation}
\sin_{2(m+1)}^{(n)}(x) = \begin{cases}
-\sin_{2(m+1)}^{(n)}(-x) & \text{for }n\text{ even}\,, \\ 
\sin_{2(m+1)}^{(n)}(-x) & \text{for }n\text{ odd}\,.
\end{cases}
\end{equation}
Now we assume $p=2(m+1)$, $m\in\mathbb{N}$, and
\begin{align*}
q_{k,n}
&=(2(m+1)-1) j(k) + (n-j(k)-2) + 2(m+1) - 1  \\
&= (2 (m+1) - 1) (j(k)+1) + j(k) + 2 - n  \\
&= 2 (m+1)(j(k)+1)-n+1
\end{align*}
which implies $q_{k,n}$ is \emph{odd}\/ for $n$ even. Thus we obtain
\begin{equation} \label{eq:sinp:eveneven}
\begin{aligned}
-\sin_{2(m+1)}^{(n)}(-x)
&= - \sum_{k=0}^{2^{n-2}-1} a_{k, n} \sin_{2(m+1)}^{q_{k,n}}(-x)
 \cdot\cos_{2(m+1)}^{1-q_{k,n}}(-x)  \\
&= \sum_{k=0}^{2^{n-2}-1} a_{k, n} \sin_{2(m+1)}^{q_{k,n}}(x)
 \cdot\cos_{2(m+1)}^{1-q_{k,n}}(x)\,.
\end{aligned}
\end{equation}
Analogously, $q_{k,n}$ is \emph{even}\/ for $n$ odd and
\begin{equation} \label{eq:sinp:evenodd}
\begin{aligned}
\sin_{2(m+1)}^{(n)}(-x)
&= \sum_{k=0}^{2^{n-2}-1} a_{k, n} \sin_{2(m+1)}^{q_{k,n}}(-x)
 \cdot\cos_{2(m+1)}^{1-q_{k,n}}(-x)  \\
&= \sum_{k=0}^{2^{n-2}-1} a_{k, n} \sin_{2(m+1)}^{q_{k,n}}(x)
 \cdot\cos_{2(m+1)}^{1-q_{k,n}}(x)\,.
\end{aligned}
\end{equation}
Hence from \eqref{eq:sinp:eveneven}, \eqref{eq:sinp:evenodd}, we obtain
\begin{equation} \label{eq:sinp:n:der}
\sin_{2(m+1)}^{(n)}(x)
= \sum_{k=0}^{2^{n-2}-1} a_{k, n} \sin_{2(m+1)}^{q_{k,n}}(x)
 \cdot\cos_{2(m+1)}^{1-q_{k,n}}(x)
\end{equation}
for all $x\in (-\frac{\pi_{2(m+1)}}{2}, \frac{\pi_{2(m+1)}}{2})\setminus\{0\}$.

Now, we prove the continuity of $\sin_{2(m+1)}^{(n)}(x)$ for all 
$x\in (-\frac{\pi_{2(m+1)}}{2}, \frac{\pi_{2(m+1)}}{2})$ by induction in $n$.


\noindent\textbf{Step 1.} 
For $x\in (-\frac{\pi_{2(m+1)}}{2}, \frac{\pi_{2(m+1)}}{2})$ the function
     $$v(x)=\varphi_{2(m+1)}(\cos_{2(m+1)}(x))>0$$
and so we can take the first equation in \eqref{eq:system} 
into its derivative and obtain
$$
u''(x) = \varphi_{p'}'(v(x)) v'(x)\,,\text{ where }p'=\frac{2 m+1}{2 m}\,.
$$
Since $v'$ is continuous and $\varphi_{p'}\in C^{1}(0, +\infty)$ 
($\varphi_{p'}(z)=z^{p-1}$ for $z>0$),
we obtain continuity of $\sin_{2(m+1)}^{(n)}(x)$ for $n=2$.

\noindent\textbf{Step 2.} 
Let us assume that $\sin_{2(m+1)}^{(n)}(x)$ is continuous on 
$(-\frac{\pi_{2(m+1)}}{2}, \frac{\pi_{2(m+1)}}{2})$.
From Lemma \ref{thm:der:n:sinp} we know that $\sin_{2(m+1)}^{(n+1)}(x)$ 
is continuous on $(0, \frac{\pi_{2(m+1)}}{2})$.
Now we distinguish two cases: $n+1$ is odd then $\sin_{2(m+1)}^{(n+1)}(x)$ 
is even by Lemma \ref{lemma:basic:properties}, statement \ref{it:4}, and
$n+1$ is even then $\sin_{2(m+1)}^{(n+1)}(x)$ is odd by 
Lemma \ref{lemma:basic:properties}, statement \ref{it:5}.
In both cases, $\sin_{2(m+1)}^{(n+1)}(x)\in C(0, \frac{\pi_{2(m+1)}}{2})$ 
implies $\sin_{2(m+1)}^{(n+1)}(x)\in C(-\frac{\pi_{2(m+1)}}{2}, 0)$.
It remains to prove the continuity at $x=0$. From \eqref{eq:sinp:n:der} 
we know that
\begin{equation}\label{eq:lims:equal}
\lim_{x\to 0-}\sin_{2(m+1)}^{(n+1)}(x) 
= \lim_{x\to 0+}\sin_{2(m+1)}^{(n+1)}(x)\,.
\end{equation}
At the end we compute the derivative of $\sin_{2(m+1)}^{(n)}(0)$ 
from its definition:
$$
\sin_{2(m+1)}^{(n+1)}(0) 
= \lim_{h\to 0} \frac{\sin_{2(m+1)}^{(n)}(h)-\sin_{2(m+1)}^{(n)}(0)}{h}\,.
$$
It is a limit of the type $``0/0"$. Since the limit 
$\lim_{h\to 0}\sin_{2(m+1)}^{(n+1)}(h)$ exists, we obtain
$\sin_{2(m+1)}^{(n+1)}(0)=\lim_{h\to 0}\sin_{2(m+1)}^{(n+1)}(h)$ 
by  L'H\^{o}spital's rule.
Note that by Lemma \ref{lemm:qkn:geq:0}, $q_{k,n}\geq 0$ for all 
$n\in\mathbb{N}$, $n\geq 2$, and all
$k\in\{0\}\cup\mathbb{N}$, $k\leq 2^{n-2}-1$, these limits are finite 
and we obtain continuity.
This proves the continuity of $\sin_{2(m+1)}^{(n+1)}(x)$ for all 
$x\in (-\frac{\pi_{2(m+1)}}{2}, \frac{\pi_{2(m+1)}}{2})$.
\end{proof}

\begin{proof}[Proof of Theorem \ref{thm:max:differentiability}]
By Lemma \ref{thm:der:n:sinp} and substitution \eqref{eq:def:qkn}, we have
$$
\sin_p^{(n)}(x) = \sum_{k=0}^{2^{n-2}-1} a_{k,n}
\cdot\sin_p^{q_{k,n}}(x)\cdot\cos_p^{1-q_{k,n}}(x)\quad
\text{on }(0,\frac{\pi_p}{2})\,.
$$
Moreover, by Lemma \ref{lemma:basic:properties}, statement \ref{it:4} 
and \ref{it:5}, we obtain
\begin{equation}
\label{eq:proof:thm2:star}
\sin_p^{(n)}(x) =\begin{cases}
-\sin_p^{(n)}(-x) &\text{for $n$ even}\,,\\
\sin_p^{(n)}(-x)  &\text{for $n$ odd}\,,
\end{cases}
\end{equation}
for $x\in (-\pi_p/2,0)$. Since $\sin_p^{(n)}(x)$ is continuous for
$x\in (0,\pi_p/2)$, it is also continuous on $x\in (-\pi_p/2,0)$
by \eqref{eq:proof:thm2:star}.
Thanks to \eqref{eq:proof:thm2:star} it is enough to study the behavior 
of $\sin_p(x)$ in the right neighborhood of $0$.
From Lemma \ref{thm:der:n:sinp}, we have that
\begin{equation} \label{eq:proof:thm2:twostar}
q_{k,n} = j(k)\cdot(p-1) + (-1)\cdot(n-2-j) + p - 1 =
p\cdot(j(k) + 1) + 1 - n\,.
\end{equation}
for all $n\in\mathbb{N}$, $n\geq 2$ and
all $k\in\{0\}\cup\mathbb{N}$, $k\leq 2^{n-2}-1$.
Since $j(k)\in\{0\}\cup\mathbb{N}$ we find that
$$
q_{k,n}\geq p+1-n\,.
$$
Then, for $n<p+1$, we have $q_{k,n}>0$ for all $k\in\{0\}\cup\mathbb{N}$, 
$k\leq 2^{n-2}-1$. And so using the theorem of the algebra of the limits 
from any classical analysis textbook, we find that
$$
\lim_{x\to 0+} \sin_p^{(n)}(x)=0\,.
$$
From \eqref{eq:proof:thm2:star},
$$
\lim_{x\to 0-}\sin_p^{(n)}(x)=\begin{cases}
-\lim_{x\to 0+}\sin_p^{(n)}(x) = 0 &\text{for $n$ even}\,, \\
\lim_{x\to 0+}\sin_p^{(n)}(x) = 0  &\text{for $n$ odd}\,.
\end{cases}
$$
The continuity at $x=0$ follows from L'H\^{o}spital's rule used recurrently 
from $n=2$ to $n=\lceil p\rceil$.

By Lemma \ref{thm:der:n:sinp}, $\sin_{2(m+1)}^{(2 m + 2)}(x)$ satisfies
$$
\sin_p^{(\lceil p\rceil + 1)}(x)
=\sum_{k=0}^{2^{\lceil p\rceil-1}-1}
D_{k, {\lceil p\rceil + 1}} \sin_p''(x)\quad\text{on }(0,\frac{\pi_p}{2})\,.
$$
Since $q_{k,n}>0$ for all $n<\lceil p\rceil$ and all 
$k\in\{0\}\cup\mathbb{N}$, $k < 2^{\lceil p\rceil}-1$, the function
$\operatorname{D}_S a_{k,n}\cdot\sin_p^{q_{k,n}}(x)\cdot\cos_p^{1-q_{k,n}}(x)$ 
does not vanish identically.
Thus $a_{0, \lceil p\rceil + 1}\not= 0$. Since 
$a_{0, \lceil p\rceil + 1}\not= 0$, we can apply
\eqref{eq:proof:thm2:twostar} for $j(0)=0$ which gives
$$
q_{0,\lceil p\rceil+1} = p - \lceil p\rceil \leq 0\,.
$$
From the fact that $j(k)>j(0)$ for all $k\in \{0\}\cup\mathbb{N}$, 
$k\leq 2^{\lceil p\rceil - 1} - 1$ and from
\eqref{eq:proof:thm2:twostar} we know that
$$
q_{k, \lceil p\rceil+1} > q_{0, \lceil p\rceil+1}\,.
$$
Moreover from \eqref{eq:proof:thm2:twostar},
$$
q_{k, \lceil p\rceil+1} = (j(k) + 1)\cdot p + 1 - (\lceil p\rceil + 1) 
= (j(k) + 1)\cdot p - \lceil p\rceil > 0
$$
for $j(k)\geq 1$ and $p>1$. Since, for all $q_{k,n}>0$,
$$
\lim_{x\to 0} a_{k,n}\cdot\sin_p^{q_{k,n}}(x)\cdot\cos_p^{1-q_{k,n}}(x)=0\,,
$$
we obtain
\begin{equation} \label{thm:sec:main:threestar}
\begin{aligned}
\lim_{x\to 0+}\sin_p^{(\lceil p\rceil + 1)}(x)
&=  \lim_{x\to 0+} a_{0, \lceil p\rceil+1}
 \cdot\sin_p^{p - \lceil p\rceil}(x)
  \cdot\cos_p^{1 - p + \lceil p\rceil}(x)   \\
&\quad + \sum_{k=1}^{2^{\lceil p\rceil - 1} -1} a_{k, \lceil p\rceil+1}
 \cdot\sin_p^{q_{k, \lceil p\rceil+1}}(x)\cdot\cos_p^{1
  - q_{k, \lceil p\rceil+1}}(x)    \\
& = \lim_{x\to 0+} a_{0, \lceil p\rceil + 1}
 \cdot\sin_p^{p - \lceil p\rceil}(x)\cdot\cos_p^{1 - p + \lceil p\rceil}(x)
\end{aligned}
\end{equation}
by the theorem of the algebra of the limits.

Now the proof falls into two cases, $p=2 m + 1$ and 
$p\in \mathbb{R}\setminus\mathbb{N}$, $p>1$.

\noindent\textbf{Case 1.} 
For $p = 2m + 1$, we have by \eqref{thm:sec:main:threestar}
$$
\lim_{x\to 0+}\sin_{2 m + 1}^{(2 m +2)}(x) = \lim_{x\to 0+} a_{0, 2 m + 2}
\cdot\cos_p(x)
= a_{0, 2 m + 2}\neq 0\,.
$$
Since $2 m + 2$ is even, $\sin_{2 m + 1}^{(2 m + 2)}(x)$ is odd function 
by Lemma \ref{lemma:basic:properties}, statement \ref{it:5}.
Thus
$$
\lim_{x\to 0-}\sin_{2 m + 1}^{(2 m + 2)}(x) = - a_{0, 2 m +2}\,.
$$
Hence $\sin_{2 m + 1}^{(2 m + 2)}(x)$ is not continuous at $x=0$.

\noindent\textbf{Case 2.} Since for $p\in \mathbb{R}\setminus\mathbb{N}$, 
$p>1$, we have
$$
\lim_{x\to 0+} \sin_p^{(\lceil p\rceil + 1)}(x) 
= \lim_{x\to 0+} a_{0, \lceil p\rceil + 1}
 \cdot\sin_p^{p - \lceil p\rceil}(x)\cdot\cos_p^{1 - p + \lceil p\rceil}(x)
  = +\infty
$$
from \eqref{thm:sec:main:threestar}.
Hence $\sin_p^{\lceil p\rceil + 1}(x)$ is discontinuous at $x=0$. 
This concludes the proof.
\end{proof}

\begin{proof}[Proof of Theorem \ref{thm:convergence}]
It follows from \cite[Thm. 1.1, consider $p=q$ and $\sigma=0$]{ParedesUchiyama} 
that there exists a unique analytic function
$F(z)$ near origin such that the unique solution $u(x)=\sin_p(x)$ of the
 initial value problem \eqref{eq:prop:init}; i.e.,
\begin{gather*}
-(|u'|^{p-2}u')'- (p-1)|u|^{p-2}u=0 \\
u(0)=0, \quad u'(0) = 1\,,
\end{gather*}
takes the form
$\sin_p(x)=u(x)= x\cdot F(|x|^p)$.
Note that for $p=2(m+1)$ and $m\in\mathbb{N}$,
$$
\sin_p(x) = x\cdot F(|x|^p) = x\cdot F(x^p) 
= \sum_{l=0}^{+\infty} \alpha_l\cdot x^{l\cdot p+1},\quad\text{where }
F(z)=\sum_{l=0}^{+\infty} \alpha_l z^l\,,
$$
which is also an analytic function in a neighborhood of $x=0$.
In the sequel of this proof $p=2 (m+1)$, $m\in\mathbb{N}$.
By the uniqueness of the Maclaurin series of analytic function, we see that
$$
\sum_{l=0}^{+\infty}\alpha_l\cdot x^{l\cdot p+1} = \sum_{l=0}^{+\infty}
\frac{\sin_p^{(l\cdot p+1)}(0)}{(l\cdot p+1)!}
\cdot x^{l\cdot p+1}\,,
$$
where the right-hand side also converges to $\sin_p(x)$ on some neigbourhood 
of $x=0$.
Note that $\sin^{(k)}_p(0)=0$ for any $k\in\mathbb{N}$ such that
$$
\forall l\in\{0\}\cup\mathbb{N}: k\not= l\cdot p +1
$$
as it follows from Lemma \ref{thm:der:n:sinp} and Lemma \ref{lemm:qkn:geq:0}.

Since the restriction of $\sin_p(x)$ to $[-\frac{\pi_p}{2}, \frac{\pi_p}{2}]$ 
is the inverse function of $\arcsin_p(x)$, by the identity 
\eqref{eq:id:sin:arcsin}; i.e.,
$$
\forall x\in [-1,1]: \sin_p(\arcsin_p(x))=x\,.
$$

It is well known see, e.g., \cite{LangEdmunds} that
\begin{equation} \label{eq:maclaourin:arcsinp}
\begin{aligned}
\arcsin_p(x)
&=\int_0^x(1-s^p)^{-\frac{1}{p}}\mathrm{d}s \\
&=\frac{s\,\cdot \,   _2F_1(1,\frac{1}{p};1+\frac{1}{p};s^p)}{p}  \\
& = \sum_{n=0}^{+\infty} \frac{\Gamma(n+\frac{1}{p})}
{\Gamma(\frac{1}{p})(n\cdot p+1)}\cdot \frac{1}{n!} \cdot x^{n\cdot p+1}
\end{aligned}
\end{equation}
for $x\in (0,1)$. Observe that for our special case $p=2(m+1)$ with
$m\in\mathbb{N}$, this formula is valid on $[-1,1]$. Note also that in
 our special case, \eqref{eq:maclaourin:arcsinp} is in fact the
Maclaurin series for $\arcsin_p(x)$ and, moreover, all coefficients are
nonnegative (the explicitly written coefficients are positive, the
other ones are zero).

To apply the formula for composite formal power series, we need to 
consider series for $\sin_p(x)$ and $\arcsin_p(x)$ including the zero terms.
For this reason, we define for all $j\in \mathbb{N}$
\begin{equation}
\label{eq:def:alpha:prime}
\alpha'_{j} := \sin_p^{(j)}(0)/j! =\begin{cases}
\alpha_{i} & \text{if } j = i p + 1\text{ for some }i\in\{0\}\cup\mathbb{N}\,,\\
0 & \text{ otherwise}
\end{cases}
\end{equation}
and
\begin{equation}\label{eq:def:beta:prime}
\beta'_{j} :=\begin{cases}
\frac{\Gamma(n+\frac{1}{p})}
{\Gamma(\frac{1}{p})(n\cdot p+1)}\cdot \frac{1}{n!} 
 & \text{if } j = i p + 1\text{ for some }i\in\{0\}\cup\mathbb{N}\,,\\
0 & \text{otherwise}\,.
\end{cases}
\end{equation}
Thus by well-known composite formal power series formula
\begin{equation}\label{eq:composite}
\sin_p(\arcsin_p(x)) = \sum_{n=1}^{+\infty} c_n x^n\,,
\end{equation}
where
\begin{equation}
\label{eq:composite:coefs}
c_n = \sum_{
\begin{array}{c}
k\in\mathbb{N},\, 
j_1, j_2, \dots, j_k\in\mathbb{N} \\
j_1 + j_2 + \dots + j_k=n
\end{array}
} \alpha'_k\cdot \beta'_{j_1}\cdot \beta'_{j_2}\cdot \dots \cdot\beta'_{j_k}\,.
\end{equation}
Since both functions $\sin_p(x)$ and $\arcsin_p(x)$ are analytic in some 
neighborhood of $x=0$, the series from \eqref{eq:composite}
with coefficients given by \eqref{eq:composite:coefs} is convergent 
towards the identity $x\mapsto x$ on some neighborhood of $x=0$.
From this fact, we infer that $c_1 =1$ and $c_n = 0$ for all 
$n\in\mathbb{N}, n\geq 2$. Thus for any $x\in\mathbb{R}$
\begin{equation}\label{eq:series:x}
x = \sum_{n=1}^{+\infty} x^n \sum_{
\begin{array}{c}
k\in\mathbb{N},\,
j_1, j_2, \dots, j_k\in\mathbb{N} \\
j_1 + j_2 + \dots + j_k=n
\end{array}
}
\alpha'_k\cdot \beta'_{j_1}\cdot \beta'_{j_2}\cdot \dots \cdot\beta'_{j_k}
\end{equation}
and in particular
\begin{equation}
\label{eq:series:1}
1 = \sum_{n=1}^{+\infty}\sum_{
\begin{array}{c}
k\in\mathbb{N},\, 
j_1, j_2, \dots, j_k\in\mathbb{N} \\
j_1 + j_2 + \dots + j_k=n
\end{array}
}
\alpha'_k\cdot \beta'_{j_1}\cdot \beta'_{j_2}\cdot \dots \cdot\beta'_{j_k}\,.
\end{equation}
Now we show that also
\begin{equation}
\label{eq:series:abs}
\sum_{n=1}^{+\infty} \sum_{
\begin{array}{c}
k\in\mathbb{N},\, 
j_1, j_2, \dots, j_k\in\mathbb{N} \\
j_1 + j_2 + \dots + j_k=n
\end{array}
}
|\alpha'_k\cdot \beta'_{j_1}\cdot \beta'_{j_2}\cdot \dots \cdot\beta'_{j_k}|
\end{equation}
is convergent.
By Lemma \ref{lemma:nonpositive} and \eqref{eq:def:alpha:prime} we see that
$\alpha'_j \leq 0$ for all $j\in\mathbb{N}, j\geq 2$ and 
$\alpha'_1 = \cos_p(0) = 1$.
Moreover, from \eqref{eq:def:beta:prime} it follows that $\beta'_j\geq 0$ 
for all $j\in\mathbb{N}$.
Thus the product $\alpha'_k\cdot \beta'_{j_1}\cdot \beta'_{j_2}
\cdot \dots \cdot\beta'_{j_k}$
is positive if and only if $k=1$. All positive terms can be written 
as $\alpha'_1\cdot\beta'_n = \beta'_n$ for $n\in\mathbb{N}$ (if $k=1$ 
then $j_1=n$ is the only decomposition of $n$). Since the sum of all 
positive terms in \eqref{eq:series:1}
is $\sum_{n=1}^{+\infty} \beta'_n = \arcsin_p(1) = \frac{\pi_p}{2}<+\infty$, 
the sum of all negative terms must be finite too and equals $1-\frac{\pi_p}{2}$.
Thus \eqref{eq:series:abs} converges. This means that the series 
\eqref{eq:series:1} converges absolutely to $1$ and any rearrangement of 
this series must converge.
Also any subseries of any rearrangement of this series must converge absolutely.
Let $s_M=\sum_{m=1}^{M}\beta'_m$.
Then the series $\sum_{k=1}^{+\infty} \alpha'_k\cdot (s_M)^k$ is a subseries 
of one of the rearrangements of \eqref{eq:series:1}
and it is convergent. Observe that $s_M$ is nondecreasing and converging 
to $\sum_{m=1}^{+\infty}\beta'_m=\pi_p/2$
as $M\to +\infty$. Thus the Maclaurin series for 
$\sin_p(x)=\sum_{k=1}^{+\infty} \alpha'_k\cdot x^k$
is convergent for any $x\in(-\pi_p/2, \pi_p/2)$
to some analytic function.

Now it remains to show that it converges towards $\sin_p(x)$ on 
$(-\pi_p/2, \pi_p/2)$.
This last step follows from the formal identity \eqref{eq:series:x}, 
which on the established range of convergence holds also analytically
and the fact that the function $\sin_p(x)$ is the only function that 
satisfies the identity \eqref{eq:id:sin:arcsin}.
\end{proof}


\begin{proof}[Proof of Theorem \ref{thm:convergence:odd}]
From \cite[Thm. 1.1, consider $p=q$ and $\sigma=0$]{ParedesUchiyama}
it follows that, for any $p>1$, there exists a unique analytic function
$F(z)$ near origin such that
$\sin_p(x) = x\cdot F(|x|^p)$; thus we have
$$
\sin_p(x) = x\cdot F(|x|^p)  = \sum_{l=0}^{+\infty} \alpha_l\cdot x 
\cdot |x|^{l\cdot p} \quad\text{, where } F(z)=\sum_{l=0}^{+\infty}
\alpha_l\cdot z^l\,.
$$
Note that for $p=2 m+1$, $m\in\mathbb{N}$, the series
\begin{equation} \label{eq:ser:G}
\sum_{l=0}^{+\infty} \alpha_l\cdot x^{l\cdot p + 1}
\end{equation}
defines an analytic function $G(x)$ in a neighborhood of $x=0$ and also that
\begin{equation}\label{eq:G:sin}
\sin_p(x) = \sum_{l=0}^{+\infty} \alpha_l\cdot x^{l\cdot p + 1} = G(x)\quad
\text{for }x>0 \end{equation}
on a neighborhood of $0$.
Our aim is to show that the radius of convergence of \eqref{eq:ser:G}
is $\pi_p/2$ for $p=2 m + 1$, $m\in\mathbb{N}$.
By \eqref{eq:G:sin}, the following derivatives are equal
$$
\sin_p^{(n)}(x) = G^{(n)}(x) 
= \sum_{l=\lceil \frac{n-1}{p}\rceil}^{+\infty} \alpha_l 
\cdot\frac{(l\cdot p + 1)!}{(l\cdot p+1-n)!} x^{l\cdot p - n + 1}
$$
for $x>0$ on the neighborhood of $0$ where the series converges.
Now take a one-sided limit from the right in the previous equation
$$
\lim_{x\to 0+}\sin_p^{(n)}(x) =
\lim_{x\to 0+} \sum_{l=\lceil \frac{n-1}{p}\rceil}^{+\infty} \alpha_l 
\cdot\frac{(l\cdot p + 1)!}{(l\cdot p+1-n)!} x^{l\cdot p - n + 1}.
$$
For $j:=\frac{n-1}{p}\in\{0\}\cup\mathbb{N}$, we obtain
$$
\lim_{x\to 0+}
\sum_{l=j}^{+\infty} \alpha_l \cdot\frac{(l\cdot p + 1)!}{(l\cdot p+1-n)!} 
x^{l\cdot p - n + 1} = \alpha_{j} \cdot\frac{(j\cdot p + 1)!}{(j\cdot p+1-n)!}\,.
$$
Thus
$$
\lim_{x\to 0+}\sin_p^{(n)}(x) = \alpha_{j} 
\cdot\frac{(j\cdot p + 1)!}{(j\cdot p+1-n)!}
$$
for $j\in\{0\}\cup\mathbb{N}$.
By Lemma \ref{lemma:nonpositive}, $\lim_{x\to 0+}\sin_p^{(n)}(x)\leq 0$ 
for $n\geq 2$, $p\in\mathbb{N}$ and $p\geq 3$.
Thus $\alpha_{j}\leq 0$ for $j\in\mathbb{N}, j>1$.

The rest of the proof of the theorem is identical to the proof of 
Theorem \ref{thm:convergence} and we find
that the convergence radius of the series \eqref{eq:ser:G} is $\frac{\pi_p}{2}$ 
for $p=2 m + 1$, $m\in \mathbb{N}$.
The only difference against the proof of Theorem \ref{thm:convergence} is 
that the series \eqref{eq:ser:G} converges towards $\sin_{p}(x)$ only on 
$(0,\pi_p/2)$ for $p=2 m + 1$, $m\in \mathbb{N}$. Note that the series is
 still convergent on $(-\pi_p/2,0)$ towards
$G(x)\not=\sin_p(x)$ for $x<0$. The changes in the proof are obvious and 
are left to the reader.
\end{proof}

\begin{figure}[ht]
\begin{center}
\includegraphics[width=0.7\textwidth]{fig5} % ObrDifSinp1.eps
\end{center}
 \caption{ Graph of $\sin_3(x)$
obtained by high-precision numerical integration of
\eqref{rce:init} (thin line)  versus
graph of partial sum of the Maclaurin series for
$\sin_3(x)$ up to the power $x^{100}$ (thick line).
Notice that the Maclaurin series does not converge to
 $\sin_3(x)$ for $x<0$ and $x>\frac{\pi_3}{2}$}
\label{fig:5}
\end{figure}


\begin{figure}[ht]
\begin{center}
\includegraphics[width=0.7\textwidth]{fig6} % ObrDifSinp2.eps
\end{center}
\caption{Graph of the function $\log_{10} |\sin_3(x)-\sum_{n=1}^{100} \alpha'_n x^n|$
where $\sum_{n=1}^{100} \alpha'_n x^n$ is the partial sum of
the Maclaurin series of $\sin_3(x)$. The values of $\sin_3(x)$
were obtained by high-precision numerical integration of
\eqref{rce:init} using  Mathematica command {\tt NDSolve}
with option {\tt WorkingPrecision->50} which sets internal 
computations to be done up to {50}-digit decadic precision.
Notice that the Maclaurin series does not converge to 
$\sin_3(x)$ for $x<0$ and $x>\pi_3/2$} 
\label{fig:6}
\end{figure}

\begin{figure}[ht]
\begin{center}
\includegraphics[width=0.7\textwidth]{fig7} % ObrDifSinp4.eps
\end{center}
\caption{Graph of $\sin_4(x)$ obtained by high-precision numerical integration of
\eqref{rce:init} (thin line) versus
graph of partial sum of the Maclaurin series for $\sin_4(x)$
up to the power $x^{100}$ (thick line)} \label{fig:7}
\end{figure}


\begin{figure}[ht]
\begin{center}
\includegraphics[width=0.7\textwidth]{fig8} % ObrDifSinp6.eps
\end{center}
\caption{Graph of the function $\log_{10} |\sin_4(x)-\sum_{n=1}^{100} \alpha'_n x^n|$
where $\sum_{n=1}^{100} \alpha'_n x^n$ is the partial sum of
the Maclaurin series of $\sin_4(x)$. The values of $\sin_4(x)$
were obtained by high-precision numerical integration of
\eqref{rce:init} using  Mathematica command {\tt NDSolve}
with option {\tt WorkingPrecision->50} which sets internal computations 
to be done up to {50}-digit decadic precision.
Notice that the Maclaurin series does not converge to $\sin_4(x)$ for 
$|x|>\pi_4/2$} \label{fig:10}
\end{figure}



\section{Concluding remarks and open problems}

As it was mentioned in the proofs of
Theorems \ref{thm:convergence} and \ref{thm:convergence:odd}, 
it follows from \cite[Thm. 1.1, consider $p=q$ and $\sigma=0$]{ParedesUchiyama}
that, for any $p>1$, there exists a unique analytic function
$F(z)$ near origin such that
$$\sin_p(x) = x\cdot F(|x|^p)\,.$$
Thus the function $\sin_p(x)$ can be expanded into generalized 
Maclaurin series near the origin:
$$
\sin_p(x) = x\cdot F(|x|^p)  = \sum_{l=0}^{+\infty} \alpha_l\cdot x 
\cdot |x|^{l\cdot p}, \quad\text{where } 
F(z)=\sum_{l=0}^{+\infty}\alpha_l\cdot z^l\,.
$$

\begin{remark} {\rm (Convergence of generalized Maclaurin series)
Let  $p=2 m + 1$ for $m\in\mathbb{N}$.
It follows from the symmetry of the function $\sin_{2 m + 1}(x)$ with 
respect to the origin and from the proof of Theorem \ref{thm:convergence:odd} 
that the generalized Maclaurin series
$\sum_{l=0}^{+\infty} \alpha_l\cdot x \cdot |x|^{l\cdot(2 m + 1)}$ converges 
towards the values of
$\sin_{2 m + 1}(x)$ on $(-\frac{\pi_{2 m + 1}}{2}, \frac{\pi_{2 m + 1}}{2})$.
}\end{remark}

\begin{remark}[Complex argument for $p$ even]
{\rm
Let $p=2 (m + 1)$ for $m\in\mathbb{N}$. It follows from the proof of 
Theorem \ref{thm:convergence} that
the Maclaurin series $\sum_{l=0}^{+\infty} \alpha_l\cdot x^{l\cdot2 (m + 1) + 1}$ 
converges towards the values of
$\sin_{2 (m + 1)}(x)$ on $(-\frac{\pi_{2 (m + 1)}}{2}, \frac{\pi_{2 (m + 1)}}{2})$
 absolutely. This enables us to extend the range of definition of the 
function $\sin_{2 (m + 1)}(x)$ to the complex open disc
$$
B_m=\{z\in\mathbb{C}: |z|<\frac{\pi_{2 (m + 1)}}{2}\}
$$
by setting $\sin_{2 (m + 1)}(z):= \sum_{l=0}^{+\infty} \alpha_l
\cdot z^{l\cdot{2 (m + 1)} + 1}$. Since all the powers of $z$
are of positive-integer order $l\cdot{2 (m + 1)} + 1$, the function 
$\sin_{2 (m + 1)}(z)$ is an analytic complex function on $B_{m}$
and thus is single-valued. Unfortunately, this easy approach works only 
for $p=2 (m + 1)$ with $m\in\mathbb{N}$; cf \cite{Lindqvist}.
}\end{remark}


Our methods for proving convergence of the Maclaurin or generalized 
Maclaurin series are based on the fact that $p$ is an integer.
Thus a natural question appears.

\begin{openproblem}[Convergence for $p>1$ not integer] \rm
Consider $p>1$, $p\not\in\mathbb{N}$.
Prove (or find a counterexample) that the generalized Maclaurin 
series corresponding to $\sin_p(x)$ 'suggests the convergence' 
on $(-\pi_p/2, \pi_p/2)$ towards the values of $\sin_p(x)$.
\end{openproblem}

For the sake of completeness, we remark that \cite{Lindqvist} claims 
the convergence of the generalized Maclaurin series on
$(-\pi_p/2, \pi_p/2)$ for any $p>1$, but there is no
proof nor any indication for the proof of this claim.

Moreover, we are not able to decide about the convergence at the endpoints. 
This is another open question.

\begin{openproblem}[Endpoints of the interval]\rm
Consider $p>1$. Prove (or find a counterexample) that the  
generalized Maclaurin series of $\sin_p(x)$ converge at $-\frac{\pi_p}{2}$ 
and/or $\frac{\pi_p}{2}$.
\end{openproblem}

\begin{remark}[Function $\cos_p$ for $p$ even]{\rm
Let $p=2 (m + 1)$ for $m\in\mathbb{N}$. Since $\cos_{p}(x)=\sin_{p}'(x)$ 
by definition, the Maclaurin series for $\cos_{2 (m + 1)}(x)$ can be obtained
by taking into derivative the Maclaurin series for $\sin_{2 (m + 1)}(x)$ 
term by term. The Maclaurin series for $\cos_{2 (m + 1)}(x)$ then converges
towards the value $\cos_{2 (m + 1)}(x)$ for any 
$x\in (-\frac{\pi_{2 (m + 1)}}{2},\frac{\pi_{2 (m + 1)}}{2})$.
}\end{remark}

\begin{remark}[Function $\cos_p$ for $p$ odd]{\rm
Let $p=2 m + 1$ for $m\in\mathbb{N}$.
In this case the Maclaurin series for $\cos_{2 m + 1}(x)$ can also be obtained
by taking into derivative the Maclaurin series for $\sin_{2 m + 1}(x)$ term 
by term. This  Maclaurin series then converges for 
$x\in (-\frac{\pi_{2 m + 1}}{2},\frac{\pi_{2 m + 1}}{2})$.
However, the Maclaurin series for $\cos_{2 m + 1}(x)$ converges towards 
the value $\cos_{2 m + 1}(x)$ for $x\in [0, \frac{\pi_{2 m + 1}}{2})$,
but it does not converge towards the value $\cos_{2 m + 1}(x)$ for any 
$x\in (-\frac{\pi_{2 m + 1}}{2}, 0)$.
}\end{remark}


\begin{thebibliography}{99}

\bibitem{BindingBoultonCepickaDrabekGirg}
Binding, P.; Boulton, L.; \v{C}epi\v{c}ka, J.; Dr\'{a}bek, P.; Girg, P.:
 Basis properties of eigenfunctions of the p-Laplacian, 
\emph{Proc. Amer. Math. Soc.} {\bf 136} (2006) pp. 3487-�3494.

\bibitem{BenediktGirgTakacFredholm} Benedikt, J.; Girg, P.; Tak\'{a}\v{c}, P.:
 On the Fredholm alternative for the p-Laplacian at higher eigenvalues 
(in one dimension), Nonlinear Anal., T.M.A., {\bf 72} (2010) 3091--3107.

\bibitem{BenediktGirgTakacVanishing} Benedikt, J.; Girg, P.; Tak\'{a}\v{c}, P.: 
Perturbation of the image-Laplacian by vanishing nonlinearities (in one dimension)
Nonlinear Anal., T.M.A., {\bf 75} (2012) pp. 3691--3703

\bibitem{Bognar} Bogn\'{a}r,~G.: 
Local analytic solutions to some nonhomogeneous
problems with p-Laplacian, \emph{E. J. Qualitative Theory of Diff. Equ.}, 
No. 4. (2008), pp. 1-8.
 http://www.math.u-szeged.hu/ ejqtde/

\bibitem{BushellEdmunds} Bushell, P.~J.; Edmunds D.~E.:
Remarks on generalised trigonometric functions, 
\emph{Rocky Mountain J. Math.} Volume {\bf 42}, Number 1 (2012), pp. 25--57.

\bibitem{BoultonLord} Boulton, L.; Lord, G.:
Approximation properties of the $q$-sine bases.
\emph{Proc. R. Soc. Lond. Ser. A Math. Phys. Eng. Sci.} {\bf 467} (2011),
no. 2133, 2690--2711.

\bibitem{CepDrabGirg} \v{C}epi\v{c}ka, J.; Dr\'{a}bek, P.; Girg, P.:
Quasilinear Boundary Value Problems:
Existence and Multiplicity Results. \emph{Contemporary Mathematics} 
Volume {\bf 357} (2004), pp. 111--139.

\bibitem{DEM} del Pino,~M.A.; Elgueta,~M.; Man\'{a}sevich,~R.F.: 
Homotopic deformation along $p$ of a Lerray-Schauder degree result 
and existence for $(|u'|^{p-2}u')'+f(t,u)=0, u(0)=u(T)=0$, $p>1$. 
J.~Differential Equations {\bf 80} (1989), pp. 1--13.

\bibitem{DDM} del Pino,~M.A.; Dr\'{a}bek,~P.; Man\'{a}sevich,~R.F.: 
The Fredholm Alternative at the First Eigenvalue for the One Dimensional
$p$-Laplacian. J.~Differential Equations {\bf 151} (1999), pp. 386--419.

\bibitem{EdmundsGurkaLang}  Edmunds, D.~E.; Gurka, P.; Lang, J.: 
Properties of generalized trigonometric functions. J. Approx. 
Theory 164 (2012), no. 1, pp. 47--56.

\bibitem{Elbert} Elbert, \'{A}.: 
A half-linear second order differential equation. Qualitative 
theory of differential equations, Vol. I, II (Szeged, 1979), pp. 153--180, 
\emph{Colloq. Math. Soc. J\'{a}nos Bolyai}, {\bf 30}, 
North-Holland, Amsterdam-New York, 1981.

\bibitem{Evans} Evans, L.~C.; Feldman, M.; Gariepy, R.~F.: 
Fast/slow diffusion and collapsing sandpiles. \emph{J. Differential Equations} 
{\bf 137} (1997), no. 1, pp. 166--209.

\bibitem{LangEdmunds} Lang, J.; Edmunds, D.:
 \emph{Eigenvalues, Embeddings and Generalised Trigonometric Functions}, 
in: Lecture Notes in Mathematics {\bf 2016}, Springer-Verlag Berlin 
Heidelberg (2011). 

\bibitem{LindqvistRockyMnts} Lindqvist, P.:
Note on a nonlinear eigenvalue problme,
 \emph{Rocky Mountains Journal of Mathematics}, {\bf 23}, no. 1 (1993), 
pp. 281--288.

\bibitem{Lindqvist} Lindqvist, P.: 
Some remarkable sine and cosine functions. 
\emph{Ricerche Mat.} {\bf 44} (1995), no. 2, pp. 269--290 (1996)

\bibitem{LindqvistPeetre} Lindqvist, P.; Peetre, J.: 
Two Remarkable Identities, Called Twos, for Inverses to Some Abelian Integrals.
\emph{Amer. Math. Monthly} {\bf 108} (2001) pp. 403--410.

\bibitem{EL} Lundberg, E.:
\emph{Om hypergoniometriska funktioner af komplexa variabla}, 
Stockholm, 1879. English translantion by Jaak Peetre:
 On hypergoniometric funkctions of complex variables.

\bibitem{Manna} Manna, Z.: 
\emph{Mathematical Theory of Computation}, McGraw-Hill 1974

\bibitem{ManasevichTakac} Man\'{a}sevich, R.~F.; Tak\'{a}\v{c}, P.: 
On the Fredholm alternative for the p-Laplacian in one dimension.
\emph{Proc. London Math. Soc.}(3) {\bf 84}, no. 2 (2002), pp. 324--342.

\bibitem{Marichev} Marichev, O.: 
Personal communication with P. Girg during the Wolfram Technology 
Conference 2011 and some materials concerning
computation of $p,q$-trigonometric functions sent from
 O. Marichev to P. Girg after the Wolfram Technology Conference 2012.

\bibitem{Necas}  Ne\v{c}as, I.:
The discreteness of the spectrum of a nonlinear Sturm-Liouville equation. 
(Russian) \emph{Dokl. Akad. Nauk SSSR} {\bf 201} (1971), pp. 1045--1048.

\bibitem{Otani} \^{O}tani, M.: 
A Remark on Certain Elliptic Equations. \emph{Proc. Fac. Sci. Tokai Univ.} 
{\bf 19} (1984), pp. 23�-28.

\bibitem{Otani2} \^{O}tani, M.: 
On Certain Second Order Ordinary Differential Equations Associated 
with Sobolev-Poincar\'{e}-Type Inequalities. 
\emph{Nonlinear Analysis. Theory. Methods \& Applications.} 
Volume {\bf 8}, no. 11(1984), pp. 1255--1270.

\bibitem{ParedesUchiyama} Paredes, L.I.; Uchiyama, K.: 
Analytic Singularities of Solutions to Certain Nonlinear Ordinary
Differential Equations Associated with $p$-Laplacian. 
\emph{Tokyo J. Math.} {\bf 26}, no. 1 (2003), pp. 229--240.

\bibitem{Peetre} Peetre, J.: The differential equation
 $y'^p - y^p = \pm (p>0)$. \emph{Ricerche Mat.}  {\bf 23} (1994), pp. 91--128.

\bibitem{SalomaaSoittola} Salomaa A., Soittola M.: 
\emph{Automata-Theoretic Aspects of Formal Power Series}, Springer 1978

\bibitem{Wood} Wood, W. E.: Squigonometry. 
\emph{Math. Mag.} 84 (2011), no. 4, pp. 257--265.

\end{thebibliography}

\end{document}

