18: The domain is

D( f ) = (−∞,−1) ∪ (2,5) ∪ (5,∞).

The limits are