Integral of $\frac{\ln (x^2)}{x}$ I'm not sure where to start with this problem. I have the answer, but do not know how to work it out. I always get confused when it comes to integrating natural logs. Do I use u substitution or integration by parts? I've tried working it out with both, but I'm not sure what to use as u. I tried $(\ln x)^2$ as u, but ended up with $\frac{(\ln x)^3}{3} + C$ when it should be $(\ln x)^2 + C$ (I apologize for improper format).
 A: Note that $\frac{1}{x}=\frac{d}{dx}\log(x)$, therefore:
$$\int \frac{(\log (x))^2}{x}dx=\frac{(\log(x))^3}{3}+C$$
In case you meant $\log(x^2)$, check Babak's answer.
A: If you have $\int\frac{\ln(x^2)}{x}dx$ then note that $\ln(a^b)=b\ln(a), a>0$ so you have $\int\frac{\ln(x^2)}{x}=\int\frac{2\ln(x)}{x}dx$ and this latter one can be evaluated by setting $\ln(x)=t$. For another one look at @Amr's answer.
A: If you are trying to find an explicit formula for the antiderivative of a function given by an explicit formula, it is essential that you know what the explicitly given formula means.   While you could solve the problem both ways for additional practice, clearing up what the actual problem was in the first place is still needed.  
When notation is ambiguous, there is not generally a correct mathematical way to figure out what the notation means.  It requires some way of finding out what conventions are used in the source of the problem.  If the problem is in a textbook, you often find explanations of the conventions earlier in the book, or at least enough context from earlier examples to determine the conventions.  If the problem came from a teacher, you can ask the teacher what is meant.  If the problem arises in the real world, you can look at the context of where it came from, and you may want to kindly ask the person who wrote it down to use less ambiguous notation in the future.
In calculus textbooks, it is common to denote powers of some functions by putting the exponent between the function name and the argument.  This allows less parentheses to be written, and thus laziness may be a key source of the popularity of the convention.  This is most commonly seen for trigonometric functions.  E.g. $\sin^4 x$ means $(\sin(x))^4$.  When this convention is used, appearance of something like $\sin x^4$ can usually be safely inferred to mean $\sin(x^4)$.  The reason it would be expected to not mean $(\sin(x))^4$ is that the latter would be written instead as $\sin^4 x$.
The same convention may be applied to logarithms, and thus $\ln^2 x$ could mean $(\ln(x))^2$ while $\ln x^2$ would mean $\ln(x^2)$, which turns out to be equivalent to $2\ln(|x|)$ for all real nonzero $x$.  The context of what you say the answer "should be" indicates that $\ln x^2=\ln(x^2)$ is likely to be the convention used in your problem, whereas $(\ln x)^2$ is used when the function is squared rather than the argument.  (So while I don't see evidence of your source using the "$\ln^2 x$" notation, they do seem to keep the convention that exponents after the argument without parentheses apply to the argument, not the function.)  
A: Can be solved using substitution method: 
Edit: $ln{(x^2)}$ can be written as $2ln{x}$. (Basic properties of logarithms) So the main equation now looks like: $\int\frac{2ln{x}}{x}dx$  Now, the substitution part:  Put $ln{x} = t$ 
differntiating both the sides:  $\tfrac{dln{x}}{dx} = \tfrac{dt}{dx}$  => $\frac{1}{x}dx = 1dt$ 
Now substitute $ln{x} = t$ and $\frac{dx}{x} = dt$ in the main expression 
The expression so formed is: $\int 2tdt$  Now, it's easier to integrate this.  We get: $2\frac{t^{2}}{2}$ + C = $t^{2}$ + C  Now substitute $ln{x}$ back with $t$ 
We get $(ln{x})^2$ + C. 
