I worked out this solution to this basic PDE Fourier series convergence problem, but I suspect the result is "too easy to be correct," because all the answers point to no restriction on either $m$ and $b$:
Given this piecewise function: $$f(x) = \begin{cases} e^x, &-1 \leq x \leq 0,\\ mx + b, &0 \leq x \leq 1. \end{cases}$$ Without computing out any Fourier coefficients, find out the followings:
(a) for waht values of $m$ and $b$, if there is any, will the full Fourier series of $f(x)$ converge pointwise on $-1 \leq x \leq 1$?
(b) Same as the above, for converge uniformly?
(c) For converge in the $L^2$ sense?
Here are my answers on each of them:
(a) My text says that if $f(x)$ is piecewise smooth on an interval, then its Fourier series converges pointwise on the interval. Piecewise smooth means both $f(x)$ and $f'(x)$ are piecewise continuous. Here, it is easy to see that $f(x)$ and $f'(x)$ are piecewise continuous for all real $m$'s and $b$'s. Thus there is no restriction on $m$ and $b$.
So far so good!
(b) My text also says uniform convergence demands more stringent conditions: $f(x)$ has to have a continuous periodic extension, besides that $f'(x)$ has to be piecewise continuous on the interval. Here, I wrote that $f(x) = e^x$ has a continuous even function in $e^{-x}$ and $f(x) = mx + b$ also has continuous shift function, thus there is no restriction again for both $m, b$ in part (b).
Now I am beginning to doubt myself: Did I miss anything here?
(c) Finally my text says that $f(x)$ converges in the $L^2$ sense if and only if $\int_{-l}^{l} | f(x) |^2 dx < \infty$. From here, we can see that both $\int_{-1}^{1} | e^x |^2 dx$ and $\int_{-1}^{1} | mx + b |^2 dx$ are finite. Thus again there is no restriction on both $m$ and $b$.
Now I am beginning to seriously second-guess myself: Is anything amiss here too?
Thank you for your time and help.
You are right about $L^2$ convergence. For pointwise convergence, you need $b=1$ otherwise is not continuos in $0\ (\diamond)$. For uniform convergence, you need to make sure that the function $f$ can be made periodically continuos; that is, you have to connect the function at its extremes. Since $f(1) = m + b = m + 1$, and $f(-1) = e^{-1}$, you need $e^{-1} = m + 1 \implies m = e^{-1} - 1$
$\ \ \ \ \ (\diamond)$ In general, if your function is piecewise smooth, then the fourier series converges to $$\frac{f(x_0^+) + f(x_0^-)}2$$
$\ \ \ \ \ \ \ $So if you have a piecewise smooth function and you want pointwise convergence everywhere,$\ \ \ \ \ \ \ $ you need to make your function continuos