logo

Riccati Differential Equation Solutions 📂Odinary Differential Equations

Riccati Differential Equation Solutions

Definition

The first-order nonlinear differential equation below is called the Riccati equation.

y=P(x)y+Q(x)y2+R(x) y^\prime = P(x)y+Q(x)y^2+R(x)

Explanation

If y1y_{1} is known as a particular solution, the general solution is represented in the form of y=y1+u(x)y=y_{1}+u(x). Here, u(x)u(x) is an arbitrary constant, and it can be obtained by solving the Bernoulli differential equation when n=2n=2.

Solution

The Riccati equation looks too complicated at first glance to solve. Hence, we need to use a simple trick to change it into a form that is easier for us to solve.

  • Step 1.

    Let’s say y1y_{1} is a random particular solution. The way to obtain this particular solution is not fixed; it must be acquired through intuition, insight, or multiple attempts. Maybe by inserting yy into 22? Maybe by inserting 3x3x? And so on. And let’s assume the general solution is in the form of y=y1+u(x)y=y_{1}+u(x). u(x)u(x) is an arbitrary constant.

  • Step 2.

    When substituting y=y1+uy=y_{1}+u into the given differential equation,

    y1+u=P(y1+u)+Q(y1+u)2+R    y1+u=P(y1+u)+Q(y12+2y1u+u2)+R \begin{align*} && y_{1}^\prime + u^\prime = P(y_{1}+u) + Q(y_{1}+u)^2 +R \\ \implies && y_{1}^\prime + u^\prime = P(y_{1}+u) + Q(y_{1}^2 +2y_{1}u +u^2) +R \end{align*}

    Organizing the right-hand side gives

    y1+u=(Py1+Qy12+R)+(P+2Qy1)u+Qu2 y_{1}^\prime + u^\prime = \left( Py_{1} + Qy_{1}^2 + R \right) +\left( P + 2Qy_{1} \right) u +Qu^2

  • Step 3.

    Since y1y_{1} is a solution to the given differential equation, it satisfies y1=Py1+Qy12+Ry_{1}^\prime=Py_{1}+Qy_{1}^2+R. Therefore, by canceling out the common terms on both sides, we get the following.

    u=(P+2Qy1)u+Qu2 u^\prime = \left( P + 2Qy_{1} \right) u +Qu^2

    This is the same form as when n=2n=2 in Bernoulli’s differential equation. Therefore, u(x)u(x) can be found using the solution method of Bernoulli’s differential equation. After that, the general solution y=y1+u(x)y=y_{1}+u(x) of the given differential equation is obtained.

Example

Solve the differential equation y=22xy+y2y^\prime = 2- 2xy+y^2.

Since substituting 2x2x into yy works, we can assume y1=2xy_{1}=2x. Then, the general solution is

y=y1+u(x)=2x+uy=2+u y=y_{1}+u(x)=2x+u \\ y^\prime=2+u^\prime

Substituting into the given differential equation gives

2+u=22x(2x+u)+(2x+u)2    2+u=24x22xu+4x2+4xu+u2    u=2xu+u2    u2xu=u2 \begin{align*} && 2+u^\prime &= 2 – 2x(2x+u)+(2x+u)^2 \\ \implies && 2+u^\prime &= 2-4x^2-2xu+4x^2+4xu+u^2 \\ \implies && u^\prime &= 2xu+u^2 \\ \implies && u^\prime –2xu &= u^2 \end{align*}

In other words, it is the form when n=2n=2 in Bernoulli’s equation.

Bernoulli’s equation

u+(1n)pu=q(1n) u^\prime + (1-n)pu=q(1-n)

Dividing both sides by u2u^2 gives

u2u2xu1=1 u^{-2}u^\prime – 2xu^{-1}=1

By substituting wu1n=u1w \equiv u^{1-n}=u^{-1} and solving Bernoulli’s equation, we get dwdx=u2dudx\dfrac{dw}{dx}=-u^{-2}\dfrac{du}{dx}, so

w2xw=1    w+2xw=1    w=ex2[ex2dx+C] \begin{align*} && -w^\prime –2xw &= 1 \\ \implies && w^\prime + 2xw &= -1 \\ \implies && w &= e^{-x^2} \left[ -\displaystyle \int e^{x^2}dx+C \right] \end{align*}

However, since we substituted w=u1w =u^{-1} above,

u=ex2Cex2dx u=\dfrac{e^{x^2}}{C- \displaystyle \int e^{x^2} dx}

Therefore, the final general solution is as follows.

y=y1+u(x)=2x+ex2Cex2dx y=y_{1}+u(x)=2x+\dfrac{e^{x^2}}{C- \displaystyle \int e^{x^2}dx}