Concept:
For an extremum point,
\[
y'(x)=0.
\]
Since
\[
\frac{d}{dx}\log|x|=\frac1x,
\]
we first differentiate the given function.
Step 1: Find the first derivative.
Given
\[
y=a\log|x|+bx^2+x.
\]
Differentiating,
\[
y'
=
\frac{a}{x}+2bx+1.
\]
Since extrema occur at
\[
x=-1
\quad\text{and}\quad
x=2,
\]
we have
\[
y'(-1)=0,
\qquad
y'(2)=0.
\]
Step 2: Use \(x=-1\).
\[
-\!a-2b+1=0.
\]
\[
a+2b=1.
\]
\[
\cdots (1)
\]
Step 3: Use \(x=2\).
\[
\frac{a}{2}+4b+1=0.
\]
Multiplying by \(2\),
\[
a+8b+2=0.
\]
\[
a+8b=-2.
\]
\[
\cdots (2)
\]
Step 4: Solve the equations.
Subtract (1) from (2):
\[
6b=-3.
\]
\[
b=-\frac12.
\]
Substituting into (1),
\[
a+2\left(-\frac12\right)=1.
\]
\[
a-1=1.
\]
\[
a=2.
\]
Step 5: Write the final answer.
\[
\boxed{\left(2,-\frac12\right)}
\]