# Wow what a crazy thing

Calculus Level 3

When the function $$x \sqrt{1-x}$$ takes its maximum value for $$0 \leq x \leq 1$$, what is $$x$$?


Bonus: Generalize this for the function $$x^n (1-x)^m$$.