I am trying to horizontally align the words "if", as depicted in the image below.
I have tried to use a minipage
environment, but this did not yield the desired result. The code for this section of text is shown below.
\documentclass[a4paper,12pt]{extarticle}
\usepackage{graphicx,float}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{float}
\begin{document}
\textit{Case 2}:
If $s=0$, then
\[\sum_{r=1}^{N} \exp\left(\frac{2\pi irs}{N}\right)=\sum_{r=1}^{N} 1=N.\] If $s=N$, then
\[\sum_{r=1}^{N} \exp\left(\frac{2\pi irs}{N}\right)=\sum_{r=1}^{N} \exp (2\pi ir)=\sum_{r=1}^{N} [\cos(2\pi r)+i\sin(2\pi r)]=N.\]
\end{document}