Improving the Look of Product Functions in Math

In summary, the four styles are:displaystyle: the numerator and denominator are typeset in a smaller styletextstyle: the numerator and denominator are typeset in the same stylescriptstyle: the numerator and denominator are written in scriptscriptstylescriptscriptscriptstyle: the numerator and denominator are written in scriprstyle
  • #1
MarkFL
Gold Member
MHB
13,288
12
Hello all,

In a recent post, I discovered that when putting a product function in a fraction (using the \prod command), the indices are displayed to the right of the product function's symbol rather than below and above, which I find much more pleasing to the eye. I find that the same thing happens with the \sum command.

Using the MATH tags, which implies the \displaystyle command, we see that alone, i.e., not in a fraction, we get:

\(\displaystyle \prod_{k=k_i}^{n}\left(\frac{f(k)}{g(k)} \right)\)

Writing this in its equivalent form, we get:

\(\displaystyle \frac{\prod_{k=k_i}^{n}\left(f(k) \right)}{\prod_{k=k_i}^{n}\left(g(k) \right)}\)

My question: is there a way to force the indices to be displayed as they are in the first expression of the product?
 
Physics news on Phys.org
  • #2
$\displaystyle \frac{\prod\limits_{k=k_i}^{n}\left(f(k) \right)}{\prod\limits_{k=k_i}^{n}\left(g(k) \right)}$

Like that? I just found that from a quick Google search. The two commands to keep in mind are \limits and \nolimits. \limits forces the top/bottom layout like you see above. On MHB and all sites that use Mathjax, you can scale all equations up or down if you wish. I had the scale set to 100%, or no scaling I suppose, and the above looked pretty bad. I just changed it to 115% and now it looks much better.

Right click -> "Math Settings" -> "Scale all math"
 
  • #3
Thank you kindly for the \limits command knowledge about the scaling...it does look better! (Yes)
 
  • #4
TeX has four styles for typesetting mathematical formulas: displaystyle, textstyle, scriptstyle and scriptscriptstyle. Each style has a corresponding command. If a fraction is typeset in a certain style, the numerator and the denominator and rendered in the following smaller style, except that scriptscriptstyle is the smallest. The sub- and superscripts of a symbol in displaystyle or textstyle are written in scriprstyle; otherwise (for the two smallest styles) they are written in scriptscriptstyle.

The difference between displaystyle and textstyle shows, in particular, in the size of big operators like \prod and \sum and in the location of the operator's indices, which can also be specified using \limits and \nolimits. The size of regular symbols like $x$ and $+$, however, is the same.

Therefore, there are two ways to place indices above and below big operators: either write the formula in displaystyle or use \limits. Also, the package amsmath provides commands \dfrac and \tfrac, which are abbreviations of \displaystyle\frac and \textstyle\frac. Note, however, that the style is specified before the fraction, so the numerator and the denominator are never typeset in displaystyle.

Math styles are discussed in the TeXbook, chapter 17, and The LaTeX Companion (2nd ed.), section 8.7.1.
 
  • #5


Hello,

Thank you for bringing this issue to our attention. I understand the importance of not only accurate calculations, but also visually pleasing presentations of mathematical functions. I would suggest using the \limits command before the indices in the fraction, which will force them to be displayed below and above the product function's symbol. Your expression would then look like this:

\frac{\prod\limits_{k=k_i}^{n}\left(f(k) \right)}{\prod\limits_{k=k_i}^{n}\left(g(k) \right)}

This should give you the desired result of having the indices displayed in the same way as the first expression. I hope this helps improve the overall look of your product functions in math. Keep exploring and experimenting with different commands to find the best visual representation for your work. Best of luck!
 

Related to Improving the Look of Product Functions in Math

1. How can I improve the visual representation of mathematical functions in my product?

One way to improve the look of mathematical functions in your product is to use clear and easy-to-read fonts for any text or equations. You can also incorporate visual aids such as graphs or diagrams to help illustrate the function.

2. What are some design principles to consider when improving the look of product functions in math?

Some important design principles to consider are clarity, consistency, and simplicity. It's important to use a clean and organized layout, and to keep the design elements consistent throughout the product. Additionally, using a simple color scheme and avoiding clutter can help improve the overall look of the functions.

3. How can I make sure my product functions are user-friendly for all levels of math proficiency?

One way to make sure your product functions are user-friendly for all levels of math proficiency is to provide clear and concise instructions or explanations for each function. You can also offer different levels of difficulty for the functions, so users can choose the level that best suits their proficiency.

4. Are there any online resources or tools that can help me improve the look of product functions in math?

Yes, there are many online resources and tools available to help improve the visual representation of mathematical functions in your product. Some popular options include MathJax, MathType, and LaTeX, which offer various formatting options and equations for mathematical expressions.

5. How can I incorporate interactive elements into my product functions to engage users?

One way to incorporate interactive elements is to allow users to input their own values or variables into the functions, and see how it affects the overall output. You can also provide interactive tutorials or practice exercises to help users better understand and engage with the functions.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • Quantum Physics
Replies
1
Views
643
Replies
2
Views
412
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
306
Replies
5
Views
1K
Replies
3
Views
1K
Replies
11
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
5K
  • Calculus and Beyond Homework Help
Replies
12
Views
2K
Back
Top