Application of Variations of Parameters and Duhamel's Principle: A Simple Example
In the previous post, we explored the theoretical differences and similarities between Variations of Parameters and Duhamel's Principle. Now, let’s bring these ideas to life with a simple example, demonstrating how these methods work in practice. We'll aim for clarity and connection, using an example that connects to everyday phenomena like heat distribution.
A Problem: Modeling Heat Transfer in a Rod
Imagine a metal rod that is heated at one end while the rest is kept cool. Over time, heat spreads along the rod. Mathematically, this situation can be modeled with the heat equation, a partial differential equation (PDE):
∂u/∂t = α ∂²u/∂x²
where:
u(x, t)is the temperature at positionxand timet,αis a constant representing how well the material conducts heat,∂u/∂tis the rate of change of temperature with time,∂²u/∂x²is the second derivative of temperature with position, representing how temperature changes spatially.
Suppose the rod initially has no heat (u(x, 0) = 0) and we apply a heat source at x = 0, modeled as g(t) = sin(t). How does the temperature u(x, t) evolve?
Approach 1: Variations of Parameters
For PDEs like the heat equation, Variations of Parameters can seem complex, but the core idea remains: use the homogeneous solution and adjust it to fit the specific heat source. Here’s a simplified overview:
-
Solve the Homogeneous Equation:
The solution to the heat equation without any heat source (g(t) = 0) is:u_h(x, t) = ∫₀^∞ A(k) e^(-αk²t) cos(kx) dkwhere
A(k)is determined by boundary conditions. -
Adjust for the Non-Homogeneous Term:
Assume thatA(k)is not a constant but depends ont:A(k, t). This adjustment ensures the solution reflects the applied heat sourceg(t). -
Find A(k, t):
Differentiating and substituting back into the heat equation lets us solve forA(k, t)in terms ofg(t).
Approach 2: Duhamel’s Principle
Duhamel’s Principle offers a more intuitive method by thinking of the heat source g(t) as being applied incrementally over time.
-
Impulse Response:
Solve the heat equation for a very short pulse of heat applied att = 0, which gives the response:u_impulse(x, t) = 1 / √(4παt) * e^(-x² / (4αt)) -
Superposition of Responses:
Use the idea of superposition to combine the responses over time, weighted byg(t). The solution is given by:u(x, t) = ∫₀^t u_impulse(x, t - τ) g(τ) dτ -
Apply g(t) = sin(t):
Substituting the heat sourceg(t) = sin(t)into the integral gives the complete solution:u(x, t) = ∫₀^t (1 / √(4πα(t - τ))) * e^(-x² / (4α(t - τ))) sin(τ) dτ
Key Takeaways
- Variations of Parameters adjusts the constants in the homogeneous solution to account for the heat source.
- Duhamel’s Principle constructs the solution as a sum of the system’s response to each part of the heat source.
In this example, Duhamel’s Principle provides a more direct approach for solving the heat equation with a time-dependent heat source. Its reliance on convolution integrals makes it particularly suited to problems involving dynamic inputs, like our g(t) = sin(t).
A Visualization: Heat Distribution
If we plot u(x, t), we’d see the heat spreading along the rod over time, with the oscillations of g(t) = sin(t) influencing the distribution. This connection between mathematics and physical behavior demonstrates the power of these methods.
Whether you’re solving PDEs in engineering or physics, mastering these techniques equips you to tackle dynamic systems and uncover the beautiful patterns within.
Comments
Post a Comment