Rewrite as .

Rewrite as .

Since both terms are perfect squares, factor using the difference of squares formula, where and .

Rewrite as .

Factor.

Since both terms are perfect squares, factor using the difference of squares formula, where and .

Remove unnecessary parentheses.

Factor p^4-16