Aligning at equals signs

Hey Everyone,

I am writing a solution to a problem and would like to know (if possible) how to align everything in my work at the equals signs. You can see I have several tags with some text. My thought is that because of this, they are treated separately. Is there a way I can keep my paragraphs and still align at the equals signs.

<solution>
            <p>Let's find the equation of the tangent line to the curve <m>y=\dfrac{2x}{x+1}</m> at <m>x=1</m>. To do this, we'll need two things: the point where the tangent line touches the curve and the slope of the tangent line at that point. We can find the point by evaluating the function at <m>x=1</m>, and we can find the slope by evaluating the derivative at <m>x=1</m>.</p>
        <md>
          <mrow>y(1)&=\dfrac{2(1)}{(1)+1}</mrow>
          <mrow>&=1</mrow>
        </md>
    <p>Next, we need to find <m>y'</m>, the derivative of <m>y</m> and evaluate it at <m>x=1</m>. This gives us,</p>
          <md>
            <mrow>
              y'&=\dfrac{(x+1)\frac{d}{dx}[2x]-2x\frac{d}{dx}[x+1]}{(x+1)^2}
            </mrow>
            <mrow>&=\dfrac{(x+1)(2)-2x(1)}{(x+1)^2}</mrow>
            <mrow>&=\dfrac{2x+2-2x}{(x+1)^2}</mrow>
            <mrow>&=\dfrac{2}{(x+1)^2}</mrow>
          </md>
      <p>Substituting <m>x=1</m> and evaluating our derivative yields</p>
          <md>
            <mrow>
              y'(1)&=\dfrac{2}{(1+1)^2}
            </mrow>
            <mrow>&=\frac{1}{2}</mrow>
          </md>
           <p>Thus, the equation of the tangent line is</p>
      <me><m>\boxed{y-1=\dfrac{1}{2}\left(x-1\right)}</m></me>
        </solution>

Thank you for your help

The alignment of the equations is done by MathJax. I don’t know if MathJax has a way to align separate equations and their equal signs. I would guess that they don’t have that feature.