![Como posso escrever uma equação com colchetes e condições em LaTeX?](https://rvso.com/image/286989/Como%20posso%20escrever%20uma%20equa%C3%A7%C3%A3o%20com%20colchetes%20e%20condi%C3%A7%C3%B5es%20em%20LaTeX%3F.png)
Eu tenho a seguinte equação
eu usei
\begin{equation}
\centering
A_j =
\begin{cases}
0 & N^2 < N_j^2 \\
\text{must have been constrained,} & N^2 > N_j^2 \\
\text{can take any value as long} & N^2 = N_j^2
\end{cases}
\label{eq:10.30}
\end{equation}
para escrever a equação (documentada aquihttp://en.wikipedia.org/wiki/Help:Displaying_a_formula#Continuation_and_cases). Qual é a melhor maneira de adicionar a condição de j = 2,3,4,6,7.. em látex?
Desde já, obrigado!
Responder1
Aqui estão algumas opções:
Defina a construção como combinada
array
para alinhar o conteúdo de "cases
" e os valores dej
:Usar
amsmath
égather
:Defina os valores de
j
como parte do parágrafo anterior:
Observe a diferença no posicionamento da etiqueta da equação (rótulo).
\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\begin{equation}
\renewcommand{\arraystretch}{1.2}
\begin{array}{@{}c@{}}
A_j =
\left\{\begin{array}{@{}ll@{}}
0 & N^2 < N_j^2 \\
\text{must have been constrained,} & N^2 > N_j^2 \\
\text{can take any value as long} & N^2 = N_j^2
\end{array}\right. \\
j = 2, 3, \dots
\end{array}
\label{eqn:myeqn1}
\end{equation}
\begin{gather}
A_j =
\begin{cases}
0 & N^2 < N_j^2 \\
\text{must have been constrained,} & N^2 > N_j^2 \\
\text{can take any value as long} & N^2 = N_j^2
\end{cases} \label{eqn:myeqn2} \\
j = 2, 3, \dots \nonumber
\end{gather}
\noindent
\ldots blah blah blah for $j = 2, 3, \dots$
\begin{equation}
A_j =
\begin{cases}
0 & N^2 < N_j^2 \\
\text{must have been constrained,} & N^2 > N_j^2 \\
\text{can take any value as long} & N^2 = N_j^2
\end{cases} \label{eqn:myeqn2}
\end{equation}
\end{document}