Unfortunately, your very first line is wrong. The logarithm of a sum doesn't simplify to the sum of the logarithms. In fact, the sum of the logarithms is the log of the product. You can't take advantage of logs when you have a sum of terms.Differentiate
Your problem occurs in the third line.Differentiate