I am reaching out for specific advice on how one should go about finding counterexamples. It seems almost every time I've ever attempted a "find a counterexample" problem, I have to cheat by asking a friend, or I have to use a computer. That being said, I've encountered another problem which I can look up the solution to, and probably understand why it is a counter example after it is given to me, but I am helpless when it comes to actually finding it. That being said, I am asking if someone could post a counterexample to the following problem and explain to me their thought process. This would help me so much.

Problem: Give an example of two subgroups $H$ and $K$ of a group $G$ whose union $H\cup K$ is not a subgroup of $G$.

How far I've gotten: I know that a nonempty subset $H$ of a finite group $G$ is a subgroup if and only if $a,b\in H$ implies $ab\in H$. Using this we can know that If $a,b\in H\cup K$, but $ab\not \in H\cup K$, then $H$ is not a subgroup of $G$. So I know what a counterexample should look like if I see one, but how do I find it?

Thanks so much.

• To find counter-examples, you must at least be able to write down examples. Here are some groups you should know: $S_n$, $D_{2n}$, $\mathbb{Z}/n\mathbb{Z}$. Now play! – RghtHndSd Mar 31 '15 at 19:31
• @valentino This is a very valuable skill, and maybe not the easiest to acquire. I can't remember all the best advice I've heard, but I'm sure "look for extremes" was on that list of advice. Of course, you can always try all the simple examples you know. Even if none of them are satisfactory, you'll have become more familiar with those particular examples. Over time, you'll get a good supply going. – rschwieb Apr 1 '15 at 0:22
• Let's see. If one subgroup is contained in the other, then the union will just be the bigger one, so that's not a counterexample. I need a group with two subgroups, neither contained in the other. How about I just grab the first example of two incomparable subgroups I can think of, and check whether the union is a subgroup? OK, first example that came to mind is two subspaces of a vector space, considered as an additive group. OK, two lines through the origin, in the real plane. Is the union of two lines closed under vector addition??????? – bof Apr 1 '15 at 0:25
• To complement the comment by @bof, the first thing to do when looking for counterexamples is to just see what happens in the simplest of examples you can think of. If they turn out to be just too simple to be counterexamples (in your case taking $H=G$ for instance) just try something slightly less trivial there. In some cases (like your problem) one can almost not avoid hitting a counterexample, and you are done. Some properties are more subtle and need more complicated counterexamples. But never forget to try the obvious. – Marc van Leeuwen Apr 1 '15 at 9:31
• In addition to the helpful answers/comments, I just wanted to mention that your subgroup definition is incorrect. For example, for $\mathbb{N}\subseteq \mathbb{Z}$, we see that for $a,b\in \mathbb{N}$, $ab\in \mathbb{N}$. The fix: in addition to requiring $ab\in H$, you also have to require that $a^{-1}\in H$. – Jason DeVito Apr 1 '15 at 17:30

Perhaps the best way of going about these things is to look towards the simplest possible counterexamples first. For example, if you have ever taken point-set topology, you'll know that the indiscrete topology and the discrete topology are the first two spaces that should pop into your mind when looking for examples simply because they are so easily "grokked" by our minds (followed by metric spaces, then Hausdorff spaces, and so forth).

So what about when it comes to problems like this in abstract algebra? Well, we've been well-acquainted with the additive group $\mathbb{Z}$ since grade school! Why not start there?

My (naive) advice is to try to make a property fail in simple, easy-to-work-with structures first, and only dive into the abstraction as a last resort. Finally, as a general rule of thumb, it's easier to prove something once you've developed a certain degree of intuition and are convinced the result should go one way or another. The great Riemann conveyed this best: "If only I had the theorems! Then I should find the proofs easily enough."

If you don’t find a counterexample using the approaches already suggested, try to prove the theorem, and see where you get stuck: this may well give you a better handle on the properties that a counterexample will have to have, and that’s invaluable information when you’re searching for a counterexample or trying to construct one from scratch. This doesn’t really arise in the case under consideration, because counterexamples are very easy to come by: it’s almost harder not to find one. In more complicated settings, however, the technique is very helpful.

• Well, maybe I am a very unlucky person, I often found it hard to get myself bump into counterexamples by trial and error, which is why I make use of your method ([which is similar to mine][1]) alot in order to help me locate them, and end up consuming a lot of time in the process... [1]: math.stackexchange.com/questions/53926/… – Secret Aug 2 '15 at 14:16

