ln is the natural log. The thing to remember with differentiating natural log is the simple formula U'/U. The U is whatever is in the brackets. This means we differentiate X^2 and divide it by X^2. X^2 differentiated is 2X because of the chain rule. Now we have 2X/X^2. This simplifies to 2/X .