In mathematics, a cusp, sometimes called spinode in old texts, is a point on a curve where a moving point must reverse direction. A typical example is given in the figure. A cusp is thus a type of singular point of a curve.
 For a plane curve defined by an analytic, parametric equation
 a cusp is a point where both derivatives of f and  g are zero, and the directional derivative, in the direction of the tangent, changes sign (the direction of the tangent is the direction of the slope 
  
    
      
        lim
        (
        
          g
          ′
        
        (
        t
        )
        
          /
        
        
          f
          ′
        
        (
        t
        )
        )
      
    
    {\displaystyle \lim(g'(t)/f'(t))}
  
).  Cusps are local singularities in the sense that they involve only one value of the parameter t, in contrast to self-intersection points that involve more than one value. In some contexts, the condition on the directional derivative may be omitted, although, in this case, the singularity may look like a regular point.
 For a curve defined by an implicit equation 
 which is smooth, cusps are points where the terms of lowest degree of the Taylor expansion of F are a power of a linear polynomial; however, not all singular points that have this property are cusps. The theory of Puiseux series implies that, if F is an analytic function (for example a polynomial), a linear change of coordinates allows the curve to be parametrized, in a neighborhood of the cusp, as
 where a is a real number, m is a positive even integer, and S(t) is a power series of order k (degree of the nonzero term of the lowest degree) larger than m. The number m is sometimes called the order or the multiplicity of the cusp, and is equal to the degree of the nonzero part of lowest degree of F. In some contexts, the definition of a cusp is restricted to the case of cusps of order two—that is, the case where m = 2.
 The definitions for plane curves and implicitly-defined curves have been generalized by René Thom and Vladimir Arnold to curves defined by differentiable functions: a curve has a cusp at a point if there is a diffeomorphism of a neighborhood of the point in the ambient space, which maps the curve onto one of the above-defined cusps.
 Consider a smooth real-valued function of two variables, say f (x, y) where x and y are real numbers. So f is a function from the plane to the line. The space of all such smooth functions is acted upon by the group of diffeomorphisms of the plane and the diffeomorphisms of the line, i.e. diffeomorphic changes of coordinate in both the source and the target. This action splits the whole function space up into equivalence classes, i.e. orbits of the group action. 
 One such family of equivalence classes is denoted by 
  
    
      
        
          A
          
            k
          
          
            ±
          
        
        ,
      
    
    {\displaystyle A_{k}^{\pm },}
  
 where k is a non-negative integer. A function f is said to be of type 
  
    
      
        
          A
          
            k
          
          
            ±
          
        
      
    
    {\displaystyle A_{k}^{\pm }}
  
 if it lies in the orbit of 
  
    
      
        
          x
          
            2
          
        
        ±
        
          y
          
            k
            +
            1
          
        
        ,
      
    
    {\displaystyle x^{2}\pm y^{k+1},}
  
 i.e. there exists a diffeomorphic change of coordinate in source and target which takes f into one of these forms. These simple forms 
  
    
      
        
          x
          
            2
          
        
        ±
        
          y
          
            k
            +
            1
          
        
      
    
    {\displaystyle x^{2}\pm y^{k+1}}
  
 are said to give normal forms for the type 
  
    
      
        
          A
          
            k
          
          
            ±
          
        
      
    
    {\displaystyle A_{k}^{\pm }}
  
