Problem in showing partial derivatives in a table

math-modetables

I'm writing the manuscript of my paper and I have to write partial derivatives in a table. While doing so, there is a problem when I use \begin{equation}...\end{equation} in table. For simplicity, I write a part of table as follows:

\begin{tabular}{ccc}
\toprule
  Boundary &  Flow  \\
\midrule
  Inlet &   
  \[ \textit {u=U_0, v=0}\]\\
  Outlet & 
  \[  {\frac{\partial u}{\partial y}=\frac{\partial v}{\partial x}=0}\]\\

\bottomrule
\end{tabular}

enter image description here

I would be grateful if someone give me a help with this issue.
I have to mention that when I use the same equation NOT in table, the code is applied well:

\begin{equation}
 {\frac{\partial u}{\partial y}=\frac{\partial v}{\partial x}=0}
\end{equation}

enter image description here

Best Answer

Here is a solution, without equation numbers, with the esdiff package:

    \documentclass{article}
    \usepackage{amsmath}
    \usepackage{esdiff}
    \usepackage{array, booktabs}

    \begin{document}

    \begin{tabular}{c >{$}wc{3cm}<{$}}
    \toprule
      Boundary & \text{Flow} \\
    \midrule
      Inlet &
      u=U_0, v=0 \\[1ex]
      Outlet &
     \diffp{u}{y} =\diffp{v}{x} =0 \\
    \bottomrule
    \end{tabular}

    \end{document} 

enter image description here