I'm trying to copy over a question from my math homework to LaTeX, and can't figure out how to replicate this box between $G_1$ and $G_2$:
I've tried \qed, but that is always preceded with a space:

I've tried \fbox{}, but it is too low in the line: 
How do you think my professor achieved the box?

\qedis for the end of proofs. Did you try\Boxor theams\square? – Bernard Nov 11 '19 at 23:34\squareThanks! Leave that as an answer and I'll accept it. – Josh Katofsky Nov 11 '19 at 23:38\mathbin{\square}(or define a personal macro as a shortcut). – Bernard Nov 11 '19 at 23:42