I've been reading some basic classical algebraic geometry, and some authors choose to define the more general algebraic sets as the locus of points in affine/projective space satisfying a finite collection of polynomials $f_1, \dots, f_m$ in $n$ variables without any more restrictions. Then they define an algebraic variety as an algebraic set where $(f_1, \dots, f_m)$ is a prime ideal in $k[x_1, \dots, x_n]$.
My question has two parts:
I'm guessing the distinction is like any other area of math where you try to break things up into the "irreducible" case and deduce the general case from patching those together. How does that happen with varieties and algebraic sets? Is it correct to conclude that every algebraic set is somehow built from algebraic varieties since the ideal $(f_1, \dots, f_m)$ is contained in some prime (maximal) ideal?
How can one tell whether or not an algebraic set is a variety intuitively? I know formally you'd have to prove $(f_1, \dots, f_m)$ is prime (or perhaps there are some useful theorems out there?), but many times in texts the author simply states something is a variety without any justification. Is there a way to sort of "eye-ball" varieties in the sense that there are tell-tale signs of algebraic sets which are not varieties?
Perhaps this is all a moot discussion since modern algebraic geometry is done with schemes and this is perhaps a petty discussion in light of that, but nonetheless, I'd like to understand the foundations before pursuing that.
Thanks.
It is true that every algebraic set is a finite union of algebraic varieties (irreducible algebraic sets), and this union is unique up to reordering. These irreducible pieces of an algebraic set are called the irreducible components. This all follows from the fact that a polynomial ring over a field is Noetherian, so that an algebraic set with the Zariski topology is a Noetherian topological space.
As an example, I always think of the algebraic set defined by the ideal $(xz,yz),$ which is not prime. The real picture of this algebraic set is a line through a plane, and these two objects are exactly the irreducible components of the algebraic set. Here is the picture:
$\hspace{2.2in}$
The components are defined by the prime ideals $(z)$ and $(x,y)$ which are the two minimal prime ideals containing $(xz,yz)$. This may be the eyeball test you desire, as most people would look at this set and say it is made of two parts. In general, the irreducible components of an algebraic set defined by an ideal $I$ correspond exactly to the minimal prime ideals containing $I$.
Concerning your second question, it is not easy in general to determine when an ideal is prime. I asked a question here seeking different techniques to detect when ideals are prime. It is often easier to see that an ideal is not prime, as in the example I've given.