Good morning,
I have found a lot questions and tutorials on how to align multi-line equations, even over several pages and such, but I am unable to figure out how to align several equations with paragraphs of text between them.
Here is a minimal working example of my problem:
\documentclass[10pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{fleqn}
\begin{document}
Since we have
\begin{equation}
e^x = \frac{d}{dx}e^x
\end{equation}
and
\begin{equation}
e^x = \int e^x dx
\end{equation}
one of my students concluded that
\begin{equation}
\int dx = \frac{d}{dx}.
\end{equation}
\end{document}
This compiles to:
As you can see the first two equations are perfectly aligned since the left sides take up the same width. Equation 3 is not aligned as the left side is wider. I am looking for a simple solution to align all equal signs, at least on a page, if not the entire document.
In the full document that I am writing there are several lines of explanation between equations, sometimes with inline math, references and so on, therefore solutions that simple put a few words in plain text inside a math environment are not really viable in my opinion.
I hope that I have stated my question clearly and wish you a good day.
\intertext
. It's only supposed for one or two lines, so no fit for your problem, but it might be a good point to start looking for alternatives.$e^x=\int e^x\,dx$
is almost as wrong as the student's claim.