You can prove this by contradiction. Assume P is rational.

then try squaring the equation

Use the facts that a square of a rational is a rational, and rational number addition and scalar multiplication is closed under the rational field.

Fiddle around with the squared equation and you'll just have to prove is irrational using those tricks you mentioned, which leads to a contradiction (a rational number = an irrational number)