In this chapter we will construct the general solution of the heat conduction boundary value problem by the method of separation of variables (the Fourier method). But first, a few introductory remarks. We want to solve the inhomogeneous equation (1.8) with the initial condition and inhomogeneous boundary conditions (1.13) and (1.14). Solving it head-on can be very difficult, so first we have to get rid of the inhomogeneity of the boundary conditions.
Let us represent the solution as the sum , where is the solution of the problem with homogeneous boundary conditions, and is a function that will absorb the inhomogeneity of the boundary conditions. Let us substitute the sum into equation (1.8) and obtain
The form of the function we will determine later, when considering specific problems; for now let us note that it can be chosen as a polynomial defined up to coefficients, which are found from the boundary conditions. The new heat source density function has the form
The coefficients for the Dirichlet boundary conditions are found by substituting the solution into the boundary conditions (1.13). The solution satisfies the homogeneous Dirichlet condition, that is, vanishes on the boundary , whence
Similarly, the coefficients for the Neumann boundary conditions are found by substituting the solution into the boundary conditions (1.14). The solution satisfies the homogeneous Neumann condition, that is, its normal derivative on the boundary vanishes, whence
Let us not forget the initial condition, which does not compute any coefficients but is simply rewritten as
After computing the coefficients of the polynomial function the inhomogeneous boundary value problem with inhomogeneous boundary conditions reduces to an inhomogeneous boundary value problem with homogeneous boundary conditions. Further, to simplify the notation somewhat, we will not write the hat over the solution , the initial condition and the source function , denoting them simply , and .
Now we have to get rid of the inhomogeneity in the equation itself, but unlike the procedure for removing the inhomogeneity in the boundary conditions, here we go from the other side: first we solve the homogeneous equation, and then, based on it, we explain how to solve the inhomogeneous one. To see that such a transition is possible, we will rely on Steklov's expansion theorem, since it is precisely what gives the basis in which everything is subsequently expanded. Having solved the homogeneous problem, we obtain the set of its eigenfunctions. Steklov's theorem states that this system is complete: every function with a continuous first and piecewise continuous second derivative, satisfying the same homogeneous boundary conditions, for example (1.16) or (1.17), expands into a uniformly convergent series in the eigenfunctions of the homogeneous problem (1.9). This means that both the sought solution of the inhomogeneous problem and the source function can be represented in the same basis: projecting the inhomogeneous equation onto each eigenfunction and using their orthogonality, we reduce it to independent ordinary equations for the coefficients — that is, we build the solution of the inhomogeneous problem on the solution of the homogeneous one.
We use the method of separation of variables (the Fourier method). We will look for the solution of equation (1.9) as a sum of products , where each term is a product of a function of geometry only and a function of time only. The equation is linear and homogeneous, so it suffices to require that each term satisfy it separately; let us consider one product and substitute it into equation (1.9) — we obtain
which after division by leads to
where is a constant. Indeed, the left-hand side of the equality depends only on time, while the right-hand side depends only on the geometry; a function of time can coincide with a function of geometry at all moments of time and at all points of the domain only when both are equal to one and the same constant — this is the essence of the separation of variables. The minus sign in front of it is chosen so that the solution converges, which is easy to verify by examining the equation for time. The specific values of this constant we will determine later — from the equation for the geometry.
Let us write the equation for time and its solution
where is a constant.
The equation for the geometry has the form
This is the homogeneous Helmholtz equation. To solve it, boundary conditions must be specified. Let us substitute the product into the boundary conditions (1.16) and (1.17) respectively and obtain for the Dirichlet conditions
and for the Neumann conditions
Clearly, the case when is of no interest, since we are constructing conditions for the geometry, not for time. Equation (2.8) with the boundary conditions (2.9) and (2.10) is called the Sturm–Liouville problem. It is well studied, and below we will use its known properties without proof (they can be found in the literature). This problem has not one but a countable set of eigenvalues, and each of them corresponds to its own eigenfunction; eigenfunctions corresponding to different eigenvalues are mutually orthogonal and form a complete system.
So, the Sturm–Liouville problem yielded a countable set of eigenvalues and the corresponding eigenfunctions . For the mode with index the equation for time gives the factor , so that is a particular solution of equation (1.9). Returning to the sum we started with and using linearity, we obtain the general solution
where are arbitrary constants that have absorbed the constant factors of both parts of each term. The completeness of the system of eigenfunctions (Steklov's theorem) guarantees that any admissible solution can be represented by such a sum.
Now we have to determine the coefficients ; to do so, note that the solution must satisfy the initial condition (2.4), and hence
It is easy to see that the coefficients are determined uniquely thanks to the mutual orthogonality of the eigenfunctions — as the expansion coefficients of the function into a Fourier series in the eigenfunctions — by the general formula (A.4) from the appendix “Fourier series”
where is the squared norm of the eigenfunction, defined by formula (A.5).
Thus, we have obtained the solution of equation (1.9) with the initial condition and homogeneous boundary conditions
Now we can proceed to solving the inhomogeneous equation, which, as we said, in accordance with Steklov's expansion theorem, can be built on the solution of the homogeneous problem. To do so, we expand the heat source density function into a Fourier series in the eigenfunctions
where are the expansion coefficients of the function into a Fourier series in the eigenfunctions
We will look for the solution of the inhomogeneous equation in the same form — as a sum of products . Let us substitute it together with the expansion (2.14) into the inhomogeneous equation (1.8); since , we obtain
The geometric part remains the same — these are the same eigenfunctions . Equating the coefficients of each (this is legitimate due to orthogonality), we see that only the equation for time has changed — it has acquired the term :
The solution of this equation has the form
where are arbitrary coefficients equal to the coefficients determined in the solution of the homogeneous problem, since they are computed from the initial condition, and at the integral equals zero.
The solution of the inhomogeneous equation with homogeneous boundary conditions takes the form
One could also obtain the solution of the inhomogeneous equation with inhomogeneous boundary conditions, but this is rather cumbersome — we will construct the final solution later using specific examples.
When solving stationary equations — and the electromagnetic field is generally stationary unless relativistic effects are considered — we need to obtain the general solution without time, and for that we take the limit in the solution of the nonstationary equation. Note that the first term of the solution vanishes immediately, since the exponential tends to zero and the initial conditions disappear from the solution, which is more than obvious. The heat source density function stops depending on time a priori. It only remains to clarify the integral
Let us write the general solution for the stationary equation
And what if ? In fact this case is possible, but it is better considered separately for each equation, which is what we will do in the corresponding chapters.