If the quadratic function y = (M + 1) x square + m square - 2m-3 passes through the origin, find M

If the quadratic function y = (M + 1) x square + m square - 2m-3 passes through the origin, find M

Because it is a quadratic function, M + 1 is not equal to 0, M is not equal to - 1. Take (0,0) into m ^ 2-2m-3 = 0 (M-3) (M + 1) = 0, because M = 1 is not equal to 0, so m = 3