\documentclass[]{amsbook}
\usepackage{amsmath,amsopn}
\usepackage{graphicx}
\usepackage{hyperref,url}
% BEGIN SPECIAL COMMANDS
\newcommand{\MADerror}[1]{\begin{flushleft}\fbox{\begin{minipage}{\textwidth}{\tt #1}\end{minipage}}\end{flushleft}}
\newcommand{\MADierror}[1]{\fbox{\tt #1}}
% END SPECIAL COMMANDS
% BEGIN STATIC HEADER

% END STATIC HEADER
% BEGIN DYNAMIC HEADER
% Copyright \copyright 2001-2003 by the Algorithms Project and INRIA. All rigths reserved.

% END DYNAMIC HEADER
\begin{document}
\chapter*{CS Cosine}
\label{CS}
\section*{CS.1 Introduction}
\label{CS:intro}


Let $x$ be a complex variable of $\mathbb{C} \setminus \{\infty\}$.The function Cosine (noted $\operatorname{cos}$) is defined by the following second order differential equation
\begin{equation*}
\label{CS:diffeq}
\begin{split}
y (x) + \frac{\partial^{2} y (x)}{\partial x^{2}}& =0.
\end{split}\tag{CS.1.1}
\end{equation*}



The initial conditions of CS.1.1 are given at $0$ by
\begin{equation*}
\label{CS:inicond}
\begin{split}
\operatorname{cos} (0)& =1, \\
\frac{\partial \operatorname{cos} (x)}{\partial x} (0)& =0.
\end{split}\tag{CS.1.2}
\end{equation*}



Related function: \href{http://algo.inria.fr/esf/function/SN/SN.html#SN}{Sine}
\section*{CS.2 Series and asymptotic expansions}
\label{CS:asympt}
\subsection*{CS.2.1 Asymptotic expansion at $\infty$}
\label{743348326976934420}
\subsubsection*{CS.2.1.1 Exact form}
\label{743348690515105268}



\begin{equation*}
\begin{split}
\operatorname{cos} (x)& =\frac{\operatorname{e} ^{(-\operatorname{RootOf} _{\xi,2} (1 + \xi^{2}) x)}}{2} + \frac{\operatorname{e} ^{(-\operatorname{RootOf} _{\xi,1} (1 + \xi^{2}) x)}}{2}.
\end{split}
\end{equation*}

\subsection*{CS.2.2 Taylor expansion at $0$}
\label{743348222362914205}
\subsubsection*{CS.2.2.1 First terms}
\label{743348578570638427}



\begin{equation*}
\label{CS:asympt:0:RDLBLRDTERMSRDEQ}
\begin{split}
\operatorname{cos} (x)& =1 - \frac{1}{2}   x^{2} + \frac{1}{24}   x^{4} - \frac{1}{720}   x^{6} + \frac{1}{40320}   x^{8} - \frac{1}{3628800}   x^{10} +  \\
& \quad{}\quad{}\frac{1}{479001600}   x^{12} - \frac{1}{87178291200}   x^{14} + \operatorname{O} \bigl(x^{16}\bigr).
\end{split}\tag{CS.2.2.1.1}
\end{equation*}

\subsubsection*{CS.2.2.2 General form}
\label{743348896750816349}



\begin{equation*}
\label{CS:asympt:0:RDLBLRDGENFORMRDEQ}
\begin{split}
\operatorname{cos} (x)& =\sum_{n = 0}^{\infty} u (n) x^{n}.
\end{split}\tag{CS.2.2.2.1}
\end{equation*}
The coefficients $u (n)$ satisfy the recurrence
\begin{equation*}
\label{CS:asympt:0:toto}
\begin{split}
u (n) + \bigl(n^{2} + 3 n + 2\bigr) u (n + 2)& =0.
\end{split}\tag{CS.2.2.2.2}
\end{equation*}
Initial conditions of CS.2.2.2.2 are given by
\begin{equation*}
\label{CS:asympt:0:RDLBLRDGENFORMRDIC}
\begin{split}
u (1)& =0, \\
u (0)& =1.
\end{split}\tag{CS.2.2.2.3}
\end{equation*}
The recurrence CS.2.2.2.2 has the closed form solution
\begin{equation*}
\label{CS:asympt:0:RDLBLRDGENFORMRDCLOSED}
\begin{split}
u (2 n + 1)& =0, \\
u (2 n)& =\frac{(-1)^{n}}{\Gamma (2 n + 1)}.
\end{split}\tag{CS.2.2.2.4}
\end{equation*}

\section*{CS.3 Graphs}
\label{7433552956929784}
\subsection*{CS.3.1 Real axis}
\label{743355453558772208}
\begin{center}
\includegraphics[width=6cm]{CS/744097764748457992}
\end{center}
\subsection*{CS.3.2 Complex plane}
\label{74335560479044456}
\begin{center}
\includegraphics[width=6cm]{CS/744097741223606680}
\end{center}
\end{document}

