The numerator can be siplified by using factorization and denominator will be simplified using the formula
So,
A fraction is undefined when the denominator is zero. In order to find the value of m on which the simplified fraction will be undefined we will put denominator equal to zero.