Concept:For extremum values, the first derivative dxdy must be zero at the given points x=−1 and x=2.Explanation:Given y=alogx+bx2+x.Differentiate with respect to x:dxdy=xa+2bx+1.Since x=−1 is an extremum point, dxdy=0 at x=−1:−a−2b+1=0⇒a+2b=1.Since x=2 is an extremum point, dxdy=0 at x=2:2a+4b+1=0⇒a+8b+2=0.Subtract the first equation from the second:(a+8b+2)−(a+2b)=0−1⇒6b=−3⇒b=−21.Substitute b=−21 into a+2b=1:a−1=1⇒a=2.Thus, a=2 and b=−21.Answer:a=2,b=−21Therefore, the correct option is B.