The sum of two variable positive numbers is $200$. Let $x$ be one of the numbers and let the product of these two numbers be $y$. Find the maximum value of $y$.
NB: I'm currently on the stationary points of the calculus section of a text book. I can work this out in my head as $100 \times 100$ would give the maximum value of $y$. But I need help making this into an equation and differentiating it. Thanks!
Let the first number be $x$ and the second number be $z$. We have $$x+z=200\quad\Rightarrow\quad z=200-x.$$ We want to maximize $$y=xz=x(200-x)=200x-x^2.$$ Setting the first derivative equals $0$ yields \begin{align} \frac{d}{dx}\left(200x-x^2\right)&=0\\ 200-2x&=0\\ 2x&=200\\ x&=100. \end{align} Check the second derivative $$ \frac{d^2}{dx^2}\left(200x-x^2\right)=-2. $$ Since the second derivative of $y<0$, then $y$ will be maximum at $x=100$. Thus, the value of their product is $y=200x-x^2=\color{blue}{10,000}$.