Mathwords logoMathwords

Riccati Differential Equation — Definition, Formula & Example

A Riccati differential equation is a first-order equation in which the derivative equals a quadratic expression in the unknown function. The y2y^2 term makes it nonlinear, but one known solution is enough to unlock all the others.

A first-order ordinary differential equation of the form y′=q0(x)+q1(x) y+q2(x) y2y' = q_0(x) + q_1(x)\,y + q_2(x)\,y^2, where q0,q1,q2q_0, q_1, q_2 are continuous on an interval and q2q_2 is not identically zero. If q2≡0q_2 \equiv 0, the equation is linear. If q0≡0q_0 \equiv 0, it is a Bernoulli equation with n=2n = 2.

Key Formula

dydx=q0(x)+q1(x) y+q2(x) y2\frac{dy}{dx} = q_0(x) + q_1(x)\,y + q_2(x)\,y^2
Where:
  • yy = The unknown function of x that you are solving for
  • q0(x)q_0(x) = The term that does not involve y, called the forcing term
  • q1(x)q_1(x) = The coefficient multiplying y to the first power
  • q2(x)q_2(x) = The coefficient multiplying y squared. It must not be identically zero

How It Works

A general Riccati equation cannot be solved by a formula in its coefficients alone, so you usually need one particular solution y1y_1 first. Often you find it by guessing a simple function such as xx, a constant, or 1/x1/x. Then substitute y=y1+1vy = y_1 + \dfrac{1}{v}. The quadratic terms cancel, and vv satisfies the linear equation v′=−(q1+2q2y1)v−q2v' = -\left(q_1 + 2q_2 y_1\right)v - q_2. Solve for vv with an integrating factor, then convert back to yy.

Worked Example

Problem: Solve the initial value problem y′=1+x2−2xy+y2y' = 1 + x^2 - 2xy + y^2 with y(0)=12y(0) = \tfrac{1}{2}.
Step 1: Find a particular solution. Try y1=xy_1 = x. Then y1′=1y_1' = 1, and the right side becomes 1+x2−2x2+x2=11 + x^2 - 2x^2 + x^2 = 1. Both sides match, so y1=xy_1 = x works.
1+x2−2x(x)+x2=1=y1′1 + x^2 - 2x(x) + x^2 = 1 = y_1'
Step 2: Rewrite the right side as 1+(y−x)21 + (y - x)^2 and substitute y=x+1vy = x + \frac{1}{v}. Then y′=1−v′v2y' = 1 - \frac{v'}{v^2} and y−x=1vy - x = \frac{1}{v}. The quadratic terms cancel and leave a linear equation for vv.
1−v′v2=1+1v2  ⟹  v′=−11 - \frac{v'}{v^2} = 1 + \frac{1}{v^2} \implies v' = -1
Step 3: Integrate to get v=C−xv = C - x, then convert back to yy.
y=x+1C−xy = x + \frac{1}{C - x}
Step 4: Apply the initial condition y(0)=12y(0) = \tfrac{1}{2} to find CC.
0+1C=12  ⟹  C=20 + \frac{1}{C} = \frac{1}{2} \implies C = 2
Answer: y=x+12−xy = x + \dfrac{1}{2 - x}, which is valid for x<2x < 2. The solution blows up at x=2x = 2, a behavior that is typical of nonlinear equations.

Why It Matters

Matrix Riccati equations are central to optimal control. The linear-quadratic regulator used in aircraft autopilots and robotics, as well as the Kalman filter used in GPS tracking, both require solving one. In an ODE course, the substitution y=−u′q2uy = -\dfrac{u'}{q_2 u} turns a Riccati equation into a second-order linear equation for uu. This links the two topics directly.

Common Mistakes

Mistake: Substituting y=y1+vy = y_1 + v instead of y=y1+1vy = y_1 + \frac{1}{v} and then expecting a linear equation.
Correction: The substitution y=y1+vy = y_1 + v only produces a Bernoulli equation in vv, which needs a second substitution. Using y=y1+1vy = y_1 + \frac{1}{v} goes straight to a linear equation in vv.

Related Terms