$$\begin{vmatrix} a-x& b & c\\1& -x& 0\\0& 1& -x \\\end{vmatrix} $$
I did
$$(a-x) \begin{vmatrix} -x& 0\\1&-x\end{vmatrix}-b\begin{vmatrix} 1& 0\\0&-x\end{vmatrix}+c\begin{vmatrix} 1& -x\\0&1\end{vmatrix}$$
I got $$ax^2-a-x^3+x+bx+c+cx$$
But the answer in the book is $$-x^3+ax^2+bx+c$$
Is the answer simplified or am I doing it incorrectly?
Not quite - you seem to have evaluated some of the determinants for the $2\times 2$ matrices incorrectly. Your method for expanding the $3\times 3$ matrices is fine. But note $$\begin{vmatrix} -x& 0\\1&-x\end{vmatrix}=(-x)(-x)-(0)(1)=x^2\\\begin{vmatrix} 1& -x\\0&1\end{vmatrix}=(1)(1)-(-x)(0)=1$$ This will get rid of the extra $-a$, $+x$ and $+cx$ terms.