How can I align the two right handed equation as done for the two left handed ones in the screenshot blew: enter image description here

Here is my code regarding this part:

u &= e^{-3x} 
&&\text{ d}v = \cosh(5x)\text{ d}x \\
\text{d}u &= -3e^{-3x} \text{ d}x  
&& v = \frac{1}{5}\sinh(5x).

Thanks in advance.

  • 1
    you have not added the alignment marker & before = in the right hand equations May 12, 2017 at 12:23

1 Answer 1


Two alignment points require 3 & (the 2nd & indicates a new column, the 3rd is for the alignment point in that column). Also it would be shorter to write a macro for the differential symbol, with a correct spacing. Here's one, borrowed from an answer on this site, to add to your preamble. Note that, with alignat you have control on the horizontal separation between the two columns:



u &= e^{-3x} & \dd v &= \cosh(5x)\dd x \\
\dd u &= -3e^{-3x} \dd x & v &= \frac{1}{5}\sinh(5x).

u &= e^{-3x} &\dd v & = \cosh(5x)\dd x \\
\dd u &= -3e^{-3x} \dd x & \hspace{3em} v &= \frac{1}{5}\sinh(5x).


enter image description here

  • you say 3 but you have 4 & in each row in your code section May 12, 2017 at 12:24
  • @David Carlisle: As I didn't test, I didn't see there were only two TeX lines. I'll fix it. Thanks!
    – Bernard
    May 12, 2017 at 12:27
  • @Campa: Even with the corrected code?
    – Bernard
    May 12, 2017 at 12:33
  • Why not change all d's?
    – egreg
    May 12, 2017 at 15:29
  • @egreg: Just because I forgot to check… I messed up with my clipboard manager. I'll fix the code. Thanks for pointing it!
    – Bernard
    May 12, 2017 at 15:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .