ΣνΜDr. Sharon's Math PlatformSyvara Learning
Question Bank › 📘 Undergraduate › Advanced Engineering Mathematics › Q23

Q23 · Heat equation with fixed ends: u(0,t) = u(1,t) = 0

Partial Differential Equations 🔴 Advanced Computation </> Python solution
Question

Solve the heat equation

$$u_t = u_{xx}, \qquad 0 < x < 1,\ \ t > 0 \tag{1}$$

subject to the boundary conditions

$$u(0,t) = 0, \qquad u(1,t) = 0$$

and the initial condition

$$u(x,0) = x - x^2 \quad \text{(this is a function, say } f(x)\text{, given to us).}$$

Use separation of variables, $u(x,t) = F(x)\,G(t)$, and describe the solution at $t = 0,\ 0.1,\ 0.2$.

🔒

Log in to see the worked solution

Enter your email to get started. Your first free solutions in every course unlock as soon as you verify.

Log in or sign up with email
</> Python code solution (Premium add-on)
NumPy, Matplotlib
🔒 Upgrade to Premium or GQE to unlock Python solutions.
← Previous Next →
Working…