gillgill said:
How should two nonnegative numbers be chosed so the their sum is 1 and the sum of their squares is
a) as large as possible
b) as small as possible
here's what I've got so far:
x+y=1; y=1-x
x^2+y^2=S
x^2+(1-x)^2=S
S'=2x-2+2x
0=2x-2+2x
2=4x
x=1/2
How do u know if it is the largest possible or smallest possible?...and how to u find the other solution?
Two easy ways. x=1/2 is either a max or a min.
Try x=1/2 in your equation. Try a number on either side of x=1/2 in your equation. Compare the answers - are the results on either side of x=1/2 greater or smaller?
Try the second derivative test.
f'(x)=4x-2 (the two 2x's can be combined)
f"(x)=4
What's the value of f"(x) when x=1/2? If it's positive, then you have a local minimum. If it's negative, you have a local maximum. In this case, f"(x)=4 regardless of the value of x, so you only have a local minimum that occurs when f'(x)=0.
The first way always works. The second way has a few situations where it won't work, but it's usually the easiest way (your book should show a couple of examples to watch out for when you want to use the second derivative test).
You have no absolute maximum, in general, but you set a boundary when you defined the problem. Both numbers have to be positive (lower x-boundary is zero) and the sum of both numbers can't be greater than 1. Since y also can't be negative, the upper boundary for x is 1. Your boundaries are your maximums.