I have this...

\[c1*f(n) \leq f(n) \leq c2* f(n)\ \forall n_0 \geq 0\]

For display mode, I want to add additional space before \forall. I'm not too familiar with display mode. I tried just adding space and it doesn't seem do anything.

  • Related: What is the "correct" way of embedding text into math mode? Do you really want to write "... less than or equal to c2*f(n) for for all n_0 ..." though? Isn't one "for" enough? – Torbjørn T. Jun 2 '16 at 9:26
  • 1
    How about \mbox{ for }. – Mico Jun 2 '16 at 9:26
  • @TorbjørnT. that's how it was written on the board but yeah it doesn't make sense. How do I add proper spacing then between the two statements? I want both to be on the same line but have some distance between the two – cpd1 Jun 2 '16 at 9:30
  • I'm going to update the question – cpd1 Jun 2 '16 at 10:04
  • I ended up using \begin{center} and \mbox to get around this. – cpd1 Jun 2 '16 at 10:14

See an example below. Was the * intended as a multiplication symbol here? In that case I would write \cdot instead, and perhaps you want 1 and 2 as subscripts to the c's? If that is the case, then

c_1\cdot f(n) \leq f(n) \leq c_2 \cdot f(n) \quad \forall n_0 \geq 0

Output of the code below: enter image description here


Removing ``for'' altogether. (For a bigger space, use \verb|\qquad|.)
c1* f(n) \leq f(n) \leq c2 * f(n) \quad \forall n_0 \geq 0
But if you want to include it:
c1* f(n) \leq f(n) \leq c2 * f(n) \text{ for } \forall n_0 \geq 0
Or for a little bit more space.
c1* f(n) \leq f(n) \leq c2 * f(n) \quad \text{for} \quad\forall n_0 \geq 0
  • Thank you! I definitely prefer this way over my hack :) – cpd1 Jun 2 '16 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.