Find the equation of the curve for which y'=3x² and which passes through (1,-1).