The equation and given values are $$ \begin{split} \frac{dy}{dx} &= \frac{y}{x+y^3}\\ y(2) &= 2 \end{split} $$
At first I thought it was a separation of variables problem, but I then was told later on by a tutor that it could be solved with substitution.
I then subbed-in with the following variables:
$$u+x\frac{du}{dx}=\frac{ux}{x+(ux)^3}$$
Then subtracted the $u$ from both sides and multiplied by the denominator:
$$x\frac{du}{dx}=\frac{ux-u(x+(ux)^3)}{x+(ux)^3}$$
$$x\frac{du}{dx}=\frac{ux-ux-u^4x^3}{x+u^3x^3}$$
$$x\frac{du}{dx}=\frac{-u^4x^3}{x+u^3x^3}$$
Now If I factor out an x from the quotient
$$x\frac{du}{dx}=-\frac{x(u^4x^2)}{x(1+u^3x^3)}$$
$$x\frac{du}{dx}=-\frac{u^4x^2}{1+u^3x^3}$$
Now can I further simplify the quotient till I can integrate or should I go back and do something different to make it easier.
It's not a homogeneous differential equation to use that substitution $(y=tx)$. You can consider $x'=\dfrac {dx}{dy}$ instead of $y'$, then the DE becomes linear. Or you can try this : $$\frac{dy}{dx} = \frac{y}{x+y^3}\\$$ $$({x+y^3}){dy} = {y}{dx}$$ $$ {y}{dx}-x{dy}=y^3{dy}$$ $$\frac {{y}{dx}-x{dy}}{y^2}=y{dy}$$ $$d \left ( \frac x y\right )=y{dy}$$ After integration it gives: $$ \frac x y =\dfrac 12 y^2 +C$$ $x$ as a function of $y$: $$ x(y) =\dfrac 12 y^3 +Cy$$ Apply initial condition: $$y(2)=2 \implies C=-1$$ Finally: $$ \boxed { x(y) =\dfrac { y^3}2 -y}$$