How do I solve a second-order linear ODE without prior knowledge?

  • Thread starter Thread starter Char. Limit
  • Start date Start date
  • Tags Tags
    Linear Ode
Click For Summary

Homework Help Overview

The original poster seeks assistance with solving a second-order linear ordinary differential equation (ODE) of the form x^2 y'' + x y' + y = 0. They express uncertainty about their ability to tackle this type of problem due to a lack of formal education in differential equations, having only completed Calculus II and some introductory material on first-order linear ODEs.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Some participants suggest trying a power series solution or a specific form of solution, y = xr. Others discuss transforming the equation into a form with constant coefficients by using substitutions, such as t = ln(x), and exploring the implications of these transformations.

Discussion Status

The discussion is ongoing, with various approaches being proposed. Participants are exploring different methods to simplify the original equation and discussing the nature of solutions for second-order linear ODEs. There is no explicit consensus on a single method, but several productive directions have been suggested.

Contextual Notes

Participants note that many linear differential equations do not have solutions expressible in elementary functions and caution against creating arbitrary equations without understanding their solvability. The original poster's lack of formal training in differential equations is also acknowledged as a constraint in their ability to engage with the problem.

Char. Limit
Gold Member
Messages
1,222
Reaction score
23

Homework Statement



So I made a random differential equation to try to solve, but I found out that I can't solve second-order differential equations with knowledge I've gleaned solely from PF. So I need your help to ask how to solve this. Note that I've never taken a differential equations class, but I have completed Calculus II, if that helps, and I've looked into ways to solve first order linear ODEs. So yeah.

The equation I made up to solve is...

[tex]x^2 y'' + x y' + y = 0[/tex]

Homework Equations



Nope, I don't even know how to do this. None here, then.

The Attempt at a Solution



I'm sorry, but I'm totally lost. I just need a method... is there a way to turn this equation first order, maybe?
 
Physics news on Phys.org
Try a power series solution.
 
Or even simpler, try a solution of the form y=xr.
 
vela said:
Or even simpler, try a solution of the form y=xr.

This, the equation is of the Euler type:

[tex] (a x + b)^{n} \, y^{(n)} + a_{1} \, (a x + b)^{n - 1} \, y^{(n - 1)} + \ldots + a_{n} \, y = 0[/tex]

If you perform the substitution of the independent variable:

[tex] a x + b \equiv \exp(t) \Rightarrow a \, dx = \exp(t) \, dt[/tex]

then the derivatives transform as:

[tex] \frac{d}{dx} = \frac{dt}{dx} \, \frac{d}{dt} = a \, \exp(-t) \frac{d}{dt}[/tex]

[tex] \frac{d^{2}}{dx^{2}} = a \, \exp(-t) \, \frac{d}{dt}\left(a \, \exp(-t) \, \frac{d}{dt} \right) = a^{2} \, exp(-2 t) \, \left(\frac{d^{2}}{dt^{2}} - \frac{d}{dt}\right)[/tex]

In general:
[tex] \frac{d^{n}}{dx^{n}} = a^{n} \, \exp(-n \, t) \, \sum_{k = 0}^{n - 1}{p^{(n)}_{k} \, \frac{d^{n - k}}{d t^{n - k}}}[/tex]

and one can find a recursive relation for the coefficients [itex]\{p^{(n)}_{k}\}[/itex] by differentiating one more time:

[tex] \frac{d^{n + 1}}{dx^{n + 1}} = \frac{d}{dx} \, \left( a^{n} \, \exp(-n \, t) \, \sum_{k = 0}^{n - 1}{p^{(n)}_{k} \, \frac{d^{n - k}}{d t^{n - k}}}\right)[/tex]
[tex] = a^{n + 1} \, \exp(-t) \, \frac{d}{dt} \, \left(\exp(-n \, t) \, \sum_{k = 0}^{n - 1}{p^{(n)}_{k} \, \frac{d^{n - k}}{d t^{n - k}}}\right)[/tex]
[tex] = a^{n + 1} \, \exp(-t) \, \left(\exp(-n \, t) \, \sum_{k = 0}^{n - 1}{p^{(n)}_{k} \, \frac{d^{n - k + 1}}{d t^{n - k + 1}}} - n \, \exp(-n \, t) \, \sum_{k = 0}^{n - 1}{p^{(n)}_{k} \, \frac{d^{n - k}}{d t^{n - k}}}\right)[/tex]
[tex] = a^{n + 1} \, \exp\left(-(n + 1) \, t\right) \, \left[ p^{(n)}_{0} \, \frac{d^{n + 1}}{dt^{n + 1}} + \sum_{k = 1}^{n - 1}{p^{(n)}_{k} \, \frac{d^{n + 1 - k}}{dt^{n + 1 - k}} - n \, \sum_{k = 1}^{n - 1}{p^{(n)}_{k - 1} \, \frac{d^{n + 1 - k}}{dt^{n + 1 - k}}}} - n \, p^{(n)}_{n - 1} \, \frac{d}{dt}\right][/tex]
Comparing this with the formula for [itex]n + 1[/itex]


[tex] \frac{d^{n + 1}}{dx^{n + 1}} = a^{n + 1} \, \exp\left(-(n + 1) \, t\right) \, \sum_{k = 0}^{n}{p^{(n + 1)}_{k} \, \frac{d^{n + 1 - k}}{d t^{n + 1- k}}}[/tex]

