$$T(k) = 2T(\frac{k}{2})+k^2$$ $$T(k)\leq 2(c(\frac{k}{2})^2\log(\frac{k}{2}))+k^2$$ $$T(k)\leq \frac{ck^2\log\frac{k}{2}} { 2} + k^2$$ $$T(k)\leq \frac{ck^2logk}{2} - \frac{ck^2}{2} + k^2$$ $$T(k)\leq ck^2logk$$
There's something I don't understand with the last two lines. I don't know how the $$- \frac{ck^2}{2}$$
got there. Is it just basic math I'm missing?