For the 1-dimensional case, the solution takes the form since we are only concerned with one spatial direction and time. Thus the heat equation takes the form:
where k is our diffusivity constant and h(x,t) is the representation of internal heat sources. For our example, we impose the Robin boundary conditions, the initial condition, and the following bounds on our variables:
Notice that the boundary conditions are non-homogeneous and time-dependent. The next few steps will illustrate one way to achieve a solution.
In order to get a solution, we can partition the function into a "transient" or "variable" solution and a "steady-state" solution:
Substitute this relation into our original heat equation, boundary conditions and initial condition:
We will also impose conditions on our partitioned solutions. Part of the beauty of partitioning the solution is being able to divide the boundary conditions among both parts. The following conditions will be imposed:
- We will choose the steady-state solution to be linear in x, which means that
- We will let the steady-state solution handle the non-homogeneous boundary conditions.
- We will let the variable portion satisfy the non-homogeneous equation and homogeneous boundary conditions.
Thus, we have constructed two separate initial boundary value problems (IBVPs):
Note that the sum satisfies all conditions of the original IBVP.
We are assuming that S is linear in x, so our equation take the form:
We will see why this is only an assumption because doesn't cover all the different boundary condition types. Applying the boundary conditions, we get:
Solving for and :
That means that the coefficients are only defined as long as This means that the linear assumption of s(x,t) only holds if the boundary conditions are not both Neumann type (i.e. ). Knowing the coefficients from the original boundary conditions will yield the coefficients for s(x,t).
For the case where both boundary conditions are Neumann type, a different assumption must be made. The linear assumption didn't yield any solution, so let's assume s has a quadratic relationship with x:
For convenience, we choose In this Neumann-Neumann condition, the only boundary conditions we have are:
Solving the assumption for the boundary conditions:
Thus we arrive at the solution to the "steady-state" solution:
The equation for the variable portion is:
In order to simplify the equation, we can define a new function:
In order to simplify the equation, we can define a new function:
The associated homogeneous IBVP is as follows:
The BVP is as follows:
In order to solve the problem, let:
where the time-dependent Fourier coefficients will be determined later. Also, let:
where the Fourier coefficients are given by the inner product:
In order to solve for the coefficients , we have to substitute the relations above into the original PDE. The term-by-term differentiation of v is legitimate since the partial derivatives of v are continuous. v satisfies the same spatial boundary conditions as the eigenfunction:
Since the eigenfunction satisfies the ODE ,
Since forms a basis and is therefore linearly independent:
which is a first order non-homogeneous linear equation. The integrating factor . Solving the equation yields:
The constant allows us to satisfy the initial condition:
We can now substitute all the expressions to get the variable portion :
- Compute and substitute and into
- Compute and substitute and into
The complete solution for can be found by adding the "steady-state" solution and the "variable" solutions. The result can easily be checked by graphing in a symbolic solver like Mathematica or Maple.