General analytical solution of the boundary value problem

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 T0(M)T_0(M) 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 T(M,t)T(M, t) =T^(M,t)= \widehat{T}(M, t) +U(M,t)+ U(M, t), where T^(M,t)\widehat{T}(M, t) is the solution of the problem with homogeneous boundary conditions, and U(M,t)U(M, t) is a function that will absorb the inhomogeneity of the boundary conditions. Let us substitute the sum into equation (1.8) and obtain

T^(M,t)t\displaystyle \frac{\partial \widehat{T}(M, t)}{\partial t} =a2ΔT^(M,t)\displaystyle = a^2 \cdot \Delta \widehat{T}(M, t) +f(M,t)\displaystyle + f(M, t) +a2ΔU(M,t)\displaystyle + a^2 \cdot \Delta U(M, t) U(M,t)t.\displaystyle - \frac{\partial U(M, t)}{\partial t}.

The form of the function U(M,t)U(M, t) 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

f^(M,t)\displaystyle \widehat{f}(M, t) =f(M,t)\displaystyle = f(M, t) +a2ΔU(M,t)\displaystyle + a^2 \cdot \Delta U(M, t) U(M,t)t.\displaystyle - \frac{\partial U(M, t)}{\partial t}.
(2.1)

The coefficients U(M,t)U(M, t) for the Dirichlet boundary conditions are found by substituting the solution into the boundary conditions (1.13). The solution T^(M,t)\widehat{T}(M, t) satisfies the homogeneous Dirichlet condition, that is, vanishes on the boundary SS, whence

T^(M,t)\displaystyle \widehat{T}(M, t) +U(M,t)\displaystyle + U(M, t) =Φ(M,t),T^(M,t)\displaystyle = \Phi(M, t), \quad \widehat{T}(M, t) =0  \displaystyle = 0 \;   U(M,t)\displaystyle \Rightarrow\; U(M, t) =Φ(M,t),M\displaystyle = \Phi(M, t), \quad M S.\displaystyle \in S.
(2.2)

Similarly, the coefficients U(M,t)U(M, t) for the Neumann boundary conditions are found by substituting the solution into the boundary conditions (1.14). The solution T^(M,t)\widehat{T}(M, t) satisfies the homogeneous Neumann condition, that is, its normal derivative on the boundary SS vanishes, whence

T^(M,t)n\displaystyle \frac{\partial \widehat{T}(M, t)}{\partial \vec{n}} +U(M,t)n\displaystyle + \frac{\partial U(M, t)}{\partial \vec{n}} =Φ(M,t),T^(M,t)n\displaystyle = \Phi(M, t), \quad \frac{\partial \widehat{T}(M, t)}{\partial \vec{n}} =0  \displaystyle = 0 \;   U(M,t)n\displaystyle \Rightarrow\; \frac{\partial U(M, t)}{\partial \vec{n}} =Φ(M,t),M\displaystyle = \Phi(M, t), \quad M S.\displaystyle \in S.
(2.3)

Let us not forget the initial condition, which does not compute any coefficients but is simply rewritten as

T^(M,0)\displaystyle \widehat{T}(M, 0) =T0(M)\displaystyle = T_0(M) U(M,0).\displaystyle - U(M, 0).
(2.4)

After computing the coefficients of the polynomial function U(M,t)U(M, t) 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 T^(M,t)\widehat{T}(M, t), the initial condition T^(M,0)\widehat{T}(M, 0) and the source function f^(M,t)\widehat{f}(M, t), denoting them simply T(M,t)T(M, t), T(M,0)T(M, 0) and f(M,t)f(M, t).

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 T(M,t)T(M, t) =n=1Ψn(M)ϕn(t)= \sum_{n=1}^{\infty} \Psi_n(M) \cdot \phi_n(t), 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 Ψ(M)ϕ(t)\Psi(M) \cdot \phi(t) and substitute it into equation (1.9) — we obtain

Ψ(M)ϕ(t)t\displaystyle \Psi(M) \cdot \frac{\partial \phi(t)}{\partial t} =a2ΔΨ(M)ϕ(t),\displaystyle = a^2 \cdot \Delta \Psi(M) \cdot \phi(t),
(2.5)

which after division by Ψ(M)ϕ(t)\Psi(M) \cdot \phi(t) leads to

ϕ(t)t1a2ϕ(t)\displaystyle \frac{\partial \phi(t)}{\partial t} \cdot \frac{1}{a^2 \cdot \phi(t)} =γ2\displaystyle = - \gamma^2 =ΔΨ(M)1Ψ(M),\displaystyle = \Delta \Psi(M) \cdot \frac{1}{\Psi(M)},
(2.6)

where γ2\gamma^2 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