In this particular case, Lagrange's Theorem is the first thing that comes to my mind. If we just pick two subgroups $H, K \leq G$, there's no reason that $|H \cup K|$ should divide $|G|$, while it must, in order to be a subgroup.

The easiest kind of $|G|$ is some power of $2$ (this gives me the option of finding two subgroups of order $2$ whose union must have size $3$, instantly disqualifying the union from being a subgroup, as $3 \not\mid 2^n$).

So, pick your favorite two subgroups of the Klein $4$-group!

To try and go into a bit more detail about the though process/tips specific to group theory. Lagrange's Theorem is one of the most fundamental results concerning a relationship between a group and its subgroups. So, it seems natural to me that we should be able to find some counter-example utilizing something so fundamental. Almost all of my group theory background is in the finite case, where divisibility plays an enormous role.

So, I honed in on one of the most basic theorems we have, regarding a group and its subgroups. Then I thought about what conditions on $H, K$ would make finding $H, K$ as easy as possible, so that it couldn't possibly be the case that $|H \cup K|$ divides $|G|$. Using subgroups of size $2$ is nice, as $H \neq K$ immediately implies that $|H \cap K| = 1$, so that $|H \cup K| = 4 - 1 = 3$.

Having a handful of small groups, or small 'kinds' of groups also does wonders, like the Klein $4$-group here.

• Very nice answer! – Benjamin Dickman Apr 2 '15 at 22:00
• @BenjaminDickman Thank you, I definitely appreciate that! – pjs36 Apr 2 '15 at 23:31
• The only thing I might add is that, at least for me, I try to contradict set size or closure. In this case, you can union any two $2$-element subgroups of the Klein $4$-group, multiply the non-identity elements together, and show that closure fails for the set. (Your answer, quite reasonably, took the set size route instead...) – Benjamin Dickman Apr 3 '15 at 2:10

It seems like people have already come up with answers regarding your particular problem, so I think I'll just throw a few words around regarding how to find counterexamples. I have two basic strategies myself that I use when thinking about theorems and problems.

1) Consult a list of known counter-examples. This is a really good strategy in subjects like analysis and topology. I don't know how well it works in algebra, but I expect there are several known pathological counter-examples. Although I don't have a whole lot of experience, I expect groups like the Klein 4-group, and perhaps scalar copies of the integers are probably really good starting points in group theory. Even if you don't have a list of known counter-examples to work with, you do have certain knowledge of classes of groups, and so you can try working with some of them. Take a pass at scalar copies of the integers. If that doesn't work, think about why it didn't work. Maybe the integers modulo a prime will work.

2) Try to construct the specific counter-example you have in mind. This method is generally a little bit harder, but is sometimes a good method. It's what I would do to solve this particular problem, and it's basically what pjs36 did in his answer. To use this more direct method, the point is to try to quantify some facet of the thing in question, and use it to create the object you want. In his example, he is basically saying that if $|G|$ has order 4, and you have two normal subgroups, each has order 2, but they are different groups, both with the identity. So they each contain the identity and one other element. But then there are three elements, so this thing cannot possibly be a subgroup since 3 does not divide 4. The trick to this latter technique is having a (sufficiently) simple theorem or even a rule of thumb you can use as a guide line, which you will eventually end up violating. The Lagrange theorem is that theorem in this case, as it is a very simple and useful counting theorem which gives lots of meaningful information.

And of course as with all problems and all skills in general, practice is the most important thing. If you are just looking for practice coming up with counter-examples, there are two small books you could check out, Counter-examples in Analysis and Counter-examples in Topology. You could read these books and try to come up with the counter-example before reading the proof. If you can't see it, read what the counter-example is, and then try to come up with the proof yourself. If you still can't see the trick, then read the proof, and try to take careful notes on what is at work conceptually, so you can see exactly what has to be exploited in order to come up with the counter-example.

I know that this is not exactly related to your struggles in algebra, but the topology text really helped me when I was in a similar situation.

You could try working with groups that are already familiar to you, like subgroups of the integers. Posed that way, it is asking you to find two sets that are closed under addition and inverses, but their union isn't. The only subgroups here have the form $n \mathbb Z$. Is the union of two such sets going to be a subgroup? The first place to look is at $2\mathbb Z$ and $3 \mathbb Z$.

First, your own question to give me some clarity:

I am asking if someone could post a counterexample to the following problem and explain to me their thought process. This would help me so much.

