I know others have already posted about this recurrence $T(n) = 2T(n/2) + n\lg n$ on the following these two posts: post1 and post2
However, the style in which they have solved them, is not one with which I am ery familiar. I was hoping someone could look at my work so far, and then point me in the right direction or show me what I am doing wrong. This is my work up to this point:
$$T(n) = 2T(n/2) + n\lg n$$ $$=2[2T(n/2^2) + (n/2)\lg (n/2)] + n\lg n$$ $$=2^2T(n/2^2) + n\lg(n/2)+n\lg n$$
I expanded this recurrence out a bit further and finally found the general formula:
$$2^kT(n/2^k)+n\sum_{i=0}^klg(n)-lg(2^i)$$
I understand what to set $k$ equal to in order to arrive at $T(1)$, but I honestly don't understand how to simplify the summation in this problem. Should I keep the logarithm (which is base 2 by the way) in the following format $\lg(n/2^i)$ and split the summation, or is there another way to simplify this summation? I am stuck.
EDIT
So, I made some errors in my formular when I orignally posted this. Looking at the general formula above involving $k$ now, I am still wondering how to simplify and solve it. I am not sure what to do with the $\sum_{i=0}^klg(n)$. For the $lg(2^i)$ term I am thinking I can just pull the $i$ down and pull the $lg(2) outside of the summation.