Derivatives of trigonometric expressions #
The first and second derivatives of t ↦ cos (c t) are -c sin (c t) and -c² cos (c t)
(TauCeti.deriv_cos_mul, TauCeti.deriv_deriv_cos_mul).
For every real exponent p, the map (k, θ) ↦ (1 - k² sin² θ) ^ p is smooth on the open set
{(k, θ) | k ^ 2 < 1}, where its base is positive, and its partial derivative in k there is
-2 p k sin² θ (1 - k² sin² θ) ^ (p - 1). The exponents p = -1/2 and p = 1/2 give the
integrands of Legendre's elliptic integrals of the first and second kind.
For k ^ 2 < 1 and every real exponent p, the derivative in k of
(1 - k² sin² θ) ^ p is -2 p k sin² θ (1 - k² sin² θ) ^ (p - 1).