I'm pretty new to Latex, learning it while doing. I mainly use doc and latex wiki, but there are occasions when I can't find something. I am doing some math. I need to have some math formulas followed by vertical lines and formulas spanning some rows between those vertical lines. Something like a notation of variable substitution in integrals. My explanation isn't perfect, so I made a picture of what I basically need. What I need

Would be thankful for your advices on how I can achieve similar output.

UPD. Made this post hastily. Found the answer myself.

The easiest thing with ordinary latex I had to do was this code:

y= \begin{equation} \left \rVert
    \begin{split} a = 2 \\
    b = c \\
    d = g 
    \right \rVert \end{equation} = gosdfds 

I'd define my own environment for this.




\int x\sqrt{x-1}\diff x
t=\sqrt{x-1}, t^2=x-1,\\
x=t^2+1, \diff x=2t\diff t
=\int(t^2+1)\cdot t\cdot 2t\diff t


The advantage is that you can freely change the definition of subst and this will be reflected in all instances thereof.

enter image description here

| improve this answer | |
  • Readability would be enhanced by having a bit more whitespace after the commas in the middle part of this equation, i.e., right before t^2= and \diff x=. – Mico Jul 26 '14 at 18:36
  • @Mico Maybe. In any case I prefer a comma or a semicolon instead of the arrow. – egreg Jul 26 '14 at 18:54
  • Why don't you just use the Vmatrix env? – daleif Jul 27 '14 at 6:13
  • @daleif It's not a matrix; removing the padding, like Vmatrix does, didn't seem right (I tried, of course). – egreg Jul 27 '14 at 7:58

It may be nice for your readers if you state the substitution steps one by one. Using the idea suggested in @egreg's answer to use a dedicated environment -- called substitutions, say -- that lists the steps one at a time, one might typeset your equation as follows:

enter image description here

\usepackage{amsmath} % provides 'aligned' environment


\int \!x\sqrt{x-1}\dee x
\dee x&=2t\dee t
=\int(t^2+1)\cdot t\cdot 2t\dee t
=2\int \! t^2(t^2+1)\dee t
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.