How to prove that any two numbers with a fixed sum have the highest product when both equal half of the sum?
Example:
Given sum equals $10$.
Why is then $5\times5$ more than $6\times4, 7\times 3, 8\times2$, etc.?
How to prove that any two numbers with a fixed sum have the highest product when both equal half of the sum?
Example:
Given sum equals $10$.
Why is then $5\times5$ more than $6\times4, 7\times 3, 8\times2$, etc.?
On
Suppose $x+y=k $, where $k $ is a fixed real number. We want to maximise $x\cdot y =x(k-x)=f(x)$. Differentiation w.r.t. $x$ will give us $f'(x)=k-2x$. Equating $k-2x $ to $0$ gives $x=\frac k2 \implies y=\frac k2$.
On
You want two numbers which give a particular sum and you want to maximize their product:
$$m+n = c \tag{1}$$
$$m(n) = ? \tag{2}$$
You can rewrite the first equation in terms of either $m$ or $n$. For instance, if you choose to express it in terms of $n$, you get $n = c-m$. Plugging this in $(2)$, you get
$$m(c-m) = -m^2+cm$$
If you know about quadratics, functions in the form $y = ax^2+bx+c$, you could use the fact that $a$ is negative here, so the quadratic has a maximum, which occurs at $h = -\frac{b}{2a}$. Using $a = -1$ and $b = c$, you get $-\frac{c}{2(-1)} = \frac{c}{2}$, so the maximum product occurs when both $m$ and $n$ are half their sum (and are equal to each other).
Hint: Let $$a+b=s$$ then $$ab=a(s-a)=-a^2+sa$$ where $s$ is given.