In mathematics, a Riccati equation in the narrowest sense is any first-order ordinary differential equation that is quadratic in the unknown function. In other words, it is an equation of the form
where and . If the equation reduces to a Bernoulli equation, while if the equation becomes a first order linear ordinary differential equation.