-singularities. Notice that the 
  
    
      
        
          A
          
            2
            n
          
          
            +
          
        
      
    
    {\displaystyle A_{2n}^{+}}
  
 are the same as the 
  
    
      
        
          A
          
            2
            n
          
          
            −
          
        
      
    
    {\displaystyle A_{2n}^{-}}
  
 since the diffeomorphic change of coordinate 
  
    
      
        (
        x
        ,
        y
        )
        →
        (
        x
        ,
        −
        y
        )
      
    
    {\displaystyle (x,y)\to (x,-y)}
  
 in the source takes 
  
    
      
        
          x
          
            2
          
        
        +
        
          y
          
            k
            +
            1
          
        
      
    
    {\displaystyle x^{2}+y^{k+1}}
  
 to 
  
    
      
        
          x
          
            2
          
        
        −
        
          y
          
            2
            n
            +
            1
          
        
        .
      
    
    {\displaystyle x^{2}-y^{2n+1}.}
  
 So we can drop the ± from 
  
    
      
        
          A
          
            2
            n
          
          
            ±
          
        
      
    
    {\displaystyle A_{2n}^{\pm }}
  
 notation.
 The cusps are then given by the zero-level-sets of the representatives of the 
  
    
      
        
          A
          
            2
            n
          
        
      
    
    {\displaystyle A_{2n}}
  
 equivalence classes, where n ≥ 1 is an integer.[citation needed]
 For a type A4-singularity we need f to have a degenerate quadratic part (this gives type A≥2), that L does divide the cubic terms (this gives type A≥3), another divisibility condition (giving type A≥4), and a final non-divisibility condition (giving type exactly A4).
 To see where these extra divisibility conditions come from, assume that f has a degenerate quadratic part L2 and that L divides the cubic terms. It follows that the third order taylor series of f is given by 
  
    
      
        
          L
          
            2
          
        
        ±
        L
        Q
        ,
      
    
    {\displaystyle L^{2}\pm LQ,}
  
 where Q is quadratic in x and y. We can complete the square to show that 
  
    
      
        
          L
          
            2
          
        
        ±
        L
        Q
        =
        (
        L
        ±
        Q
        
          /
        
        2
        
          )
          
            2
          
        
        −
        
          Q
          
            4
          
        
        
          /
        
        4.
      
    
    {\displaystyle L^{2}\pm LQ=(L\pm Q/2)^{2}-Q^{4}/4.}
  
 We can now make a diffeomorphic change of variable (in this case we simply substitute polynomials with linearly independent linear parts) so that 
  
    
      
        (
        L
        ±
        Q
        
          /
        
        2
        
          )
          
            2
          
        
        −
        
          Q
          
            4
          
        
        
          /
        
        4
        →
        
          x
          
            1
          
          
            2
          
        
        +
        
          P
          
            1
          
        
      
    
    {\displaystyle (L\pm Q/2)^{2}-Q^{4}/4\to x_{1}^{2}+P_{1}}
  
 where P1 is quartic (order four) in x1 and y1. The divisibility condition for type A≥4 is that x1 divides P1. If x1 does not divide P1 then we have type exactly A3 (the zero-level-set here is a tacnode). If x1 divides P1 we complete the square on 
  
    
      
        
          x
          
            1
          
          
            2
          
        
        +
        
          P
          
            1
          
        
      
    
    {\displaystyle x_{1}^{2}+P_{1}}
  
 and change coordinates so that we have 
  
    
      
        
          x
          
            2
          
          
            2
          
        
        +
        
          P
          
            2
          
        
      
    
    {\displaystyle x_{2}^{2}+P_{2}}
  
 where P2 is quintic (order five) in x2 and y2. If x2 does not divide P2 then we have exactly type A4, i.e. the zero-level-set will be a rhamphoid cusp.
 Cusps appear naturally when projecting into a plane a smooth curve in three-dimensional Euclidean space. In general, such a projection is a curve whose singularities are self-crossing points and ordinary cusps. Self-crossing points appear when  two different points of the curves have the same projection. Ordinary cusps appear when the tangent to the curve is parallel to the direction of projection (that is when the tangent projects on a single point). More complicated singularities occur when several phenomena occur simultaneously. For example, rhamphoid cusps occur for inflection points (and for undulation points) for which the tangent is parallel to the direction of projection.
 In many cases, and typically in computer vision and computer graphics, the curve that is projected is the curve of the critical points of the restriction to a (smooth) spatial object of the projection. A cusp appears thus as a singularity of the contour of the image of the object (vision) or of its shadow (computer graphics).
 Caustics and wave fronts are other examples of curves having cusps that are visible in the real world.