# Products in a fraction

#### rapid

##### New member
Basically i have this code, obviously the fraction is in display maths, but i want BIG products too, with sub/super scripts above and below rather than next to it. Thanks

$$pr(X=k)=\mu\frac{\prod^{k-1}_{i=1}\{1-\mu+(i-1)\theta\}}{\prod^{k}_{i=1}\{1+(i-1)\theta\}}, \quad \mbox{for k\geq 1,}$$

#### princeps

##### New member
Basically i have this code, obviously the fraction is in display maths, but i want BIG products too, with sub/super scripts above and below rather than next to it. Thanks

$$pr(X=k)=\mu\frac{\prod^{k-1}_{i=1}\{1-\mu+(i-1)\theta\}}{\prod^{k}_{i=1}\{1+(i-1)\theta\}}, \quad \mbox{for k\geq 1,}$$
type \displaystyle in front of \prod

$$pr(X=k)=\mu\frac{\displaystyle\prod^{k-1}_{i=1}\{1-\mu+(i-1)\theta\}}{\displaystyle\prod^{k}_{i=1}\{1+(i-1)\theta\}}, \quad \mbox{for k\geq 1,}$$

• rapid

#### Evgeny.Makarov

##### Well-known member
MHB Math Scholar
There are two ways to place limits above and below an operator. First, this is the default for big operators in display style. Here, the fraction is in display style, but the nominator and denominator are in text style. You can activate display style using \displaystyle in the nominator and denominator or by using \dfrac instead of \frac. Second, without changing the style, you can put the limits above/below the operator by saying \prod\limits. Conversely, in display style limits can be put next to the operator by saying \prod\nolimits.

And it's as simple as that Thanks very much!