I would like to ask about this specifical spacing problem:

enter image description here

Is there a way that I can remove that unnecessary blank space? Not all of it, but at least a good proportion of it.


\title{How to remove the space  from above this}
\date{11 July 2018}



    Calculate: $$\int_0^{\infty} \sqrt{x}e^{-x^2}\sin^3{(x^2)}dx$$

As an aditional question, how can I align the integrals that they will look the same but they will be underneath the word "Calculate"?

  • 1
    You're using the wrong tool here. Look for something like a theorem environment etc. or amsmath align environment. $$...$$ is outdated syntax.
    – user31729
    Feb 9, 2019 at 23:38
  • 1
    to echo the comment by @ChristianHupfer, the use of two independent display lines leaves you open to the possibility that a page break could occur between them. (although not in such a short piece as this) also, the spacing between these lines isn't optimal. please do take a look at the amsmath documentation -- texdoc amsldoc. Feb 10, 2019 at 2:57
  • 1
    What do you mean with unnecessary blank space? Feb 10, 2019 at 8:03
  • you should not use $$ anyway but certainly you do not want them here as they produces a centred display and you are asking for the math not to be centred but placed to the left under Calculate Feb 10, 2019 at 11:13

1 Answer 1


Don't know if I understood properly what you're asking, still giving it a try ;).

Are you looking for something like this?


    &\int_0^{\infty} \sqrt{x}e^{-x^2}\sin^3{(x^2)}dx && \\
    &\int_0^1 &&


That compiles to:

enter image description here

To shift the title upwards insert this in the preamble


and tweak the parameter -40ex to shift it upwards or downwards. With this value, it should roughly be at the top margin of the page.


You must log in to answer this question.