Calculating the coefficients A_n

  • MHB
  • Thread starter mathmari
  • Start date
  • Tags
    Coefficients
In summary, there is a problem involving $v_t=v_{xx}$ with certain boundary conditions and an initial condition. The solution can be expressed as a series involving $A_n$ coefficients and sine functions. The question is whether the Fourier series of $e^x-x$ can be used to calculate the coefficients $A_n$ even though there is a factor of $2n+1$ in the sine function. It is uncertain whether this will work since the exponential function is neither even nor odd and the operator defined by the DE and boundary conditions may not have a complete set of eigenfunctions. Upon plotting the sum and the function, it is evident that there may be a convergence issue near $x=0$.
  • #1
mathmari
Gold Member
MHB
5,049
7
Hey! :eek:

Having the problem:
$$v_t=v_{xx}, 0<x<1, t>0$$
$$v(0,t)=v_x(1,t)=0, t>0$$
$$v(x,0)=e^x-x$$

I have found that the solution of the problem is of the form
$$v(x,t)=\sum_{n=0}^{\infty}{A_n \sin{(\frac{(2n+1) \pi x}{2})} e^{-(\frac{(2n +1) \pi}{2})^2t}}$$

Using the boundary condition $v(x,0)=e^x-x$, we get the following:
$$\sum_{n=0}^{\infty}{A_n \sin{(\frac{(2n+1) \pi x}{2})}}=e^x-x$$

Can I calculate the coefficients $A_n$ by using the Fourier series of $e^x-x$ although there is 2n+1 in the $\sin$? (Wondering)
 
Physics news on Phys.org
  • #2
The "Fourier Trick" will still "work" formally.
\begin{align*}
\sum_{n=0}^{\infty}A_n \sin\left(\frac{(2n+1) \pi x}{2}\right)&=e^x-x \\
\sum_{n=0}^{\infty}A_n \sin\left(\frac{(2n+1) \pi x}{2}\right)\sin\left(\frac{(2m+1) \pi x}{2}\right)&=(e^x-x)\sin\left(\frac{(2m+1) \pi x}{2}\right) \\
\sum_{n=0}^{\infty}A_n \int_{0}^{1}\sin\left(\frac{(2n+1) \pi x}{2}\right)\sin\left(\frac{(2m+1) \pi x}{2}\right) dx&=\int_{0}^{1}(e^x-x)\sin\left(\frac{(2m+1) \pi x}{2}\right)dx=:C_m \\
\sum_{n=0}^{\infty}A_n \delta_{mn} \int_{0}^{1}\sin^{2}\left(\frac{(2m+1) \pi x}{2}\right) dx&=C_m \\
A_m \frac{1}{2} &=C_m \\
A_m&=2C_m,
\end{align*}
where
$$C_m=\frac{2\,\left( {\left( \pi + 2\,m\,\pi \right) }^3 +
\left( -4 + \left( -1 + e \right) \,
{\left( \pi + 2\,m\,\pi \right) }^2 \right) \,
\left( 2\,(-1)^m \right)
\right) }{{\left( \pi + 2\,m\,\pi \right) }^2\,
\left( 4 + {\left( \pi + 2\,m\,\pi \right) }^2 \right) }.$$
The only question is, will the $X_n$ functions be a complete set? That is, can you actually write
$$\sum_{n}A_n \sin\left(\frac{(2n+1)\pi x}{2}\right)=e^{x}-x?$$
The answer is not clear to me. The $x$ of $e^{x}-x$ can definitely be taken care of by the sin functions, but the exponential function is neither even nor odd. It's not clear to me how purely odd functions can sum to anything other than a purely odd function...

What it comes down to is this: does the operator defined by the DE and the boundary conditions have a complete set of eigenfunctions? I could be wrong, but I don't think the operator is self-adjoint, so there's no guarantee that the eigenfunctions are complete.

Using Mathematica to plot the sum up versus the function reveals that you have a serious convergence issue when $x\to 0$.
 

FAQ: Calculating the coefficients A_n

What is the purpose of calculating the coefficients A_n?

The coefficients A_n are used in mathematical equations to represent the relative magnitude of different terms. They can help us understand the behavior of a system or model, and can also be used to solve problems and make predictions.

How do you calculate the coefficients A_n?

The calculation of A_n involves using mathematical formulas and equations, depending on the specific problem at hand. In general, it involves finding the values of the unknown coefficients by solving a system of equations or applying other mathematical techniques such as integration or differentiation.

What are the applications of calculating the coefficients A_n?

The coefficients A_n have many applications in various fields of science and engineering. They are commonly used in physics, chemistry, and engineering to model and understand physical systems, as well as in statistics and data analysis to fit data to a mathematical model.

What factors can affect the values of the coefficients A_n?

The values of the coefficients A_n can be affected by various factors, such as the initial conditions of the system, the parameters of the system, and the specific mathematical model being used. Additionally, the accuracy of the data and the assumptions made in the calculation can also impact the values of the coefficients.

Are there any limitations to using calculated coefficients A_n?

While calculating the coefficients A_n can be a useful tool, it is important to note that they are based on mathematical models and assumptions, which may not perfectly reflect real-world situations. Therefore, the accuracy and applicability of the coefficients may be limited in certain cases, and it is important to carefully consider their use and interpretation.

Similar threads

Replies
7
Views
1K
Replies
1
Views
2K
Replies
6
Views
2K
Replies
4
Views
1K
Replies
2
Views
1K
Replies
2
Views
1K
Replies
1
Views
2K
Back
Top