[Tex/LaTex] Writing partial differential equation like u_t=u_xx

equations

I have a problem writing the heat equation in latex. I would like to write it by starting with \begin{equation} and ending with \end{equation}. I tried doing the following:

\begin{equation}
\{$u_t(x,t)=u_{xx}(x,t)$} wherex $\epsilon$ ${\rm I\!R}$\  and $t>0$  
\end{equation}

The answer I got was this:

LaTeX Warning: You have requested package `',
               but the package provides `esdiff'.

and

! Display math should end with $$.
<to be read again> 
                   u
l.51 \{$u
         _t(x,t)=u_{xx}(x,t)$$} where x $\epsilon$ ${\rm I\!R}$\  and $t>0$
? 

Does anyone know how to write the heat equation in latex and have the text on the same line?
David

Best Answer

Are you maybe looking for the following?

enter image description here

\documentclass{article}
\usepackage{amsmath}  % for \text macro
\usepackage{amssymb}  % for \mathbb macro
\begin{document}
\begin{equation}
\{ u_t(x,t)=u_{xx}(x,t)\}, \text{ where $\epsilon\in\mathbb{R}$ and $t>0$}
\end{equation}
\end{document}

Alternatively, might you be looking for the following?

enter image description here

\documentclass{article}
\usepackage{amsmath}  % for \text macro
\usepackage{amssymb}  % for \mathbb macro
\begin{document}
\begin{equation}
u_t(x,t)=u_{xx}(x,t), \text{ where $x\in\mathbb{R}$ and $t>0$}
\end{equation}
\end{document}
Related Question