Find two positive numbers x and y such that their sum is 35 and the product x2y5 is maximum.
Let the numbers be x and y and p=x2y5, then x+y=35
⇒x=35−y,∴p=(35−y)2y5
On differentiating twice w.r.t. y, we get
dPdy=(35−y)25y4+y52(35−y)(−1)=y4(35−y)[5(35−y)−2y]=y4(35−y)(175−5y−2y)y4(35−y)(175−7y)=(35y4−y5)(175−7y)anddPdy2=(35y4−y5)(−7)+(175−7y)(4×35×y3−5y4)=−7y4(35−y)+7(25−y)×5y3(28−y)=−7y4(35−y)+35y3(25−y)(28−y)
For maxima put dPdy=0
⇒y4(35−y)(175−7y)=0⇒y=0,35−y=0,175−7y=0⇒y=0,y=25,y=35
When y=0, x=35-0=35 and the product x2y5 will be 0.
When y=35 and x=35-35=0. This will make the product x2y5 equal to 0.
∴ y=0 and y=35 cannot be the possible value of y.
When y=25,
(d2Pdy2)y=25=−7×(25)4×(35−25)+35×(25)3×(25−25)(28−25)=−7×390625×10+35×15625×0×3=−27343750+0=−27343750<0
∴ By second derivative test, P will be he maximum when y=25 and x=35-25=10.
Hence, the required numbers are 10 and 25.