The required solution is given. I have to prove that its solution is $O(n\log n)$.
My idea is shown below:
I have to prove, $T(n) \le cn\log n$ for some constant $c$ $$\begin{align} T(n) &\le 2c\log(n/2) + n\\ &= 2c\log(n) - 2c\log(2) + n\\ &= 2c\log(n) - 2c + n\\ &= c\log(n) + ( c\log(n) - 2c + n )\\ &\le c\log(n) \end{align}$$ it will be true if $( c\log(n) - 2c + n ) \ge 0$.
Is my procedure is correct?
If no, can anyone tell me how I can solve this problem with appropriate value of $c$ and $n$?
If yes, then how I can find out appropriate value of c and n using this relation clog(n) - 2c + n ) >= 0.