ϕ(t)t1a2ϕ(t)\displaystyle \frac{\partial \phi(t)}{\partial t} \cdot \frac{1}{a^2 \cdot \phi(t)} =γ2\displaystyle = - \gamma^2
ϕ(t)\displaystyle \phi(t) =Aea2γ2t,\displaystyle = A \cdot e^{- a^2 \cdot \gamma^2 \cdot t},
(2.7)

where AA is a constant.

The equation for the geometry has the form

ΔΨ(M)\displaystyle \Delta \Psi(M) +γ2Ψ(M)\displaystyle + \gamma^2 \cdot \Psi(M) =0.\displaystyle = 0.
(2.8)

This is the homogeneous Helmholtz equation. To solve it, boundary conditions must be specified. Let us substitute the product Ψ(M)ϕ(t)\Psi(M) \cdot \phi(t) into the boundary conditions (1.16) and (1.17) respectively and obtain for the Dirichlet conditions

Ψ(M)ϕ(t)\displaystyle \Psi(M) \cdot \phi(t) =0\displaystyle = 0 Ψ(M)\displaystyle \Rightarrow \Psi(M) =0,M\displaystyle = 0, \quad M S,\displaystyle \in S,
(2.9)

and for the Neumann conditions

Ψ(M)nϕ(t)\displaystyle \frac{\partial \Psi(M)}{\partial \vec{n}} \cdot \phi(t) =0\displaystyle = 0 Ψ(M)n\displaystyle \Rightarrow \frac{\partial \Psi(M)}{\partial \vec{n}} =0,M\displaystyle = 0, \quad M S.\displaystyle \in S.
(2.10)

Clearly, the case when ϕ(t)\phi(t) =0= 0 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 γn2\gamma_n^2 and the corresponding eigenfunctions Ψn(M)\Psi_n(M). For the mode with index nn the equation for time gives the factor ea2γn2te^{- a^2 \cdot \gamma_n^2 \cdot t}, so that Ψn(M)ea2γn2t\Psi_n(M) \cdot e^{- a^2 \cdot \gamma_n^2 \cdot t} is a particular solution of equation (1.9). Returning to the sum we started with and using linearity, we obtain the general solution

T(M,t)\displaystyle T(M, t) =n=1cnΨn(M)ea2γn2t,\displaystyle = \sum_{n=1}^{\infty} c_n \cdot \Psi_n(M) \cdot e^{- a^2 \cdot \gamma_n^2 \cdot t},
(2.11)

where cnc_n 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 cnc_n; to do so, note that the solution must satisfy the initial condition (2.4), and hence

T(M,0)\displaystyle T(M, 0) =n=1cnΨn(M)\displaystyle = \sum_{n=1}^{\infty} c_n \cdot \Psi_n(M) =T0(M).\displaystyle = T_0(M).

It is easy to see that the coefficients cnc_n are determined uniquely thanks to the mutual orthogonality of the eigenfunctions — as the expansion coefficients of the function T0(M)T_0(M) into a Fourier series in the eigenfunctions Ψn(M)\Psi_n(M) — by the general formula (A.4) from the appendix “Fourier series”

cn\displaystyle c_n =1Ψn(M)2Gρ(M)T0(M)Ψn(M)dG,\displaystyle = \frac{\displaystyle 1}{\displaystyle \|\Psi_n(M)\|^2} \cdot \iiint_G \rho(M) \cdot T_0(M) \cdot \Psi_n(M) \,dG,
(2.12)

where Ψn(M)2\|\Psi_n(M)\|^2 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 T0(M)T_0(M) and homogeneous boundary conditions

T(M,t)\displaystyle T(M, t) =n=1Ψn(M)Ψn(M)2ea2γn2tGρ(M)T0(M)Ψn(M)dG.\displaystyle = \sum_{n=1}^{\infty} \frac{\displaystyle \Psi_n(M)}{\displaystyle \|\Psi_n(M)\|^2} \cdot e^{- a^2 \cdot \gamma_n^2 \cdot t} \cdot \iiint_G \rho(M) \cdot T_0(M) \cdot \Psi_n(M) \,dG.
(2.13)

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 f(M,t)f(M, t) into a Fourier series in the eigenfunctions Ψn(M)\Psi_n(M)

f(M,t)\displaystyle f(M, t) =n=1μn(t)Ψn(M),\displaystyle = \sum_{n=1}^{\infty} \mu_n(t) \cdot \Psi_n(M),
(2.14)

where μn(t)\mu_n(t) are the expansion coefficients of the function f(M,t)f(M, t) into a Fourier series in the eigenfunctions Ψn(M)\Psi_n(M)

μn(t)\displaystyle \mu_n(t) =1Ψn(M)2Gρ(M)f(M,t)Ψn(M)dG.\displaystyle = \frac{\displaystyle 1}{\displaystyle \|\Psi_n(M)\|^2} \cdot \iiint_G \rho(M) \cdot f(M, t) \cdot \Psi_n(M) \,dG.