we see that the following recursion relations for the coefficients hold:

[tex] p^{(n + 1)}_{0} = p^{(n)}_{0}, \; p^{(1)}_{0} = 1 \Rightarrow p^{(n)}_{0} = 1[/tex]

[tex] p^{(n + 1)}_{k} = p^{(n)}_{k} - n \, p^{(n)}_{k - 1}, 1 \le k \le n - 1[/tex]

[tex] p^{(n + 1)}_{n} = - n \, p^{(n)}_{n - 1}, p^{(2)}_{1} = -1 \Rightarrow p^{(n)}_{n - 1} = (-1)^{n - 1} \, (n - 1)!, n \ge 2[/tex]

In any case, after performing all the substitutions and noticing that:
[tex] (a x + b)^{n} = \left[\exp(t)\right]^{n} = \exp(n \, t)[/tex]

the exponential factors cancel and you get an Linear Ordinary Differential Equation with constant coefficients.

Since the ansatz you put into solve these is of the form [itex]y = \exp(k t)[/itex] and in the above case [itex]a = 1, b = 0[/itex], we have [itex]y = \exp(k t) = \left[\exp(t)\right]^{k} = x^{k}[/itex] as a direct ansatz. However, this is not suitable for the cases of double or complex conjugate roots (for complex k) and the previous procedure should make it clear what the solution is in those cases.
 
Note, by the way, that most linear differential equations have solutions that cannot be written in terms of elementary functions but can be written in terms of power series, while solutions to almost all non-linear differential equations cannot be written in any simple way.

I would not recommend "making up random differential equations" and trying to solve them as good practice, unless you have some way of making up equations that you know have solutions of some particular form. You will NOT be able to solve most of them.

Because, as Dickfore said, this is an Euler type equation, you can transform it into an equation with constant coefficients. Let t= ln(x). Then, by the chain rule,
[tex]\frac{dy}{dx}= \frac{dy}{dt}\frac{dt}{dx}= \frac{1}{x}\frac{dy}{dt}[/tex]

[tex]\frac{d^2y}{dx^2}= \frac{d }{dx}\left(\frac{dy}{dx}\right)= \frac{d }{dx}\left(\frac{1}{x}\frac{dy}{dt}\right)[/tex]
[tex]= -\frac{1}{x^2}\frac{dy}{dt}+ \frac{1}{x}\left(\frac{1}{x}\frac{d^2y}{dt^2}\right)[/tex]
[tex]= \frac{1}{x^2}\left(\frac{d^2y}{dt^2}- \frac{dy}{dt}\right)[/tex]

Putting those into the differential equation reduces it to
[tex]\left(\frac{d^2y}{dt^2}- \frac{dy}{dt}\right)+ \frac{dy}{dt}+ y= 0[/tex]
[tex]\frac{d^2y}{dt^2}+ y= 0[/tex]

which is a linear, homogeneous, differential equation with constant coefficients. It has characteristic equation [itex]r^2+ 1= 0[/itex] which has solutions [itex]r= \pm i[/itex] and so the differential equation has general solution [itex]y(t)= C_1cos(t)+ C_2 sin(t)[/itex].

Since t= ln(x), the general solution to the original equation is
[tex]y(x)= C_1 cos(ln(x))+ C_2 sin(ln(x))[/tex]
 
Last edited by a moderator:
Another important thing about 2nd order LODEs is, if you put them in normal form:

[tex] y'' + P(x) \, y' + Q(x) \, y = 0[/tex]

then, by multiplying with the integrating factor:

[tex] \mu(x) = \exp\left(\int{P(x) \, dx}\right)[/tex]

you can get them in Sturm - Liouville form:

[tex] \frac{d}{dx}\left(\mu(x) \, \frac{dy}{dx}\right) + \mu(x) \, Q(x) \, y = 0[/tex]

For your equation [itex]P(x) = \frac{1}{x}[/itex] and [itex]Q(x) = \frac{1}{x^{2}}[/itex] and:

[tex] \mu(x) = \exp(\int{\frac{dx}{x}}) = \exp(\log{x}) = x[/tex]

so the Sturm - Liouville form of the equation is:

[tex] x \, \frac{d}{dx}\left(x \, \frac{dy}{dx}\right) + y = 0[/tex]

From here, "it should be obvious" that, if you make a substitution to the indpendent variable such that:

[tex] x \, \frac{d}{dx} = \frac{d}{dt} \Leftrightarrow dt = \frac{dx}{x} \Rightarrow t = \log{x}[/tex]

then your equation becomes:
[tex] \frac{d^{2}y}{dt^{2}} + y = 0[/tex]
 
@Dickfore
May be you know where I can read about "Sturm - Liouville form" and it's implications? :)
 
gomunkul51 said:
@Dickfore
May be you know where I can read about "Sturm - Liouville form" and it's implications? :)

It's a standard topic in any Mathematical Methods course. Also, s simple Google search reveals many resources.
 
Dickfore said:
It's a standard topic in any Mathematical Methods course. Also, s simple Google search reveals many resources.

I though may be you have a link to your course summaries or something, its hard to find academic material on the net, there is a lot of amateurs out there :)
 

Similar threads

Replies
4
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
9
Views
3K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K