0

I want to write the boundary condition in the following form. Need your help to write the below equations in two lines

enter image description here

1
  • 1
    Micky, it would be really cool if you could improve your questions by at least typing in the equations as code and don't leave all that to the answerers.
    – Johannes_B
    Dec 26, 2015 at 8:41

2 Answers 2

4

You really want to use alignat or alignedat (the difference being that the former types two equations, the latter one equation on two lines)

\documentclass{amsart}
\begin{document}
  \begin{alignat}{8}
    \nu &= V_w &&= cz/l, & \qquad u&= U_0, &\qquad \text{at\quad} r &=R, \\
    \nu &\rightarrow V_e &&= az/l, &\qquad T &\rightarrow T_{\infty},&\qquad \text{as\quad} r &\rightarrow \infty,
  \end{alignat}

  \begin{equation}
    \begin{alignedat}{8}
      \nu &= V_w &&= cz/l, & \qquad u&= U_0, &\qquad \text{at\quad} r &=R, \\
      \nu &\rightarrow V_e &&= az/l, &\qquad T &\rightarrow T_{\infty},&\qquad \text{as\quad} r &\rightarrow \infty,
    \end{alignedat}
  \end{equation}

  \begin{equation*}
    \begin{alignedat}{8}
      \nu &= V_w &&= cz/l, & \qquad u&= U_0, &\qquad \text{at\quad} r &=R, \\
      \nu &\rightarrow V_e &&= az/l, &\qquad T &\rightarrow T_{\infty},&\qquad \text{as\quad} r &\rightarrow \infty,
    \end{alignedat}
  \end{equation*}

\end{document}

both environments are found in amsmath , which is loaded by amsart in my mwe

enter image description here

0

Use the amsmath package by using \usepackage{amsmath} in the preamble of your document and try this,

\begin{equation}
\begin{aligned}
& \nu = V_w = cz/l,    &&        u= U_0,           & \text{at} && r &=R, \\
& \nu \to V_e = az/l,  && T \rightarrow T_{\infty}, & \text{as} && r &\to \infty,
\end{aligned}
\end{equation}

With this code you will get the single equation no. The output is here,

enter image description here

Try to avoid the following code with tabular environment. See the comments of @Johannes_B.

\begin{tabular}{lll}
$\nu = V_w = cz/l,$ &  $u= U_0,$ & at $r =R,$ \\
$\nu \rightarrow V_e = az/l,$ & $T \rightarrow T_{\infty}$& as $r \rightarrow \infty, $
\end{tabular}

Here is my output,

enter image description here

6
  • 1
    Are you really suggesting to use eqnarray? What about align?
    – Johannes_B
    Dec 26, 2015 at 8:41
  • 2
    Tabular or eqnarray? There are many better solutions. And spacing of the type \hspace{4.2mm} should be avoided.
    – Kola B.
    Dec 26, 2015 at 8:43
  • @Johannes_B and @Kola, I agree that using \hspace is not a good thing, so I edited the answer. But I don't know why it is bad to use tabular environment. Could you please tell me.
    – ddas
    Dec 26, 2015 at 8:55
  • This is obviously a displayed equatin, but you are in text mode within the tabular. This is more obvious when introucing integrals or sums.
    – Johannes_B
    Dec 26, 2015 at 8:57
  • @ddas I need the two equations with the single equation number
    – Micky K
    Dec 26, 2015 at 9:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .