Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I'm trying to transform this: $$n \log n + n \log(n^{\log n})$$ into big O notation.

I can't get to reduce the right part of the addition...

Neither of these work: $$n^{\log n} \log(n)\qquad\text{nor}\qquad n \log(\log n * n)$$

I was planning to get them to multiply together, and then I would have only 1 small function.

How do I reduce the right part ?

share|improve this question
    
I can't quite see your formatting –  Rustyn Feb 10 '13 at 18:23
    
thanks, I fixed the formating a bit. –  Dave Feb 10 '13 at 18:24
add comment

1 Answer 1

up vote 4 down vote accepted

Notice that $n\log(n^{\log n}) = n (\log n)^2$. So $$ n\log n + n \log(n^{\log n}) = n\log n + n \log^2 n $$ $$ = n \log n(1+\log n) = n (\log n) O(\log n) = O(n \log^2 n) $$

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.