Found a typo? Is this solution unclear? Let us know here. Please rate my easiness! It's quick and helps everyone guide their studies.
We are on a finite domain, so we anticipate that separation of variables is a reasonable approach to this problem. With this in mind, we attempt a solution of the form Upon applying the boundary conditions at , we get,
which implies for non-zero that we require, . Similarly at the other endpoint, , we conclude that . For the homogeneous initial condition on the derivative of ,
we get that for non-zero that . Recall that we can only analyze homogeneous boundary conditions with the technique of separation of variables because they imply conditions on and to be non-trivial. We will deal with the last condition at the end. Now, substitute our form for into the PDE, to get
with a constant. This constant comes from the fact that on the left side we have a function only containing the time variable and on the right side, a function only containing the space variable . Therefore, the only way a function of can equal a function of is if they are a constant. The choice of being negative is in general, arbitrary, but chosen for a reason we will see shortly. We now have the following ODE's to solve:
We will start by solving the equation for because it has the two boundary conditions required for a complete solution. We start by analyzing different possible values of .
Case 1:.
If then
has solution which after applying the conditions results in . Therefore is not permitted if we want to have non-trivial solutions.
Case 2:
If then
has solution which after applying the conditions results in . Therefore is not permitted if we want to have non-trivial solutions.
Case 3:
If then
has solution . Applying the condition at ,
and so we conclude that . At the other endpoint, ,
In order for this condition to be satisfied we require that or that with , an integer. We must start at because we already concluded that is invalid. Therefore, we conclude (ignoring the constant out front) that,
Before, we continue, note that had I taken instead of for the original constant, I would have done the same analysis and recovered the same function, only with being the requirement. We choose the constant to be from the start so that we have positive values of but this is really just a matter of style. Now for the other differential equation, knowing we have
which, recalling , has solution, . Applying the condition that we conclude that so that,
where we once again haven't included the constant out front of the solution. Finally, combining all this information we get that but this must hold for all and therefore, by the principle of superposition,
Now we know that and so we could apply the usual Fourier series orthogonality to get that,
which will work just fine. However, in this case, is special because it is one of the eigenfunctions (i.e. it is of the form, with ). Therefore, is orthogonal to every eigenfunction of the form except for when . Therefore, only the coefficient will be non-zero and is given by,
If you are unconvinced of how this works, try getting the other coefficients using the formula above and you will quickly see that they are zero! Therefore, we conclude that the solution to the PDE, is
|