I'm brand new to Mathematica. I am trying to solve a heat equation problem, but I keep getting back the input on the output line.
The problem:
Consider the equation
$\qquad u_t = u_{xx} - 9 u_x$, $0\lt x\lt1 , t\gt0$,
with boundary condition $u(0,t) = 0 ,\ u(1,t) = 0$
and initial condition
$u(x,0) = e^{4.5x}\!\left(5\sin\!\left(\pi\,x\right)+9\sin\!\left(2\,\pi\,x\right)+2\sin\!\left(3\,\pi\,x\right)\right)$.
Solve for $u(x,t)$
My try at the code:
heqn = D[u[x, t], t] == D[u[x, t], {x, 2}] - 9*D[u[x, t], x];
ic =
{u[x, 0] == E^(4.5x)*(5 Sin[Pi*x] + 9 Sin[2*Pi*x] + 2 Sin[3*Pi*x]),
u[0,t] == 0, u[1,t] == 0};
sol = DSolveValue[{heqn, ic}, u[x, t], {x, t}]
The output is just a simplified version of my input.
What am I doing wrong?
Sin[Pi x]
$\endgroup$DSolve
andSolve
andIntegrate
, etc.. This is the first rule of thumb I learned using Mathematica long time ago. $\endgroup$