Sum in LaTeX

Sum in LaTeX: At school and in our everyday life, we use the symbol + for denoting the sum between 2 or more numbers and in algebraic quantities like x+y. Though, when we need to signify the sum of numerous elements which are indexed we do use a capital-sigma letter ∑ & some couple of limits that denotes where the sum begins & ends.

For instance, when you need to denote the sum of the first ten figures we can denote it as:

Sum in LaTeX

Writing sum in LaTeX

It’s simpler to produce a summation symbol that is capital sigma in LaTeX’s math mode with the help of command\sum. Limits of the sum are written with the help of a common symbol for subscripts _ & superscripts ^. For instance, the earlier equation was composed with a code:

Writing sum in LaTeX

 

Force limits to be above & below sum sign

When the sum is composed inside an inline mathematical environment, that’s, the one that’s surrounded using dollar signs, limits are typeset in a different way to respect space that the line takes up. For instance,

Force limits to be above & below sum sign

Output

output

Preventing this, we use the statement \displaystyle in math mode. This will make it behave like a displayed math mode. This offers the benefit of printing an extra legible equation, though also the con of creating a strange-looking line, which has more space around it.

For instance, the previous sum will appear like displaystyle  when utilized with \displaystyle:

adjust-limits-of-summation


Terry White

Terry White is a professional Drupal & WordPress developer, Web developer, Web designer, Software Engineer, and Blogger. He strives for pixel-perfect design, clean robust code, and a user-friendly interface. If you have a project in mind and like his work, feel free to contact him

View all posts by Terry White →

Leave a Reply

Your email address will not be published. Required fields are marked *