Inverse ODE, Green's Functions, and series solution

Click For Summary

Discussion Overview

The discussion revolves around the use of Green's functions and series solutions to solve a simple eigenvalue problem represented by a second-order ordinary differential equation (ODE) with specific boundary conditions. Participants explore the implications of selecting basis functions for the series solution, particularly regarding whether these functions need to satisfy the boundary conditions imposed by the problem.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant questions whether the basis functions ##\phi_i## must satisfy the boundary conditions of the ODE, suggesting that functions like ##\phi_i = x^i## could be used.
  • Another participant asserts that it is not necessary for the basis functions to obey the boundary conditions, emphasizing the need for completeness in the basis set for the solution.
  • A later reply presents a comparison between using basis functions that satisfy the boundary conditions and those that do not, noting that both approaches yield correct eigenvalues but with different convergence behaviors.
  • Some participants discuss the convergence of the series solution, indicating that while boundary conditions may not be satisfied initially, a sufficiently large number of basis functions will lead to a solution that does satisfy them.
  • One participant expresses a desire for literature supporting the claims made about convergence and boundary conditions.

Areas of Agreement / Disagreement

Participants express differing views on the necessity of basis functions satisfying boundary conditions. While some argue that it is not required, others suggest that it may enhance convergence. The discussion remains unresolved regarding the implications of using non-boundary-satisfying functions.

Contextual Notes

The discussion highlights the dependence on the completeness of the basis functions and the convergence properties of the series solution, but does not resolve the implications of using different types of basis functions on the overall solution.

member 428835
Hi PF!

One way to solve a simple eigenvalue problem like
$$y''(x)+\lambda y(x) = 0,\\
y(0)=y(1)=0$$
(I realize the solution's amplitude can be however large, but my point here is not to focus on that) is to solve the inverse problem. If we say ##A[u(x)] \equiv d^2_x u(x)## and ##B[u(x)] \equiv u(x)## then we also know that $$A^{-1}[u(x)] = \int_0^1Gu(x)\, dx,\\ B^{-1}[u(x)] = u(x)$$
where ##G## is the Green's function to the original ODE and BC.

One way to solve this problem is to let ##u(x) = \sum_{i=1}^N a_i\phi_i(x)## where ##\phi_i## is predetermined function of ##x## and ##a_i## is to be determined. This problem is know to be solved via

$$(\beta - \lambda \alpha)\textbf{ a} = \textbf{ 0},\\
\beta_{ij} =\left(B^{-1}[\phi_i],\phi_j\right) ,\\
\alpha_{ij}= \left(A^{-1}[\phi_i],\phi_j\right)$$
where ##(,)## denotes inner products and ##\textbf a## denotes the series coefficients ##a_i##. After solving this algebraic eigenvalue problem we use vector components of ##\textbf a## to approximate ##u## as a series (shown above).

My question is, since the Green's function ##G## uses the boundary conditions, is there a restriction on the selection of ##\phi_i## that requires it satisfy the boundary? In other words, can ##\phi_i = x^i## or must it be something like ##\phi_i=x^i(x-1)##?

Thanks!
 
Physics news on Phys.org
No, it is not necessary that your basis functions obey the boundary conditions. Your set of basis functions must of course be "complete" in the sense that your solution can be expressed in the form ##u(x)=\sum_{i=1}^N a_i \phi_i(x)##. However, from the numerical point of view it can be advantageous, since it can accelerate the convergence.
 
  • Like
Likes   Reactions: member 428835
eys_physics said:
No, it is not necessary that your basis functions obey the boundary conditions. Your set of basis functions must of course be "complete" in the sense that your solution can be expressed in the form ##u(x)=\sum_{i=1}^N a_i \phi_i(x)##. However, from the numerical point of view it can be advantageous, since it can accelerate the convergence.
This is what I thought, but are you sure? Attached is a plot where I have basis functions ##\phi_i = x^i##. In one case I've recombined each ##x^i## beforehand and defined ##\phi_i## to be these recombined polynomials such that they automatically satisfy the boundary conditions. Another case I simply use ##\phi_i##.

Notice recombining satisfies boundaries, but not recombining does not. Additionally, both techniques give the correct eigenvalues. It seems recombining is necessary; can you explain why not recombining won't work?
 

Attachments

If you impose the boundary conditions the function ##u(x)## will satisfy them for all ##n## (i.e. the number of basis functions). On the other hand with basis functions ##\phi_i(x)=x^i##, the boundary conditions will be satisfied by your converged solution, i.e. if ##n## is large enough. Therefore, if you continue to increase ##n##, you should approach a solution satisfying the boundary conditions. Furthermore, the convergence of the coefficients in the expansion is typically slower than for the eigenvalue.
 
  • Like
Likes   Reactions: member 428835
eys_physics said:
If you impose the boundary conditions the function ##u(x)## will satisfy them for all ##n## (i.e. the number of basis functions). On the other hand with basis functions ##\phi_i(x)=x^i##, the boundary conditions will be satisfied by your converged solution, i.e. if ##n## is large enough. Therefore, if you continue to increase ##n##, you should approach a solution satisfying the boundary conditions. Furthermore, the convergence of the coefficients in the expansion is typically slower than for the eigenvalue.
Thanks so much! I'm kind of disappointed I didn't think of trying this. That being said, do you have any literature on what you just said?

Again, thank you so much! You're a lifesaver :partytime:
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K