logo

Solutions to Euler's Differential Equations 📂Odinary Differential Equations

Solutions to Euler's Differential Equations

Definition

The differential equation of the following form is called the Euler differential equation or Euler-Cauchy equation.

a2x2d2ydx2+a1xdydx+a0y=0 \begin{equation} a_{2}x^{2}\frac{ d ^{2 }y}{ dx^{2} }+a_{1}x\frac{ d y}{ d x }+a_{0}y=0 \end{equation}

Explanation

For a non-homogeneous equation where the right side is not 00, it can be solved by substituting it with x=ezx=e^{z}.

Solution

For convenience of calculation, both sides of (1)(1) are divided by a2a_{2}, and let’s call the coefficients of the other two terms a1a_{1} and a0a_{0}, respectively. Then

x2d2ydx2+a1xdydx+a0y=0 x^{2}\frac{ d ^{2 }y}{ dx^{2} } + a_{1}x\frac{ d y}{ d x } + a_{0}y = 0

By observing the differential equation, it becomes 00 by differentiating twice and multiplying by the second term, differentiating once and multiplying by the first term, and adding the original function. Thus, the solution can be stated as follows.

y=xr y=x^{r}

Substituting into the differential equation results in

r(r1)xr+a1rxr+a0xr=0[r(r1)+a1r+a0]xr=0[r2(a11)r+a0]xr=0 \begin{align*} r(r-1)x^{r}+a_{1}rx^{r}+a_{0}x^{r}=0 \\ [r(r-1)+a_{1}r+a_{0}]x^{r}=0 \\ [r^{2}-(a_{1}-1)r+a_{0}]x^{r}=0 \end{align*}

Since xr0x^{r}\ne0, it is r2(a11)r+a0=0r^{2}-(a_{1}-1)r+a_{0}=0. This is a simple quadratic equation whose solutions are

r=(a11)±(a11)24a02 r=\frac{-(a_{1}-1)\pm \sqrt{(a_{1}-1)^{2}-4a_{0}}}{2}

Let’s call the two solutions r1r_{1} and r2r_{2}, respectively. Depending on the condition of the two roots, the solution to the differential equation changes.

  • Case 1. r1r_{1} and r2r_{2} are distinct real numbers

    The two solutions are y1=xr1y_{1}=x^{r_{1}} and y2=xr2y_{2}=x^{r_{2}}. By checking the Wronskian,

    W[y1,y2]=(r2r1)xr1+r21 W[y_{1},y_{2}]=(r_{2}-r_{1})x^{r_{1}+r_{2}-1}

    Since r1r2r_{1}\ne r_{2}, it is proven that when x>0x>0, it must be W[x1,r2]0W[x^{1},r^{2}]\ne 0. Thus, the two solutions form a fundamental set of solutions, so the general solution is

    y=c1xr1+c2xr2,x>0 y=c_{1}x^{r_{1}}+c_{2}x^{r_{2}},\quad x>0

  • Case 2. r1r_{1} and r2r_{2} are the same real numbers

  • In this case, since y1y_{1} and y2y_{2}, a second solution must be found. The first solution is described as y1=xr1y_{1}=x^{r_{1}}, and let’s say the differential operator LL is as follows.

    L[y]=x2y+xy+y L[y]=x^{2}y^{\prime \prime}+xy^{\prime}+y

    Then

    L[xr]=[r2(a11)r+a0]xr=0 L[x^{r}]=[r^{2}-(a_{1}-1)r+a_{0}]x^{r}=0

    In this case, since the quadratic equation for rr has a repeated root, it can be expressed in a perfect square form as follows.

    L[xr]=(rr1)2xr=0 L[x^{r}]=(r-r_{1})^{2}x^{r}=0

    Differentiating 00 gives 00, so differentiating the left side by rr gives

    rL[xr]=0 \frac{ \partial }{ \partial r}L[x^{r}]=0

    And since the order of differentiation for xx and rr can be swapped without issue,

    rL[xr]=L[xrr]=L[xrlnx]=0 \frac{ \partial }{ \partial r }L[x^{r}]=L\left[ \frac{ \partial x^{r}}{ \partial r }\right]=L[x^{r}\ln x]=0

    Thus, y2=xr1lnxy_{2}=x^{r_{1}}\ln x is the second solution. Calculating the Wronskian gives W[xr1,x1lnx]=x2r110W[x^{r_{1}},x^{1}\ln x]=x^{2r_{1}-1}\ne 0, so the two solutions form a fundamental set. Therefore, the general solution is

    y=c1xr1+c2xr1lnx,x>0 y=c_{1}x^{r_{1}}+c_{2}x^{r_{1}}\ln x,\quad x>0

  • Case 3. r1r_{1} and r2r_{2} are distinct complex numbers

    Let’s call them r1=λ+iμr_{1}=\lambda+i\mu and r2=λiμr_{2}=\lambda -i\mu. Then the two solutions are

    y1=xλ+iμ,y2=xλiμ y_{1}=x^{\lambda+i\mu},\quad y_{2}=x^{\lambda-i\mu}

    Therefore, the fundamental solution is

    y=c1xλ+iμ+c2xλiμ y=c_{1}x^{\lambda+i\mu}+c_{2}x^{\lambda-i\mu}

    However, in the case of complex functions, it’s usual to express them in trigonometric functions. By Euler’s formula, the following equation holds:

    xλ+iμ=xλxiμ=xλelnxiμ= xλeiμlnx= xλ[cos(μlnx)+isin(μlnx)],x>0 \begin{align*} x^{\lambda +i \mu}=x^{\lambda}x^{i\mu}=x^{\lambda} e^{\ln x^{i\mu}} =&\ x^{\lambda}e^{i\mu \ln x} \\ =&\ x^{\lambda}[\cos(\mu \ln x)+i\sin (\mu \ln x) ] ,\quad x>0 \end{align*}

    Therefore, the general solution for complex constants c1c_{1} and c2c_{2} is expressed as

    y=c1xλcos(μlnx)+c2xλsin(μlnx),x>0 y=c_{1}x^{\lambda}\cos (\mu \ln x)+c_{2}x^{\lambda}\sin(\mu \ln x),\quad x>0

    Since cos\cos and sin\sin are independent, it is understood that the Wronskian will definitely not be 00 without calculating it. However, if one calculates,

    $$ W[x^{\lambda}\cos (\mu \ln x),x^{\lambda}\sin(\mu \ln x)]=\mu x^{2\lambda-1}\ne 0
    $$