1
$\begingroup$

Currently I'm working on this problem:

$$\frac{\partial u(x,t)}{\partial t}- \frac{\partial ^2u(x,t)}{\partial ^2x}=f(x,t)$$

$$u(0,t)=u(\pi,t)=0$$

$$u(x,0)=g(x)$$

I realize that because of my boundary conditions the solutions should be on this form:

$$u(x,t)=\sum_{k=1}^{\infty}u_k(t)\sin(kx)$$

But then they say, for the function f and g I can put them like:

$$f(x,t) =\sum_{k=1}^{\infty}f_k(t)\sin(kx)$$ $$g(x) =\sum_{k=1}^{\infty}g_k \sin(kx)$$

I don't understand the last part, why can I put $g$ and $f$ like that? Thanks in advance!

  • 0
    Sorry, fixed that2017-02-15
  • 1
    If $u$ is given by the sum, then you can differentiate the sum according to your PDE. Then substitute these differentiated sums back into the PDE. This will give you the form of $f$. Then, looking at the $u$ sum, evaluating at $t = 0$ gives you the form of $g$.2017-02-15
  • 0
    I think I understand what you mean, the constant k^2 that I will get from the differentation, will that be a problem?2017-02-15
  • 1
    No it won't, you'll just get that $f_{k}(t) = u_{k}'(t) - k^{2}$. Similarly, $g_{k} = u_{k}(0)$.2017-02-15
  • 0
    Note that any$^*$ function can be expanded in a Fourier sine series on $[0,\pi]$ - and that is all that's needed here. A function that depends on another variable like $t$ has such a series expansion for each value of $t$, thus the whole function can be written on that form with time-dependent coefficients.2017-02-15
  • 0
    Alright, and if I had another interval, let's say [0,2pi], what would I do in that case?2017-02-15
  • 0
    Then $u$ would be written as a Fourier series on that interval and then you would do the same for $f$ and $g$. Forget I said $[0,\pi]$, that was just because this is the case here, one can put up a Fourier series on any interval.2017-02-15

0 Answers 0