[Tex/LaTex] Integral | symbol format

integral

When trying to type in this integral, the | symbol with the -1, 1 bounds at the end is too small. How would I make it bigger, to match the size of the integral symbol?

\int_{-1}^{1}8x^3-5x^2+4dx=\frac{8}{4}x^4-\frac{5}{3}x^3+4x\big|_{-1}^{1}

The issue

enter image description here

What is needed

enter image description here

Best Answer

In this case I'd just use \Big|_{-1}^{1}.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\int_{-1}^{1}8x^3-5x^2+4dx=\tfrac{8}{4}x^4-\tfrac{5}{3}x^3+4x\Big|_{-1}^{1}
\]
\end{document}

enter image description here

And here is why I don't recommend using anything similar to \left. \int_{-1}^{1}....\right|_{-1}^{1} as then the | with limits is actually taller than the integral which is unnecessary

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\left.\int_{-1}^{1}\right|_{1}^{-1} 
\]
\end{document}

enter image description here

Related Question