When I solve problems like this
$$ \frac{\mathrm{d}}{\mathrm{d} x}\int_{x}^{x^2}\ln^3 t\,dt $$
I usually would set $$ F(x)=\int_{0}^{x^2}\ln^3 t\,dt $$
and then with help of the fundamental theorem of calculus I would get:
$$ \int_{x}^{x^2}\ln^3 t\,dt=F(x^2)-F(x) $$
and then apply chain rule:
$$ \frac{\mathrm{d} }{\mathrm{d} x}\int_{x}^{x^2}\ln^3 t\,dt= \cdots = \frac{6\ln^2 x^2}{x}-\frac{3\ln^2 x}{x} $$
but in this case I get discontinuity at x = 0 and I guess that makes my solution invalid. I dont know how to tackle this problem so I appreciate all help I can get.
Two points of confusion here: