A quadratic equation has the form . The quadratic formula solves for :
The means two solutions exist (one with , one with ). In competitive programming, you use this when analyzing recurrence relations or solving optimization problems with parabolic constraints.