That is the identity I used to expand the (x+h) terms but could not factor to the next step due to the sin(h) term... unless I made an error in my expansion that I haven't caught?
In your work, factor a sin(x) from the first 2 terms and cos(x) from the next 2 terms. You should now have the same as the solution guide. Note that it takes 2 lines to display theirs. I don't know what you've done in the denominator, though. .