# One-Dimensional Heat Equation Problem

Hi, I need help to solve this problem, about 1-D heat equation

$$\partial$$u / $$\partial$$t = k ($$\partial$$2u / $$\partial$$x2)-2u (0< x <1)

u(x,0)=e-x
u(0,t)=e-2t
u(1,t)=0

I need to solve it with separation variable

Office_Shredder
Staff Emeritus
Gold Member
Ok... what have you done so far? Do you know how to start a problem like this?

No, I have no idea how to start it, bcos it's non-homogeneous eq, can u help me?

Office_Shredder
Staff Emeritus
Gold Member
I just realized that you don't actually have the heat equation in your first post. There should be no -2u term in the equation. Can you verify what you're supposed to be solving?

If you're actually trying to solve the heat equation, then start with u(x,t) = X(x)T(t) for some X and T functions and then try to separate the x's and the t's

HallsofIvy
$$X\frac{du}{dt}= \kappa T\frac{d^2X}{dx^2}- 2XT$$