Heat equation/Solution to the 1-D Heat Equation

From Wikiversity
Jump to navigation Jump to search

Definition[edit | edit source]

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.

Solution[edit | edit source]

Step 1: Partition Solution[edit | edit source]

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:

  1. We will choose the steady-state solution to be linear in x, which means that
  2. We will let the steady-state solution handle the non-homogeneous boundary conditions.
  3. 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.

Step 2: Solve Steady-state Partition[edit | edit source]

Assumption 1[edit | edit source]

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).

Assumption 2[edit | edit source]

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:

Step 3: Solve Variable Partition[edit | edit source]

The equation for the variable portion is:



For Assumption 1[edit | edit source]

In order to simplify the equation, we can define a new function:



For Assumption 2[edit | edit source]

In order to simplify the equation, we can define a new function:



Step 3.1: Solve the Associated Homogeneous IBVP[edit | edit source]

The associated homogeneous IBVP is as follows:

Separate Variables[edit | edit source]

Translate Boundary Conditions[edit | edit source]





Solve the SLP[edit | edit source]

Step 3.2: Solve the Non-homogeneous BVP[edit | edit source]

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 :

  1. Compute and substitute and into
  2. Compute and substitute and into

Step 4: Combine Solutions[edit | edit source]

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.