Solving $(\ln(x)-1)y'' - \frac{1}{x}y' + \frac{1}{x^2}y = \frac{(\ln(x) - 1)^2}{x}$

362 Views Asked by At

On my exam I had to solve the following differential equation.

\begin{equation} (\ln(x)-1)y'' - \frac{1}{x}y' + \frac{1}{x^2}y = \frac{(\ln(x) - 1)^2}{x^2} \end{equation}

Which is a differential equation of the form: \begin{equation} y'' + a(x)y' + b(x)y = R(x) \end{equation}

The only method we've seen to solve this kind of differential equations is:

If the differential equation is of the form:

\begin{equation} y'' + a(x)y' + b(x)y = 0 \end{equation}

First find a solution of the characteristic equation, being $\varphi_1$. Then:

\begin{equation} \varphi_2(x) = \varphi_1(x)\int\frac{dx}{A(x)(\varphi_1(x))^2} \end{equation}

With $A(x) = e^{\int a(x) dx}$

Then the homogenous solution is given by:

\begin{equation} y(x) = c_1\varphi_1(x) + c_2\varphi_2(x) \end{equation}

The first problem is that this doesn't satisfy the requirements for this method since the differential equation is not homogenous, but since this is the only fitting method, I'd still try to use it. My guess would be to start with the characteristic equation which gives:

\begin{equation} (\ln(x)-1)x^2 - 1 + \frac{1}{x^2}y = 0 \end{equation}

or

\begin{equation} x^2 - \frac{1}{(\ln(x)-1)} + \frac{1}{x^2(\ln(x)-1)} = 0 \end{equation}

but i wouldn't even know how to start solving this equation to find the roots of the equation. Does anyone have an idea as to how to tackle this problem.

Note the only other ways of solving linear differential equations that we have seen are ways to solve first order differential equation or ways to solve second order differential equations in the form:

\begin{equation} y'' + py' + qy = R(x)\;\;\;\text{with}\;\; p,q\in\mathbb{R} \end{equation}

3

There are 3 best solutions below

0
On BEST ANSWER

Replace $$\begin{align}z&=\ln x -1\\ w(z)&=y(x)\text{.}\end{align}$$ Then the differential equation is $$z w'' -(z+1)w'+w=z^2\mathrm{e}^{z+1}\text{.}$$ The linear differential operator on the left side factors, so the solution to this equation can be found by solving in turn the first-order equations $$\begin{align} zv'-v&=z^2\mathrm{e}^{z+1} \\ w'-w&=v\text{.} \end{align}$$ Another form for these equations is $$\begin{align} \left(\tfrac{v}{z}\right)'&=\mathrm{e}^{z+1} \\ (\mathrm{e}^{-z}w)'&=\mathrm{e}^{-z}v\text{.} \end{align}$$

0
On

Hint: You can find by trial-and-error that the two homogeneous solutions are $ \varphi_1(x) = \ln x $ and $\varphi_2(x) = x$

Next, use variation of parameters to find a particular solution of the form

$$ y(x) = u_1(x)\varphi_1(x) + u_2(x)\varphi_2(x) $$

Then you have a system of equations

\begin{align} u_1'(x)\varphi_1(x) + u_2'(x)\varphi_2(x) &= 0 \\ u_1'(x)\varphi_1'(x) + u_2'(x)\varphi_2'(x) &= R(x) \end{align}

where $R(x) = \frac{\ln x -1}{x^2}$

Solve thiss for $u_1'(x)$ and $u_2'(x)$, then integrate.

0
On

$$(\ln(x)-1)\frac{d^2y}{dx^2} - \frac{1}{x}\frac{dy}{dx} + \frac{1}{x^2}y = \frac{(\ln(x) - 1)^2}{x^2}$$ Change of variable : $t=\ln(x)-1\quad;\quad x=e^{t+1}\quad;\quad dx=x\:dt$

$\frac{dy}{dx}=\frac{dy}{dt}\frac{dt}{dx}=\frac{1}{x}\frac{dy}{dt}$

$\frac{d^2y}{dx^2}=-\frac{1}{x^2}\frac{dy}{dt}+\frac{1}{x}\frac{d^2y}{dt^2}\frac{dt}{dx}= -\frac{1}{x^2}\frac{dy}{dt}+\frac{1}{x^2}\frac{d^2y}{dt^2}$

$$t(-\frac{1}{x^2}\frac{dy}{dt}+\frac{1}{x^2}\frac{d^2y}{dt^2}) -\frac{1}{x}(\frac{1}{x}\frac{dy}{dt})+ \frac{1}{x^2}y = \frac{t^2}{x^2}$$ $$t\frac{d^2y}{dt^2}-(t+1)\frac{dy}{dt}+y=t^2 $$ There is no difficulty to solve this second order linear ODE. Obvious solutions of the associated homogeneous ODE are $(t+1)$ and $e^t$. A particular solution of the ODE is $-t^2$ . This leads to : $$y= c_1e^t+c_2(t+1)-t^2$$ Finally :

$y(x)= c_1e^{\ln(x)-1}+c_2(\ln(x)-1+1)-(\ln(x)-1)^2$

$$y(x)= c_1e^{-1}x+c_2\ln(x)-(\ln(x)-1)^2$$ or on equivalent form : $$y(x)= C_1x+C_2\ln(x)-(\ln(x))^2-1$$