spivak_notation.rst 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. .. default-domain:: cpp
  2. .. cpp:namespace:: ceres
  3. .. _chapter-spivak_notation:
  4. ===============
  5. Spivak Notation
  6. ===============
  7. To preserve our collective sanities, we will use Spivak's notation for
  8. derivatives. It is a functional notation that makes reading and
  9. reasoning about expressions involving derivatives simple.
  10. For a univariate function :math:`f`, :math:`f(a)` denotes its value at
  11. :math:`a`. :math:`Df` denotes its first derivative, and
  12. :math:`Df(a)` is the derivative evaluated at :math:`a`, i.e
  13. .. math::
  14. Df(a) = \left . \frac{d}{dx} f(x) \right |_{x = a}
  15. :math:`D^kf` denotes the :math:`k^{\text{th}}` derivative of :math:`f`.
  16. For a bi-variate function :math:`g(x,y)`. :math:`D_1g` and
  17. :math:`D_2g` denote the partial derivatives of :math:`g` w.r.t the
  18. first and second variable respectively. In the classical notation this
  19. is equivalent to saying:
  20. .. math::
  21. D_1 g = \frac{\partial}{\partial x}g(x,y) \text{ and } D_2 g = \frac{\partial}{\partial y}g(x,y).
  22. :math:`Dg` denotes the Jacobian of `g`, i.e.,
  23. .. math::
  24. Dg = \begin{bmatrix} D_1g & D_2g \end{bmatrix}
  25. More generally for a multivariate function :math:`g:\mathbb{R}^n
  26. \longrightarrow \mathbb{R}^m`, :math:`Dg` denotes the :math:`m\times
  27. n` Jacobian matrix. :math:`D_i g` is the partial derivative of
  28. :math:`g` w.r.t the :math:`i^{\text{th}}` coordinate and the
  29. :math:`i^{\text{th}}` column of :math:`Dg`.
  30. Finally, :math:`D^2_1g` and :math:`D_1D_2g` have the obvious meaning
  31. as higher order partial derivatives.
  32. For more see Michael Spivak's book `Calculus on Manifolds
  33. <https://www.amazon.com/Calculus-Manifolds-Approach-Classical-Theorems/dp/0805390219>`_
  34. or a brief discussion of the `merits of this notation
  35. <http://www.vendian.org/mncharity/dir3/dxdoc/>`_ by
  36. Mitchell N. Charity.