Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

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 need some help with the following problem.

How, I can find the, Maximum Value of the function $f(x)=x^n(1-x)^n$ for a natural number $n \geq1$ and $x\in[0,1]$.

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

Note that $$x^n(1-x)^n=\bigl(x(1-x)\bigr)^n=\left(\frac14-\left(\frac12-x\right)^2\right)^n\le \frac1{4^n}$$

share|cite|improve this answer

First, find the maximum of $x(1-x)$, and let it have value $Q$. You can do this by completing the square, AM-GM, or differentiation (depending on how much you know).

Then since the exponentiation function $x \rightarrow x^n$ is a strictly increasing function for $x\in [0,\infty]$ and $n\geq 1$, if follows that $Q^n$ will be the maximum value of your function.

share|cite|improve this answer

Since your function is positive you can take the $n^{th}$ root and maximise that, and then raise that value to the $n^{th}$ power.

share|cite|improve this answer

$$f(x)=x^n(1-x)^n$$ $$f'(x)=n(x-x^2)^{n-1}(1-2x)=0$$ $$x-x^2=x(1-x)=0,x=0,x=1$$ and $f(0)=f(1)=0$ or $$1-2x=0,x=1/2$$ so maximum is for $x=1/2$ $$f(1/2)=(1/2)^{2n}$$

share|cite|improve this answer

Since your function is positive, you can take the logarithm and maximize it; in the end you can exponentiate the result. In formulas $$ \ln f(x) = n [\log x + \log (1-x)].$$ Then $$\frac{d}{dx} \ln f(x^*) = \frac{n}{x^*} - \frac{n}{1-x^*} =0$$ leads to $x^*=1/2$. You then have $f(x^*) = 1/2^{2n}$ which you should still compare with the values at $x=0,1$.

share|cite|improve this answer

Hint: Note that $f(x)$ is the product of $2n$ nonnegative numbers. Now you may use A.M.$\ge$ G.M.

share|cite|improve this answer

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.