Find the solution to the heat equation ∂u/∂t = α²∂²u/∂x² with boundary conditions u(0,t) = u(L,t) = 0 and initial condition u(x,0) = sin(πx/L).
Answer:
Step-by-step solution
Step 1: Assume a Separable Solution
We begin by assuming a separable solution of the form , where is a function of only and is a function of only. This method is commonly used for solving partial differential equations like the heat equation.
Step 2: Substitute into the Heat Equation
Substituting into the heat equation and separating variables leads to two ordinary differential equations. Since one side depends only on and the other only on , both must be equal to a constant, which we denote as for convenience in solving the resulting equations.
Step 3: Solve the Spatial Equation
The spatial equation with boundary conditions and yields a general solution involving sines and cosines. Applying the boundary conditions forces and to be quantized as , leading to eigenfunctions .
Step 4: Solve the Temporal Equation
The temporal equation is a first-order linear differential equation. Its solution is an exponential decay function, where takes the values determined from the spatial problem.
Step 5: Form the General Solution
Combining the spatial and temporal solutions, and using the principle of superposition, we form the general solution as an infinite series. Each term in the series corresponds to a particular value of .
Step 6: Apply Initial Condition
To find the coefficients , we apply the initial condition . This involves using the orthogonality of sine functions. For the given initial condition, only the term will be non-zero.
Step 7: Determine Coefficients and Final Solution
Evaluating the integral for , we find that and all other . Substituting these coefficients back into the general solution gives the particular solution that satisfies all given conditions.