If you wrote the problem down correctly, your work looks fine to me.
h(x+h)+2x+h−x+22=h(x+h+2)x+h−h(x+2)2=
h(x+h+2)(x+2)(x+h)(x+2)+h((x+2)(x+h+2)(−2)(x+h+2)=h(x+2)(x+h+2)x2+hx+2x+2h−2x−2h−4=h(x+2)(x+h+2)x2+hx−4.
However, I suspect the INTENDED problem was
hx+h+22−x+22=h(x+h+2)2−h(x+2)2=h(x+2)(x+h+2)2(x+2)+h(x+2)(x+h+2)(−2)(x+h+2)=
h(x+2)(x+h+2)2x+4−2x−2h−4=h(x+2)(x+h+2)−2h=(x+2)(x+h+2)−2.
Note that the answer above is the same as the one indicated in the book except for the minus 2 instead of the plus 2. The above is a little introduction to differential calculus. Perhaps the book misstated the problem. Perhaps you misread the problem.
EDIT: I suspect Soroban made a better guess at the intended problem than I did. Notice that his ended up with the right sign.