JohnPaul
This is my code
```
\documentclass{article}
\usepackage{amsmath}
\usepackage{nccmath}
\usepackage{tcolorbox}
\begin{document}
\begin{tcolorbox}
\[
\begin{subequations}
\begin{cases}
x^2 + 2x + 2 = 0\\
y = \dfrac{x^2 + mx + 3}{x-6}
\end{cases}
\end{subequations}
\]
\end{tcolorbox}
\end{document}
```
I get

How can I label each equation $x^2 + 2x + 2 = 0$ is (1a) and $y = \dfrac{x^2 + mx + 3}{x-6}$ is (1b)?
Top Answer
samcarter
You could use the `subnumcases` environment from the `cases` package:
```
\documentclass{article}
\usepackage{amsmath}
\usepackage{nccmath}
\usepackage[most]{tcolorbox}
\usepackage{cases}
\begin{document}
\begin{tcolorbox}[ams nodisplayskip]
\begin{subnumcases}{}
x^2 + 2x + 2 = 0 & \\
y = \frac{x^2 + mx + 3}{x-6} &
\end{subnumcases}
\end{tcolorbox}
\end{document}
```

Answer #2
Anonymous 13630
To label each equation automatically within your system of equations, you need to use the `subequations` environment properly. Here's the updated code:
```
\documentclass{article}
\usepackage{amsmath}
\usepackage{nccmath}
\usepackage{tcolorbox}
\begin{document}
\begin{tcolorbox}
\begin{subequations}
\begin{align}
x^2 + 2x + 2 &= 0 \label{eq:1a} \\
y &= \dfrac{x^2 + mx + 3}{x-6} \label{eq:1b}
\end{align}
\end{subequations}
\end{tcolorbox}
\end{document}
```
This will label your equations as (1a) and (1b) automatically.