Right now I have a piece of code which generates the following two equations
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{thmtools}
\setlength\parindent{0pt}
\usepackage[linesnumbered,ruled]{algorithm2e}
\usepackage{hyperref}
\usepackage{caption}
\usepackage{cleveref}
\begin{document}
\section{Introduction}
\begin{align*}
& x^2 + 1 = 0\\
& x^3 + 2x^2 + x + 1 = x^4 - 4 = 0
\end{align*}
\end{document}
I would like to instead, display:
What is the easiest way to achieve this? I tried to nest another align block but I have received an error.
Best Answer
You could used the
aligned
environment for the nested alignment:Here’s the output I get: