$\left[\begin{matrix}
u(\lambda)\\\hline
v(\lambda) \\
\end{matrix}\right]$
$\left[\begin{array}{c}
u(\lambda)\\\hline
v(\lambda) \\
\end{array}\right]$
In the first code the \hline goes outside the brackets and in the second one there is unnecessary space. Please suggest some method to exactly place the \hline within brackets without extra space.


$\left[ \displaystyle\frac{u(\lambda)}{v(\lambda)} \right]$maybe what you're looking to write? – Mico May 05 '17 at 07:45