Step 1 — The separation guess.
Assume u(x,t)=X(x)T(t) (space-part times time-part).
Why this step? If it works, derivatives split nicely; we lose nothing by trying — if no solution of this form exists, we'll find out.
Then ut=XT′ and uxx=X′′T. Substitute:
XT′=α2X′′T.
Step 2 — Separate the variables.
Divide by α2XT:
α2TT′=XX′′.Why this step? Now the left side depends only on t, the right side only on x. The only way a function of t equals a function of x for all x,t is if both equal the same constant. Call it −λ.
Why the minus sign? Foresight: we want decaying-in-time solutions, which needs −λ with λ>0. We'll verify the other sign cases fail.
XX′′=−λ,α2TT′=−λ.
Step 3 — Solve the space ODE (an eigenvalue problem).X′′+λX=0,X(0)=0,X(L)=0.Why these BCs? Since u(0,t)=X(0)T(t)=0 for all t, and T≡0 (else trivial), we need X(0)=0. Same at L.
Test the sign of λ (Forecast-then-Verify):
λ<0, say λ=−μ2:X=Aeμx+Be−μx. BCs force A=B=0. Only trivial. ✗
λ=0:X=A+Bx. X(0)=0⇒A=0; X(L)=0⇒B=0. Trivial. ✗
λ>0, say λ=k2:X=Acoskx+Bsinkx.
X(0)=0⇒A=0, so X=Bsinkx. X(L)=0⇒sinkL=0⇒kL=nπ.
So the eigenvalues and eigenfunctions are
λn=(Lnπ)2,Xn(x)=sinLnπx,n=1,2,3,…
Step 4 — Solve the time ODE.T′=−λα2T⇒Tn(t)=e−λnα2t=e−α2(nπ/L)2t.Why this step? This is first-order linear; its solution is a pure exponential decay — exactly the "fading knob."
Step 5 — Build product solutions and superpose.
Each un=sinLnπxe−α2(nπ/L)2t solves the PDE + BCs. The equation is linear and homogeneous, so sums of solutions are solutions:
u(x,t)=n=1∑∞BnsinLnπxe−α2(nπ/L)2t
Step 6 — Fit the initial condition with Fourier coefficients.
At t=0 the exponentials are 1:
f(x)=∑n=1∞BnsinLnπx.
This is a Fourier sine series. Multiply by sinLmπx, integrate 0 to L, use orthogonality ∫0LsinLnπxsinLmπxdx=2Lδnm:
Bn=L2∫0Lf(x)sinLnπxdx
Imagine a metal stick that's hot in the middle and cold at the ends, which you keep dunked in ice so the ends stay at 0°. Heat always crawls from hot spots to cold spots, so the hot middle slowly cools and spreads out. We pretend the temperature pattern is made of simple "wave shapes" (humps). Each hump fades on its own timer — skinny humps (lots of wiggles) fade super fast, fat humps fade slowly. To predict the future you just let every hump fade by its own timer and add them back up. After a long time only the biggest fattest hump is left, and then it disappears too. Cold stick. Done.
Dekho, heat equation ut=α2uxx ka simple matlab hai: kisi point pe temperature kitni tezi se badlegi, ye us point pe profile ki "curvature" (uxx) pe depend karti hai. Hot bump cool hoti hai, cold dip warm hoti hai — heat hamesha garam se thande ki taraf behti hai aur sab smooth ho jaata hai.
Separation of variables ek smart guess hai: maan lo solution do hisson mein toot jaata hai — u=X(x)T(t), yaani ek "shape" jo waisa hi rehta hai aur ek "time knob" jo sirf fade hota hai. Substitute karke divide karne ke baad ek side sirf x ka, doosri sirf t ka function ban jaati hai. Dono equal tabhi ho sakte hain jab dono ek constant −λ ke barabar ho. Bas yahin hard PDE do easy ODE mein convert ho gaya.
Zero boundary conditions (ends 0° pe) ki wajah se solution sines deti hai: Xn=sin(nπx/L) aur λn=(nπ/L)2. Time part exponential decay deta hai: e−α2(nπ/L)2t. Important baat — jitna bada n (jitni zyada wiggles), utni fast decay, kyunki rate n2 ke proportional hai. Isliye initial ka koi bhi shape, kuch time baad sirf ek single half-sine hump ban ke reh jaata hai, phir wo bhi zero ho jaata hai.
Coefficients Bn=L2∫0Lf(x)sin(nπx/L)dx — ye exactly Fourier sine series hai. Yaad rakho: L2 factor orthogonality se aata hai (sine ka squared integral =L/2). Exam mein bahut common hai, aur 80/20 funda yahi hai: BC se eigenfunction decide hoti hai, decay rate n2, aur long-time pe first mode dominate karta hai.