# How to set the lower and upper index on summation?

I have some critical problem writting series in compact notation, the problem is

Whenever I write the series in compact notation like

$\sum_{j=1}^{j=10}2^j$


The above series in enclosed just in two dollar sign, then summation looks like

When I enclose it in four dollars signs two before and two after the summation signs, then upper and lower indices just appear above and below, but then it comes to the center of new line, which I do not want. How to get the upper and lower indices just above the summation, instead of eclosing in four dollars signs getting it in center of newline.

• That code does not give that image. Please provide a full minimal example instead of a sniplet like this can we cannot use for anything. Jul 2 '20 at 10:52
• Additionally the bibtex tag is not relevant for your question' Jul 2 '20 at 10:53
• @daleif Yes sir you are correct the code does not give the image i shared. I was just sharing sample, that it do like that image Jul 2 '20 at 11:15
• As long as you do not provide any (complete) code that shows your problem we cannot help you. Jul 2 '20 at 11:40
• you can use $\sum\limits_{j=1}^{j=10}2^j$, but inside a line that is not good style. Jul 2 '20 at 11:55

Use \limits: $\sum\limits_{j=1}^{j=10}2^j$.