The general solution of this equation has the form
(2.33)
where and are coefficients determined from the boundary conditions, and the weight ensuring the orthogonality of the eigenfunctions is .
Let us substitute the general solution into the boundary conditions (2.27) and obtain
(2.34)
Clearly, from the first equation and the solution makes sense only when , which is possible only when
(2.35)
Zero and negative values of are no good: for we have , and — identically zero, which is not an eigenfunction; to negative corresponds the same eigenvalue (since ), and is linearly dependent with the solution for positive and gives no new contribution. Therefore .
Thus, the eigenvalues and eigenfunctions have the form
(2.36)
where is an arbitrary constant factor: the eigenfunction is defined up to it. Let us set — this factor is absorbed into the expansion coefficients anyway and , as in the general solution.
To expand functions into a Fourier series in we need to compute the norm ; the weight for Cartesian coordinates is .
(2.37)
Now let us substitute the solution into the boundary conditions (2.31) and obtain
(2.38)
Clearly, from the first equation and the solution makes sense only when
(2.39)
Here, unlike the Dirichlet problem, the mode survives: for the eigenfunction — a nonzero constant, that is, a fully fledged eigenfunction (the constant mode). Hence the indexing starts from zero.
Thus, the eigenvalues and eigenfunctions have the form
(2.40)
where is an arbitrary constant factor: the eigenfunction is defined up to it. Let us set — this factor is absorbed into the expansion coefficients anyway and , as in the general solution.
We compute the norm of the eigenfunctions in the same way as in the sine case, reducing the power of the cosine by the half-angle formula. For
(2.41)
since the integral of the cosine over an integer number of half-periods equals zero: . The special case (for the eigenfunction ) we compute separately
(2.42)
The final solution of the one-dimensional Dirichlet boundary value problem with inhomogeneous boundary conditions takes the form
(2.43)
In the Neumann problem, unlike the Dirichlet one, the spectrum contains the zero mode (, ) — the case , which in the general solution (2.18) was set aside for separate consideration; it is precisely what gives the first (non-decaying) term. The final solution of the one-dimensional Neumann boundary value problem with inhomogeneous boundary conditions takes the form
(2.44)
To obtain the stationary solutions, we let time tend to infinity in the solutions found (), as was done for the general case in (2.18). The term with the initial condition vanishes, since ; the sources and boundary conditions stop depending on time, and the time integral for gives the factor :
The stationary solution of the one-dimensional Dirichlet boundary value problem takes the form
(2.45)
The stationary solution of the one-dimensional Neumann boundary value problem is not so simple. Unlike the Dirichlet problem, the purely Neumann stationary problem is not always solvable. The reduced function satisfies the homogeneous Neumann conditions and the stationary equation . Let us integrate it over the interval :
The boundary term vanished due to the homogeneous Neumann conditions, and what remains is the solvability condition (2.22): — the total reduced source must vanish (otherwise heat accumulates, the mean grows without bound and there is no steady state). When this condition holds, the solution is defined only up to an arbitrary additive constant : it corresponds to the zero mode (, ), whose amplitude is not fixed by the stationary equation. With this caveat the solution takes the form