Concept:For a function y=f(x), a maximum occurs where dxdy=0 and dx2d2y<0.Explanation:Expand the given expression:y=x(x+1)2=x(x2+2x+1)=x3+2x2+xDifferentiate with respect to x:dxdy=3x2+4x+1Set dxdy=0:3x2+4x+1=0(3x+1)(x+1)=0So x=−31 or x=−1.Now find the second derivative:dx2d2y=6x+4At x=−31:dx2d2y=6(−31)+4=2>0This gives a minimum.At x=−1:dx2d2y=6(−1)+4=−2<0This gives a maximum.Substitute x=−1 into y:y=−1(−1+1)2=0Answer:The maximum value of y is 0.Correct option: B. 0