To simplify the expression
\[ \frac{3x^2 + 2x - 5x - 2x^2 + 2}{(x-2)(x-1)(x+2)(x-2)(x+1)(x+2)}, \]
we'll follow these steps:
Step 1: Simplify the Numerator
Start with:
\[ 3x^2 + 2x - 5x - 2x^2 + 2. \]
Combine like terms:
\[ (3x^2 - 2x^2) + (2x - 5x) + 2 = x^2 - 3x + 2. \]
Step 2: Factor the Numerator
Next, factor \(x^2 - 3x + 2\):
\[ x^2 - 3x + 2 = (x-1)(x-2). \]
Step 3: Simplify the Denominator
The denominator is:
\[ (x-2)(x-1)(x+2)(x-2)(x+1)(x+2). \]
This can be rewritten as:
\[ (x-1)(x-2)^2(x+2)^2(x+1). \]
Step 4: Combine and Simplify
Now, we combine the simplified numerator and denominator:
\[ \frac{(x-1)(x-2)}{(x-1)(x-2)^2(x+2)^2(x+1)}. \]
Step 5: Cancel Common Factors
Cancel out \( (x-1) \) and one \( (x-2) \):
\[ \frac{1}{(x-2)(x+2)^2(x+1)}. \]
Final Answer
The simplified expression is:
\[ \frac{1}{(x-2)(x+2)^2(x+1)}. \]