Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am not completely sure whether this question belongs on mathematics.SE but I figured to give it a shot:

I have a function which mathematically looks like this: $f(x)=\max(A,B\cos x)$

This will result in a cosine with for $B/A>1$ a cut-off section. My question is more related to aesthetics than mathematics: the notation I use now looks a bit too much like program code in my opinion. Is there a way to represent the bound in $f(x)$ without using the $\max$-notation?

share|cite|improve this question
up vote 2 down vote accepted

Assuming that you're working with real numbers $A,B,x,$ we can rewrite it as $$f(x)=\frac12\bigl(A+B\cos x+|A-B\cos x|\bigr).$$

Visually, we're starting at the midpoint--$\frac12(A+B\cos x)$--and adding half of the difference between them--$\frac12|A-B\cos x|$. If you want to translate $\min$ of two real valued expressions, you'll do the same sort of thing, but subtract half the distance instead.

share|cite|improve this answer
Awesome that is exactly what I was looking for – Michiel Mar 3 '13 at 17:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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