Let the two number is x and y
According to given question.
Sum of two number =24
x+y=24
Then, y=24−x.......(1)
Again, product
P=maximum=x×y
P=x(24−x2)
P=24x−24x2.......(2)
We know that,
For maximum value
dPdx=0
Now differentiating equation (2) with respect to x and we get,
dpdx=24−2x
24−2x=0
2x=24
x=12
Again, differentiating equation (2) with respect to x and we get,
d2pdx2=−2<0
Then,P is minimum at point x=12
Hence, the required numbers is x=12 and y=24−x=24−12=12 i.e.(12,12)
This is the solution.