I'm trying to find the function $ y = y(m) $ in terms of $k, \alpha \text{ and } y_0$ given the force function for a real spring $F = -kx + \alpha x^2$. I also know that $x = y_0 + y$ and $F = ma$ where $a$ is the second derivative of $x$. The problem is, whe I substitute
$m \frac{d^2(y_o-y)}{dy^2} = -k(y_0 - y) + \alpha(y_0 - y)^2$
I'm not sure whether the term $\frac{d^2(y_o-y)}{dy^2}$ is correct and if I can really take the derivative there.
Edit: I think I came up with a solution.
since $x = y_0 - y$ then $\dot{x} = -1 $ and $\ddot{x} = 0$. With that in mind We can move to:
$$ 0 = -k(y_0 - y) + \alpha(y_0 - y)^2 $$ which will take us to $$ y(y\alpha - 2y_0\alpha +k) = -y_0(y_0\alpha -k ) \text{ or } y^2\alpha - y(2y_0 + k) = -y_0(y_0\alpha - k) $$ But, once again I'm stuck here... I don't know how to get away with $y$ as a function here.