For the first limit, you can factor the numerator as a difference of squares:

and the first factor can be factored the same way:

More generally, we have the formula

so really, for
,

In any case, we get

For the second limit, you can factor the denominator by grouping:

Then the limit is
