I'm working on finding out the length of the curve $$ 3ay^2=x(x-a)^2 \tag{1} $$
I ran into a small problem, but was able to end up with an answer that looks right but I'm not entirely sure about it. Here's my approach:
The length of a curve $f(x)$ between $x=a$ and $x=b$ where $b>a$, is given by $$ L=\int_a^b\sqrt{1+\big[f'(x)\big]^2}dx $$ where $f'(x)$ is continuous in $[a,b]$. In our case
$$ L=\int_0^x\sqrt{1+\big[y'\big]^2}dt \tag{2} $$
Curve $(1)$ is symmetric about the $x$-axis. Hence I'll just work on the length of the part that is above the $x$-axis and then double that to obtain the entire length. $$ y=(x-a)\sqrt{\frac{x}{3a}} \text{ (One half of the curve, the other half being the negative multiple)} $$ Note that $(1)$ is defined for $x\geq0$ and $a>0$. That is why I've taken the limits of integration as $0$ to $x$.
Therefore, $$ y'=\frac{3x-a}{\sqrt{12ax}} $$
But $y'$ is not continuous at $x=0$ and hence I can't plug this into $(2)$. So, let me calculate the length from $h>0$ to any $x$. Therefore, we have $$ \begin{aligned} L &= \int_h^x\sqrt{1+\big[y'\big]^2}dt \\ &= \int_h^x\sqrt{1+\left(\frac{3t-a}{\sqrt{12at}}\right)^2}dt \\ &= \int_h^x \frac{3t+a}{\sqrt{12at}} dt \\ &= \frac{x^{\frac{3}{2}}-h^{\frac{3}{2}}+ax^{\frac{1}{2}}-ah^{\frac{1}{2}}}{\sqrt{3a}} \end{aligned} $$
Now, since I want the length in $[0,x]$, I'll just take the limit $h\rightarrow0$, which yields $$ \boxed{L=(x+a)\sqrt{\frac{x}{3a}}} $$ The length of the curve in question would be double the above.
I don't see any problem with what I've done. Is this good?