Answer
$d^n(2d-3)(d-1)$.
Work Step by Step
The given expression is
$=2d^{n+2}-5d^{n+1}+3d^n$
$=2d^{n}d^2-5d^{n}d+3d^n$
Factor out $d^n$.
$=d^n(2d^2-5d+3)$
Rewrite the term $-5d$ as $-3d-2d$.
$=d^n(2d^2-3d-2d+3)$
Group terms.
$=d^n[(2d^2-3d)+(-2d+3)]$
Factor from each group.
$=d^n[d(2d-3)-1(2d-3)]$
Factor out $(2d-3)$.
$=d^n(2d-3)(d-1)$.