Solving ODE: Get Help with y''(x)+(μ^2*c(x)+k^2)y=0

  • Context: Graduate 
  • Thread starter Thread starter gleonard
  • Start date Start date
  • Tags Tags
    Ode
Click For Summary

Discussion Overview

The discussion revolves around solving the ordinary differential equation (ODE) given by y''(x)+(μ²*c(x)+k²)y=0, where c(x) is defined as A + B*tanh(ρx). Participants explore methods for approaching the solution, including the use of hypergeometric functions and numerical methods.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant expresses uncertainty about how to begin solving the ODE and seeks guidance.
  • Another participant notes that there is no general method for solving y'' + f(x)*y = 0 when f(x) is complex, indicating that solutions may require complicated algorithms and cannot typically be solved by hand.
  • It is mentioned that the general solution, when constants are unspecified, is lengthy and involves hypergeometric functions, which may be computed using software like Maple.
  • A participant acknowledges the need to use hypergeometric solutions but admits to a lack of familiarity with their application.
  • There is a suggestion that numerical solutions might be preferable, especially if the hypergeometric functions become complicated, depending on the user's goals regarding the solution.
  • A later reply discusses simplifying the equation through non-dimensionalization and provides a transformation to make it more manageable for computational tools like Mathematica.
  • Another participant suggests that while a closed-form solution can be derived using hypergeometric functions, it may not offer significant advantages over numerical methods.
  • There is a recommendation to transform the equation into the form of the hypergeometric equation to facilitate finding solutions.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best approach to solving the ODE, with multiple competing views on the use of hypergeometric functions versus numerical methods remaining evident throughout the discussion.

Contextual Notes

Participants mention the complexity of the solution depending on the specific values of the constants involved and the potential for lengthy expressions when using hypergeometric functions. The discussion also highlights the importance of the choice of method based on the desired outcomes, such as analytical versus numerical solutions.

gleonard
Messages
2
Reaction score
0
I have no idea how to start solving this ODE:

y''(x)+(μ^{2}*c(x)+k^{2})y=0

Where c(x)=A+Btanh(ρx) with constant A,B,ρ,μ,k

Could anyone give me a nudge in the right direction?

Cheers.
 
Last edited:
Physics news on Phys.org
There is not a general method for finding the solution (if it exists) to y'' + f(x)*y = 0, so if f(x) is complicated you usually need complicated algorithms and the solution cannot be found by hand anymore.

When the constants remain unspecified, the solution is a page long hypergeometric solution (computed with Maple). For certain specific values for the constants this could perhaps be reduced to a more compact solution, but the general solution is not simple.
 
bigfooted said:
There is not a general method for finding the solution (if it exists) to y'' + f(x)*y = 0, so if f(x) is complicated you usually need complicated algorithms and the solution cannot be found by hand anymore.

When the constants remain unspecified, the solution is a page long hypergeometric solution (computed with Maple). For certain specific values for the constants this could perhaps be reduced to a more compact solution, but the general solution is not simple.

Thanks for your reply bigfooted,

I have been told I need to use hypergeometric solutions, (sorry for not mentioning this), but I have never seen them before. I have found the basic form of a hypergeometric series but I don't know how to apply this.
 
Do you require the solution to be analytic?

Edit: scratch that. I think you answered that in your reply
 
gleonard said:
Thanks for your reply bigfooted,

I have been told I need to use hypergeometric solutions, (sorry for not mentioning this), but I have never seen them before. I have found the basic form of a hypergeometric series but I don't know how to apply this.

If you have to deal with hypergeometric functions, it may be better just to solve your equation numerically. There are some computer packages that calculate hypergeometic functions, but if you end up having to deal with something more complicated than the standard hypergeometric function ##_2 F_1(a,b;c;z)##, it's probably not worth it to try and use them. I guess it depends on what you want to do with the solution. Are you interested in just what the solution looks like for certain parameter choices, or do you want to know how it changes with your parameters (e.g., the asymptotic properties of the solution)?

Your equation can be simplified by writing it in a non-dimensionalized form,
$$y''(t) + (\tilde{A} + \tilde{B}\tanh(t))y(t) = 0,$$
by making the change of variables ##t = \rho x## and writing ##\tilde{A} = (\mu^2 A + k^2)/\rho^2## and ##\tilde{B} = \mu^2 B/\rho^2##. This is simpler for programs like Mathematica to handle.

Using Mathematica, for arbitrary ##\tilde{A}## and ##\tilde{B}##, shows that the solution is indeed in terms of ##_2 F_1##, so you could write down the closed form solution and use a routine for computing ##_2F_1##, but it might not give you much advantage over just solving the equation numerically. You may be able to extract some asymptotic properties from the analytic solution, however.

If your goal is to demonstrate the solution by hand yourself, then you should probably try to make a change of variables to help cast the non-dimensionalized equation into the form of the hypergeometric equation,

$$z(z-1)\frac{d^2 w}{dz^2}+[c-(a+b+1)z]\frac{dw}{dz} - a b w = 0.$$

See wikipedia article for the set of possible solutions in terms of ##_2 F_1## for this equation.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 0 ·
Replies
0
Views
4K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 52 ·
2
Replies
52
Views
9K
  • · Replies 6 ·
Replies
6
Views
2K