4

I just put the following one-dimensional reaction-diffusion equation in Mathematica: $$u_t= u_{xx}+au$$ with $\Omega=(0,1)$ with Dirichlet boundary conditions.

When $a<9$, no matter the initial condition I choose, the solution decays to $0$:

(time interval=[0,20]) enter image description here But for $a>10$ the solution grows to infinity:

enter image description here However, when I choose exactly $a=\pi^2$, every smooth initial condition I tried seems to give rise to a constant solution, here's for example $u_0(x)=-x^2+x$: enter image description here It gives the same result for all functions I tried like $u_0(x)=-3x^2+3x$ or $u_0(x)=\sin(\pi x)$.

I tried to find analytically the steady states of $u_t= u_{xx}+\pi^2u$ and I found all the functions of the form $u_0(x)=B\sin(\pi x)$. But why a function like $u_0(x)=-x^2+x$ seems to be also a steady state in the simulation? Could it be that $u_0(x)=-x^2+x$ gives rise to a solution that converges immediately to a $B\sin(\pi x)$ function?

  • Have you tried this with test functions such that $u_0 (1) \neq u_0(0)$? – Mark Fischler Aug 14 '19 at 19:03
  • But the choice of initial condition $u_0$ should be consistent with boundary conditions. – David Lingard Aug 14 '19 at 19:05
  • 3
    Yes but the Dirichlet BC you have chosen also imposes $u(1,t)=u(0,t)$ which means you have effectively posed this as a heat problem on a circular rod of length $L=1$. There will be eigenfunctions when $\sqrt{a} = n\pi/L = n\pi$ and I ma guessing that the higher $n$ modes die with time faster that the $n=1$ "ground state." – Mark Fischler Aug 14 '19 at 19:14
  • 1
    That of course does not nail the answer, but I would guess that the $\pi^2$ feature goes away if you do DIrichlet with $u(1) \neq u(0)$. – Mark Fischler Aug 14 '19 at 19:16
  • One semantic objection is that this isn't the usual heat equation. One could interpret the extra term $au$ as some kind of temperature-dependent heating; alternatively, one can view this instead in the context of reaction-diffusion systems. – Semiclassical Aug 14 '19 at 22:28
  • @Semiclassical yes you are right, I corrected it. – David Lingard Aug 15 '19 at 07:52
  • @MarkFischler When I try initial functions that do not satisfy the boundary condition, the software tells me that "Boundary and initial conditions are inconsistent". – David Lingard Aug 15 '19 at 07:57
  • I Just tried with the function $u_0(x)=-\frac{8}{3}x^4+\frac{16}{3}x^3-\frac{11}{3}x^2+x$ which has a "M" like shape and found in the software that the solution converges to a function which has a "$\cap$" like shape. I don't know what is this function. Maybe I should post it as a new question. – David Lingard Aug 15 '19 at 09:42
  • @MarkFischler Doesn't a test function $u_0$ automatically satisfies $u_0(0)=u_0(1)=0$? – David Lingard Aug 15 '19 at 10:20

1 Answers1

4

An opening remark: The original PDE can actually be reduced to the heat equation by the substitution $u(x,t)=e^{-at} f(x,t)$. The observation that $a=\pi^2$ tends to produce $u(x,t)\to b\sin \pi x$ as $t\to \infty$ therefore amounts to the claim that $f(x,t)$ tends to behave like $e^{-\pi^2 t}\sin \pi x$ for large times. At one level, this is what we expect from the heat equation: If we fix the temperature at the endpoints of a rod to be $0$, then for large times the temperature in the rod will tend to zero as well.

However, this behavior cannot actually be true for all initial conditions. Returning to the original PDE, suppose $u(x,t)$ is some solution converging to $\sin \pi x$ as $t\to \infty$. Since both $u(x,t)$ and the steady state $\sin(\pi x)$ are solutions to a linear PDE, the function $u(x,t)-\sin(\pi x)$ is itself a solution to this same PDE. But this latter function converges to zero and so cannot display the desired convergence.

To understand these matters more systematically we analyze our PDE in terms of separation of variables, i.e, we look for solutions of the form $u(x,t)=X(x)T(t)$. This may be rearranged to obtain $$\frac{T'(t)}{T(t)} =\frac{X''(x)}{X(x)}+a=\lambda$$ where $\lambda$ is the separation constant. To obtain nonzero solutions satisfying the Dirichlet boundary conditions, one may check that we must choose $\lambda=a-n^2 \pi^2$ and thereby obtain $X_n(x)=\sin(n \pi x)$. The time-dependent parts are then $T_n(t)=e^{(-n^2 \pi^2+a)t}.$ Hence the separation of variables solutions may be written as $$u_n(x,t) = e^{(a-n^2 \pi^2) t}\sin(n\pi x).$$ By forming linear combinations of these solutions, we obtain the ansatz

$$u(x,t) = \sum_{n=1}^\infty c_n e^{(a-n^2 \pi^2) t}\sin(n\pi x).$$

With this expression, the large-$t$ behavior becomes clear. If $a<\pi^2$, then every separable solution converges to zero at large times and so $u(x,t)\to\infty$ in this limit. If $a\geq \pi^2$, then the first harmonic will grow arbitrarily large with time and so $u(x,t)\to \infty$ as $t\to\infty$. However, if $a=\pi^2$, then every solution except $n=1$ converges to zero and we have $u(x,t)\to c_1 \sin(\pi x)$. (This is essentially the point made by Mark Fischler in comments.) The only way around this is if $c_1=0$, in which case the solution instead starts with the second harmonic $e^{(a-4\pi^2)t}\sin(2\pi x)$. As such, when $c_1=0,$ $c_2\neq 0$, and $a=4\pi^2$ we again expect convergence to the appropriate steady state, i.e., $u(x,t)\to c_2 \sin(2\pi x)$. Similar statements apply for $a=n^2\pi^2$.

P.S.: The knowledgeable reader may note two points that I have not discussed here. (1) How do I know that every solution to the PDE may be written as a sum of separable solutions? (2) Assuming my solution is of this form, how do I compute the coefficients $c_n$? But the answers to both queries are standard textbook material in Fourier series and so I will not address either here.

Semiclassical
  • 18,592
  • Thank you for the great answer! So $\sin(\pi x)$ attracts only solutions whose initial data have a $c_1$ equals to $1$. That is $\sin(\pi x)$ is not a stable steady state. That makes sense since I have just read in a book that a stable steady state of equations of the form $u_t=\Delta u+f(u)$ is necessarily constant in space for well behaved functions $f$. That is the only stable steady states are the homogeneous ones. – David Lingard Aug 17 '19 at 06:41