The gradient of a curve at any point (x,y) is 3x2. Given that the curve passes through the point (-2,3), find its equation.