[Tex/LaTex] How to typeset this integral

math-mode

I want to typeset the integral

$$ \int{\dfrac{1}{\cos^2\left(5 - \dfrac{3x}{4}\right)}}\,\mathrm{d}x$$

I tried

\documentclass[12pt,a4paper]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
$$ \int{\dfrac{1}{\cos^2\left(5 - \dfrac{3x}{4}\right)}}\,\mathrm{d}x$$
\end{document}

and I get

enter image description here

The integration symbol not high enough. How to typeset this integral?

Best Answer

Option 1

\documentclass[preview,border=12pt,varwidth]{standalone}% change it back to your own document class
\usepackage{amsmath}

\begin{document}
\abovedisplayskip=0pt\relax% remove this line in  your production
\[
\int \frac{1}{\cos^2\left(5 - \frac{3x}{4}\right)}\,\mathrm{d}x
\]
\end{document}

enter image description here

Option 2

\documentclass[preview,border=12pt,varwidth]{standalone}% change it back to your own document class
\usepackage{amsmath}

\begin{document}
\abovedisplayskip=0pt\relax% remove this line in  your production
\[
\int \frac{1}{\cos^2\left(5 - \frac{3}{4}x\right)}\,\mathrm{d}x
\]
\end{document}

enter image description here

Option 3

Prof. Enrico likes this style I think.

\documentclass[preview,border=12pt,varwidth]{standalone}% change it back to your own document class
\usepackage{amsmath}

\begin{document}
\abovedisplayskip=0pt\relax% remove this line in  your production
\[
\int \frac{1}{\cos^2(5 - 3x/4)}\,\mathrm{d}x
\]
\end{document}

enter image description here

Option 4

By Thorsten Donig's comment below.

\documentclass[preview,border=12pt,varwidth]{standalone}% change it back to your own document class
\usepackage{amsmath,xfrac}

\begin{document}
\abovedisplayskip=0pt\relax% remove this line in  your production
\[
\int \frac{1}{\cos^2 (5 - \sfrac{3x}{4})}\,\mathrm{d}x
\]
\end{document}

enter image description here

Option ∞

Based on Qrrbrbirlbel's and Egreg's comments below.

\documentclass[preview,border=12pt]{standalone}% change it back to your own document class
\usepackage{amsmath,xfrac}

\begin{document}
\abovedisplayskip=0pt\relax% remove this line in  your production
\begin{gather*}
\int \sec^2\left(5 - \tfrac{3x}{4}\right)\,\mathrm{d}x \\
\int \sec^2\left(5 - \tfrac 3 4 x\right)\,\mathrm{d}x \\
\int \sec^2(5 - 3x/4)\,\mathrm{d}x \\
\int \sec^2\left(5 - \sfrac{3x}{4}\right)\,\mathrm{d}x 
\end{gather*}
\end{document}

enter image description here