We will look for the solution of the inhomogeneous equation in the same form — as a sum of products n=1Ψn(M)ϕn(t)\sum_{n=1}^{\infty} \Psi_n(M) \cdot \phi_n(t). Let us substitute it together with the expansion (2.14) into the inhomogeneous equation (1.8); since ΔΨn(M)\Delta \Psi_n(M) =γn2Ψn(M)= - \gamma_n^2 \cdot \Psi_n(M), we obtain

n=1Ψn(M)ϕn(t)t\displaystyle \sum_{n=1}^{\infty} \Psi_n(M) \cdot \frac{\partial \phi_n(t)}{\partial t} =a2n=1γn2Ψn(M)ϕn(t)\displaystyle = - a^2 \cdot \sum_{n=1}^{\infty} \gamma_n^2 \cdot \Psi_n(M) \cdot \phi_n(t) +n=1μn(t)Ψn(M).\displaystyle + \sum_{n=1}^{\infty} \mu_n(t) \cdot \Psi_n(M).

The geometric part remains the same — these are the same eigenfunctions Ψn(M)\Psi_n(M). Equating the coefficients of each Ψn(M)\Psi_n(M) (this is legitimate due to orthogonality), we see that only the equation for time has changed — it has acquired the term μn(t)\mu_n(t):

ϕn(t)t\displaystyle \frac{\partial \phi_n(t)}{\partial t} =a2γn2ϕn(t)\displaystyle = - a^2 \cdot \gamma_n^2 \cdot \phi_n(t) +μn(t).\displaystyle + \mu_n(t).
(2.15)

The solution of this equation has the form

ϕn(t)\displaystyle \phi_n(t) =cnea2γn2t\displaystyle = c_n \cdot e^{- a^2 \cdot \gamma_n^2 \cdot t} +0tμn(τ)ea2γn2(tτ)dτ,\displaystyle + \int_0^t \mu_n(\tau) \cdot e^{- a^2 \cdot \gamma_n^2 \cdot (t - \tau)} \,d\tau,
(2.16)

where cnc_n 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 tt =0= 0 the integral equals zero.

The solution of the inhomogeneous equation with homogeneous boundary conditions takes the form

T(M,t)=n=1Ψn(M)Ψn(M)2ea2γn2tGρ(M)T0(M)Ψn(M)dG+n=1Ψn(M)Ψn(M)20tea2γn2(tτ)Gρ(M)f(M,τ)Ψn(M)dGdτ.\begin{split} &T(M, t) =\\ &\sum_{n=1}^{\infty} \frac{\displaystyle \Psi_n(M)}{\displaystyle \|\Psi_n(M)\|^2} \cdot e^{- a^2 \cdot \gamma_n^2 \cdot t} \cdot \iiint_G \rho(M) \cdot T_0(M) \cdot \Psi_n(M) \,dG +\\ &\sum_{n=1}^{\infty} \frac{\displaystyle \Psi_n(M)}{\displaystyle \|\Psi_n(M)\|^2} \cdot \int_0^t e^{- a^2 \cdot \gamma_n^2 \cdot (t - \tau)} \cdot \iiint_G \rho(M) \cdot f(M, \tau) \cdot \Psi_n(M) \,dG \,d\tau. \end{split}
(2.17)

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 tt \rightarrow \infty 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

0tea2γn2(tτ)dτ\displaystyle \int_0^t e^{- a^2 \cdot \gamma_n^2 \cdot (t - \tau)} \,d\tau =1a2γn2ea2γn2(tτ)0t\displaystyle = \frac{\displaystyle 1}{\displaystyle a^2 \cdot \gamma_n^2} \cdot e^{- a^2 \cdot \gamma_n^2 \cdot (t - \tau)} \bigg|_0^t =1a2γn2(1ea2γn2t)\displaystyle = \frac{\displaystyle 1}{\displaystyle a^2 \cdot \gamma_n^2} \cdot (1 - e^{- a^2 \cdot \gamma_n^2 \cdot t}) 1a2γn2ast\displaystyle \rightarrow \frac{\displaystyle 1}{\displaystyle a^2 \cdot \gamma_n^2} \quad \text{as} \quad t ,γn\displaystyle \rightarrow \infty, \quad \gamma_n 0.\displaystyle \neq 0.

Let us write the general solution for the stationary equation

T(M)\displaystyle T(M) =n=1Ψn(M)Ψn(M)21a2γn2Gρ(M)f(M)Ψn(M)dG,γn\displaystyle = \sum_{n=1}^{\infty} \frac{\displaystyle \Psi_n(M)}{\displaystyle \|\Psi_n(M)\|^2} \cdot \frac{\displaystyle 1}{\displaystyle a^2 \cdot \gamma_n^2} \cdot \iiint_G \rho(M) \cdot f(M) \cdot \Psi_n(M) \,dG, \quad \gamma_n 0.\displaystyle \neq 0.
(2.18)

And what if γn\gamma_n =0= 0? 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.