I have got the equation

I want to write it in this form

My efforts are these:-

I took the denominator

=

by completing square method

but now i am stuck up due to numerator

Kindly help me

And thanks to Fantastic ( i have learnt Latix as well little bit)