I've been practicing some Fourier transform questions and stumbled on the following one.

To start off, I defined the Fourier transform for this function by taking integral from $-\tau$ to $0$ and $0$ to $\tau$, as shown below

from that, I evaluated the first integral and got the following result

then followed by the second integral

From the two integrals, I tried to solve for $X(\omega)$ by summing the two integrals

Now, this is where I got stuck. I am not sure how to express this as the required answer. Am I missing some small details or is it some basic algebra?
Sinc function is tricky, because there are two of them. It seems your book uses the convention $$\operatorname{sinc} x = \frac{\sin (\pi x)}{\pi x}$$ The desired answer is $$X(\tau) = \tau\frac{\sin^2 (\omega \tau/2)}{(\omega \tau/2)^2} = \frac{4}{\omega^2 \tau }\sin^2 (\omega \tau/2) =\frac{2}{\omega^2 \tau }(1-\cos \omega \tau) $$ Which is what you have, since $e^{j\omega\tau}+e^{-j\omega\tau}=2\cos \omega\tau$.