Problem: Give an example of two subgroups $H$ and $K$ of a group $G$ whose union $H\cup K$ is not a subgroup of $G$.

Here is my thought process:

I need to find a group, $G$, big enough to have two different subgroups.

I need to make sure that I don't have $H \subset K$ lest $H \cup K = K$, a subgroup of $G$.

Similarly, I must avoid $K \subset H$.

Okay: the symmetries of a triangle give rise to the group $S_3$, which has six elements. This example comes to mind because it is a bit weird among the small groups; for example, it is the smallest nonabelian group. Also, it is has a bunch of subgroups that I sort of remember.

Once I have this example in mind, I know the concerns above about picking subgroups with one contained in the other can be avoided. My strategy now would be either to pick two of the fold groups (the ones represented by switching two vertices of a triangle) and checking to see if that messes up closure or set size, or to pick one fold group and one spinning group (the three element rotation group isomorphic to $\mathbb{Z}/3\mathbb{Z}$) and then see if that messes up closure or set size.

When I say set size, I do mean, in particular, that a group's order is divisible by the order of any of its subgroups (i.e., Lagrange's Theorem).

Okay: Let's give it a shot using the latter idea. We take the group with three elements (the rotations) and another group with two elements (a fold); let us see if we can mess up group size. Each of these groups contains only the identity in their intersection, so their union would have $3+2-1 = 4$ elements (three in the first group; two in the second group; but we have double-counted the identity, so we subtract one).

But now our union of subgroups has $4$ elements, which does not divide the order of $S_3$, i.e., $6$. So the union being a subgroup would contradict Lagrange's Theorem, and we are done.

In retrospect, I might check to see what would have happened with closure using the subgroups we ended up picking. Alternatively, I might take a shot at the other idea: Picking two of the fold groups and seeing if their union messes up group size (no, the union has $2 + 2 - 1 = 3$ elements, which divides $|S_3| = 6$) or closure. (A quick check reveals that, indeed, closure is a problem for both the subgroup we picked and any two of the fold groups; so counterexamples abound!)

I didn't see this general reply in the other answers. I usually look at the edge cases. If those don't work, I try to slightly change the edge cases.

It seems to me that there are few different scenarios here.

1. "Typical" cases. These can be found by simply trying the first examples that come to mind and see if they satisfy the requirements. Being "typical", we readily hit on a valid example. The sub-group problem given fits into this category.
2. "Special" cases. These can be looked for by using known special or edge cases of the problem concerned. For example, the trivial group, the empty set, an infinite group such as the integers. More generally look at each and very condition in the theorem and look for examples making use of those conditions.
3. "Obscure" cases. Sometimes it is just really hard to find the counterexample. Having worked through the "typical" and "special" cases, keep generating more examples that seem different in some way to those generated already. This will give you a feel for the problem and you may hit the example required.

Of course, a priori, we do not know which applies, so work through the above in order.

If this sounds tedious (depending on how you learn and understand maths), you may find that working examples as suggested gives you a better feel for the structure being studied and hence the meaning of the formal results.

Advice: just try something! I hope you noticed that in your question, you have not mentioned any specific groups at all! (I think this is what RghtHndSd is saying in a comment.)

Roughly speaking, if something is not always true, then you can expect it to be nearly always false, as long as you avoid "special" cases. So just try any example and you have a pretty good chance of success.

Good examples come from linear algebra.

Example. Prove that multiplication of $2\times2$ matrices is not commutative, that is, that $$AB=BA$$ is not always true. Solution. I want an example of two matrices $A,B$ such that $AB\ne BA$. I am not going to take $A$ to be the zero matrix, or the identity matrix, or a scalar times the identity, because these are special cases. So why not just try $$A=\pmatrix{1&2\cr3&4\cr}\ ?$$ Now $B$ should not be any of the above matrices either, nor should it be a scalar times $A$ as that now will also be "special". So take $$B=\pmatrix{4&3\cr2&1\cr}\ .$$ Calculating, $$AB=\pmatrix{8&5\cr 20&13\cr}\ ,\qquad BA=\pmatrix{13&?\cr?&?\cr}\ ,$$ no need to calculate any more, and we have our example. If it had turned out that $AB=BA$ then I would have tried another, possibly more "random", example, and if that still gave $AB=BA$ I would start to think more systematically (and might begin to suspect that actually $AB=BA$ is always true). But I suggest that it is a waste of time trying to think completely systematically from the outset. Just try something.

## protected by user26857Aug 15 '15 at 7:04

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).