Skip to main content
Logo image

Section 1.5 Math Content

This section helps with testing aspects of math content.
In this exercise we demonstrate the allowed math elements: <m>, <me>, and <md>. The last of these may have attribute @alignment with options gather, align, or alignat. The first two are used by default, depending on if you have & or \amp in your math.
If \(a=5\) and \(b=12\text{,}\) then
\begin{equation*} a^2+b^2=13^2\text{.} \end{equation*}
Here, we solve an equation.
\begin{equation*} \begin{aligned} 2x+1 \amp= 3\\ 2x \amp= 2\\ x \amp= 1 \end{aligned} \end{equation*}
Here we have a three-way inequality to solve.
\begin{equation*} \begin{gathered} 1 \lt 2x+1 \lt 3\\ 0 \lt 2x \lt 2\\ 0 \lt x \lt 1 \end{gathered} \end{equation*}
And here, we see a system of equations.
\begin{equation*} \begin{alignedat}{3} 2x + 2y \amp {}+{} \amp z \amp {}={} \amp 10\\ y \amp {}-{} \amp 4z \amp {}={} \amp 9\\ \amp\amp 3z \amp {}={} \amp -6 \end{alignedat} \end{equation*}
With an <md> you might have <intertext> among the rows.
Here, we solve an equation.
\begin{equation*} \begin{aligned} 2x+1 \amp= 3 \end{aligned} \end{equation*}
Now subtract \(1\) from each side.
\begin{equation*} \begin{aligned} 2x \amp= 2 \end{aligned} \end{equation*}
Now divide by \(2\) on each side.
\begin{equation*} \begin{aligned} x \amp= 1 \end{aligned} \end{equation*}
We should also test when the <md> is within a list.
  1. Start a list.
  2.  
    \begin{equation*} \begin{aligned} 2x+1 \amp= 3 \end{aligned} \end{equation*}
    Now subtract \(1\) from each side.
    \begin{equation*} \begin{aligned} 2x \amp= 2 \end{aligned} \end{equation*}
    Now divide by \(2\) on each side.
    \begin{equation*} \begin{aligned} x \amp= 1 \end{aligned} \end{equation*}
  3. Still in the list?