#### Answer

$x^2-x-4$

#### Work Step by Step

Removing the grouping symbols and then combining like terms, the given expression, $
(2x-5)+(x^2-3x+1)
,$ simplifies to
\begin{array}{l}\require{cancel}
2x-5+x^2-3x+1
\\\\=
x^2+(2x-3x)+(-5+1)
\\\\=
x^2-x-4
.\end{array}