Improper boundary in non-linear ODE (pseudospectral methods)

Click For Summary

Discussion Overview

The discussion revolves around the challenges of applying pseudospectral methods to non-linear ordinary differential equations (ODEs) with improper boundary conditions, particularly at infinity. Participants explore various approaches to handle boundary conditions that lead to infinite values and the implications for the solution representation.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant describes expanding the solution using Chebyshev polynomials and poses a problem regarding boundary conditions that yield infinity.
  • Another participant suggests mapping the domain from [0, ∞) to [-1, 1) using a hyperbolic tangent transformation, allowing for bounded functions and avoiding issues with collocation points at infinity.
  • A later reply reiterates the mapping suggestion but notes that derivatives evaluated at infinity would still yield zero, raising concerns about finite evaluations.
  • Another participant proposes that if a function has a non-zero derivative at infinity, it cannot be finite there, suggesting an alternative formulation to satisfy boundary conditions without needing a collocation point at z = 1.
  • One participant considers modifying the solution representation to include an additional term, which could simplify the boundary condition at infinity but expresses uncertainty about its compatibility with collocation methods.

Areas of Agreement / Disagreement

Participants express differing views on how to handle boundary conditions at infinity, with no consensus reached on the best approach. Multiple competing ideas are presented, and the discussion remains unresolved.

Contextual Notes

Limitations include the dependence on the chosen mapping and the unresolved implications of the proposed modifications to the solution representation on the properties of collocation methods.

Leonardo Machado
Messages
56
Reaction score
2
TL;DR
I am not being able to determine the behavior of my solutions for improper boundaries if the behavior of the solution is expected to diverge.
Hello,

I am trying to compute some non-linear equations with pseudospectral/collocation methods. Basically I am expanding the solution as

$$
y(x)=\sum_{n=0}^{N-1} a_n T_n(x),
$$

Being the basis an Chebyshev polynomial with the mapping x in [0,inf].

Then we put this into a general differential equation

$$
Ly(x)=f(x,y),
$$

which leads to

$$
\sum_{n=0}^{N-1} L T_n(x) a_n = f(x,y).
$$

This function is evaluated at the collocation points associated with the Chebyshev polynomials as usual, leading to N-1 non-linear equations. Also, there is also equations for the boundaries, i. e.,

$$
\sum_{n=0}^{N-1}a_n T_n(0)=A,
$$
$$
\sum_{n=0}^{N-1}a_n T_n(inf)=B.
$$

My problem is here. How can I treat a boundary condition which leads to infinity somehow? For example$$
\sum_{n=0}^{N-1}a_n \frac{dT_n(inf)}{dx}=1,
$$

or even,

$$
\sum_{n=0}^{N-1}a_n T_n(inf)=inf.
$$
 
Physics news on Phys.org
I would suggest that you map [0, \infty) to [-1,1) by x \mapsto z = 2 \tanh(x) - 1 and use Chebyshev collocation on [-1,1] as normal, rewriting your operator L in terms of z using <br /> \frac{d}{dx} = \frac{dz}{dx}\frac{d}{dz} = 2\,\mathrm{sech}^{2}(x) \frac{d}{dz} <br /> = \left(\tfrac32 - z - \tfrac12 z^2\right)\frac{d}{dz} This has the advantage that you are working with functions which are bounded on a finite domain, so your solution will be also. It also avoids having most of your collocation points in [0,1) and the other at infinity.

You then have <br /> \begin{align*}<br /> f(x) &amp;= \sum_n a_n T_n(2 \tanh(x) - 1) \\<br /> f(\infty) &amp;= \sum_n a_n T_n(1)<br /> \end{align*}<br />
 
  • Like
Likes   Reactions: Leonardo Machado
pasmith said:
I would suggest that you map [0, \infty) to [-1,1) by x \mapsto z = 2 \tanh(x) - 1 and use Chebyshev collocation on [-1,1] as normal, rewriting your operator L in terms of z using <br /> \frac{d}{dx} = \frac{dz}{dx}\frac{d}{dz} = 2\,\mathrm{sech}^{2}(x) \frac{d}{dz}<br /> = \left(\tfrac32 - z - \tfrac12 z^2\right)\frac{d}{dz} This has the advantage that you are working with functions which are bounded on a finite domain, so your solution will be also. It also avoids having most of your collocation points in [0,1) and the other at infinity.

You then have <br /> \begin{align*}<br /> f(x) &amp;= \sum_n a_n T_n(2 \tanh(x) - 1) \\<br /> f(\infty) &amp;= \sum_n a_n T_n(1)<br /> \end{align*}<br />

The problem is that the derivatives evaluated at infinity would still be zero aways, becase sech(infinity)=0. I mean,

$$
\sum_n a_n \frac{dT_n(x)}{dx}=\sum_n a_n 2 sech(x) \frac{dT^*_n(z)}{dz}
$$

evaluated at infinity still cannot be a finite number.
 
I think if a function has a non-zero derivative at infinity then it's not going to be finite there.

Perhaps you could set f(x) = f&#039;(\infty)x + g(x) with g&#039;(\infty) = 0 and work with g instead. The boundary condition at x = \infty is then satisfied automatically. So in this case you don't need a collocation point at z = 1.
 
  • Like
Likes   Reactions: Leonardo Machado
pasmith said:
I think if a function has a non-zero derivative at infinity then it's not going to be finite there.
Yes. Unfortunately this is part of this problem I am tr

pasmith said:
Perhaps you could set f(x) = f&#039;(\infty)x + g(x) with g&#039;(\infty) = 0 and work with g instead. The boundary condition at x = \infty is then satisfied automatically. So in this case you don't need a collocation point at z = 1.

I was thinking about expanding the solution, just like you said, but with

$$
y(x)=u(x)+r= \sum_n a_n T_n(x) + r.
$$

This way of writting turns the condition

$$
\frac{dy(infinity)}{dx}=1,
$$

into

$$
\frac{du(infinity)}{dx}=0,
$$

which is easily solved. But I am not sure if it will have all the good properties of collocation methods. It is something that I must implement frist to judge.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
679
  • · Replies 3 ·
Replies
3
Views
2K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 0 ·
Replies
0
Views
278
  • · Replies 3 ·
Replies
3
Views
2K