When substitution gives , the numerator and the denominator share a factor that vanishes at . Factor both, cancel that factor, then substitute again.
| Step | On | |
|---|---|---|
| 1 | Substitute and confirm the form. means "not yet decided", not "undefined". A nonzero number over is a different situation: see one-sided limits.Direct substitution ↗ | |
| 2 | Factor the numerator and the denominator. Because both are at , both contain the factor . | |
| 3 | Cancel the common factor. Legal for , which is all the limit cares about. | |
| 4 | Substitute again. The simplified expression is continuous at .Direct substitution ↗ |