Judge whether the triangle with three sides of n ^ 2-1, 2n, n ^ 2 + 1 (n > 1) is a right triangle? And explain the reason

Judge whether the triangle with three sides of n ^ 2-1, 2n, n ^ 2 + 1 (n > 1) is a right triangle? And explain the reason

Is (n ^ 2-1) ^ 2 + 4N ^ 2 = (n ^ 2 + 1) ^ 2
Pythagorean Theorem A ^ 2 + B ^ 2 = C ^ 2