Could any one help me factorising this term. I know the answer but I don't know how to get there. Thank you for your time.
$$-x+x\cos(x)+\cos(x)\sin(x)-\sin(x)=(\cos(x)-1)(x+\sin(x))$$
How do I get there? Is there a simple way to factorise terms like this?
This is "factoring by grouping." Factor $x$ out of the first two terms and factor $\sin x$ out of the last two terms. The two blobs left both have a factor of $(\cos x -1)$, so factor that out.