Let's have a more concrete example, suppose we are considering $\mathbb{R}[X,Y]$ and $P(X,Y)=X^3+Y^3.$ Well I can tell that $X+Y$ is a factor straight away and I am left with $X^2-XY+Y^2$ but I cannot tell straightaway wether this is irreducible or not.
What I did was using quadratic formula by holding either $X$ or $Y$ constant to consider further its reducibility. However I am just a bit curious if there is a quicker way of doing this? Because had my polynomial being any higher 'degree' then I will be in a lot of trouble. Is there a trick where we can perhaps convert $\mathbb{R}[X,Y]$ into something we are more familiar about?
Many thanks in advance!
In general it's just hard but there are some methods that are easy when they work. Here are some exercises involving checking whether a polynomial in two variables is irreducible in roughly increasing order of difficulty, with spoilered solutions describing the techniques involved.
Exercise 1: When is the polynomial $ax^2 + bxy + cy^2$ irreducible?
Exercise 2: When is the polynomial $y^2 - (x^3 + ax + b)$ irreducible?
(This is the (affine) equation of an elliptic curve in Weierstrass form.)
Exercise 3: Is the polynomial $(y^3 - y) - (x^6 - 1)$ irreducible?
(There's nothing special about this polynomial.)