When I use eqnarray
\begin{eqnarray}
eq\\
eq\\
eq\\
\end{eqnarray}
this show me
eq (1)
eq (2)
eq (3)
In some papers I see this output
eq (1a)
eq (1b)
eq (1c)
how I can make this way ?
When I use eqnarray
\begin{eqnarray}
eq\\
eq\\
eq\\
\end{eqnarray}
this show me
eq (1)
eq (2)
eq (3)
In some papers I see this output
eq (1a)
eq (1b)
eq (1c)
how I can make this way ?
Avoid eqnarray! Use the align environment inside the subequations environment from the amsmath package.
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools} % loads »amsmath«
\begin{document}
\begin{subequations}
\begin{align}
(a+b)^2 &= a^2+2ab+b^2 \\
(a-b)^2 &= a^2-2ab+b^2 \\
(a+b)(a-b) &= a^2-b^2
\end{align}
\end{subequations}
\end{document}
amsmath has an environment subequations that will do what you want:
\begin{subequations}
\begin{eqnarray}
eq \\
eq \\
eq
\end{eqnarray}
\end{subequations}
some observations:
\\ at the end of the last line, or you'll end up with too much space below the display.amsmath rather than eqnarray (see this article for the reasons why).to find out what structures are provided by amsmath, if you have a tex live installation, type texdoc amsmath at a command line prompt.
The second look (with a, b, c ... appended to the "main" equation number) can be achieved with the subequations environment of the amsmath package. The following MWE (minimum working example) demonstrates the basic usage of this package:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{subequations}
\begin{align}
a &= b\\
c &= d\\
e &= f
\end{align}
\end{subequations}
\end{document}

Finally: Don't use the eqnarray environment -- use the align environment instead.
The eqnarray environment has several severe shortcomings; for a justification of this assertion see, for instance, "\eqnarray vs \align".
alignand friends; using subequations. Also, rather useamsmath'salignenvironment instead ofeqnarray. See\eqnarrayvs\align. – Werner Jan 11 '12 at 20:12