I'm trying to solve this separable equation.
Answer: x^3-y^3=c (Apparantly my calculus book only have answer for every second assignment)
$$\frac{dy}{dx}=\frac{3y-1}{x}\\
\frac{dy}{dx}=\frac{3y-1}{x} \Rightarrow \frac{1}{3y-1}dy=\frac{1}{x}dx\\
u-substition\ where\ u=3y-1\ and\ \frac{du}{3}=dy\\
\int\frac{1}{3}\frac{1}{u}=\int\frac{1}{x}dx\Rightarrow \frac{1}{3}\int\frac{1}{u}=\int\frac{1}{x}dx \\
\frac{1}{3}ln(u)+c=ln(x)+c\Rightarrow \frac{1}{3}ln(3y-1)+c=ln(x)+c\Rightarrow \sqrt[3]{3y-1}=x+c\Rightarrow x^3-3y=c$$
I know I did something wrong, but I can't see what. Can you tell me where I broke the rule of maths?
EDIT: Is this a valid answer? $$\frac{1}{3}ln(3y-1)+c=ln(x)+c\Rightarrow ln(3y-1)+c=3ln(x)+3c\Rightarrow\\ 3y-1=e^{3ln(x)}e^{3c} \Rightarrow 3y-1=x^3c\Rightarrow 3y=x^3c+1\Rightarrow y=\frac{x^3c}{3}+\frac{1}{3}$$