Why can you turn clothing right-side-out?
My nephew was folding laundry, and turning the occasional shirt right-side-out. I showed him a "trick" where I turned it right-side-out by pulling the whole thing through a sleeve instead of the bottom or collar of the shirt. He thought it was really cool (kids are easily amused, and so am I).
So he learned that you can turn a shirt or pants right-side-out by pulling the material through any hole, not just certain ones. I told him that even if there was a rip in the shirt, you could use that to turn it inside-out or right-side-out, and he was fascinated by this and asked "why?"
I don't really know the answer to this. Why is this the case? What if the sleeves of a long-sleeve shirt were sewn together at the cuff, creating a continuous tube from one sleeve to the other? Would you still be able to turn it right-side-out? Why? What properties must a garment have so that it can be turned inside-out and right-side-out?
Sorry if this is a lame question, but I've always wondered. I wouldn't even know what to google for, so that is why I am asking here.
If you know the answer to this, could you please put it into layman's terms?
Update: Wow, I really appreciate all the participation. This is a really pleasant community and I have learned a lot here. It seems that the answer is that you need at least one puncture in the garment through which to push or pull the fabric. It appears that you can have certain handles, although it's not usually practical with clothing due to necessary stretching.
Accepted (a while ago actually -- sorry for not updating sooner) Dan's answer because among the answers that I understand, it is the highest ranked by this community.
Solution 1:
First, a warning. I suspect this response is likely not going to be immediately comprehensible. There is a formal set-up for your question, there are tools available to understand what's going on. They're not particularly light tools, but they exist and they're worthy of being mentioned. Before I write down the main theorem, let me set-up some terminology. The tools belong to a subject called manifold theory and algebraic topology. The names of the tools I'm going to use are called things like: the isotopy extension theorem, fibre-bundles, fibrations and homotopy-groups.
You have a surface $\Sigma$, it's your shirt or whatever else you're interested in, some surface in 3-dimensional space. Surfaces have automorphism groups, let me call it $\operatorname{Aut}(\Sigma)$. These are, say, all the self-homeomorphisms or diffeomorphisms of the surface. And surfaces can sit in space. A way of putting a surface in space is called an embedding. Let's call all the embeddings of the surface $\operatorname{Emb}(\Sigma, \mathbb R^3)$. $\operatorname{Emb}(\Sigma, \mathbb R^3)$ is a set, but in the subject of topology these sets have a natural topology as well. We think of them as a space where "nearby" embeddings are almost the same, except for maybe a little wiggle here or there. The topology on the set of embeddings is called the compact-open topology (see Wikipedia, for details on most of these definitions).
Okay, so now there's some formal nonsense. Look at the quotient space $\operatorname{Emb}(\Sigma, \mathbb R^3)/\operatorname{Aut}(\Sigma)$. You can think of this as all ways $\Sigma$ can sit in space, but without any labelling -- the surface has no parametrization. So it's the space of all subspaces of $\mathbb R^3$ that just happen to be homeomorphic to your surface.
Richard Palais has a really nice theorem that puts this all into a pleasant context. The preamble is we need to think of everything as living in the world of smooth manifolds -- smooth embeddings, $\operatorname{Aut}(\Sigma)$ is the diffeomorphism group of the surface, etc.
There are two locally-trivial fibre bundles (or something more easy to prove -- Serre fibrations), this is the "global" isotopy-extension theorem:
$$\operatorname{Diff}(\mathbb R^3, \Sigma) \to \operatorname{Diff}(\mathbb R^3) \to \operatorname{Emb}(\Sigma, \mathbb R^3)/\operatorname{Aut}(\Sigma)$$
$$\operatorname{Diff}(\mathbb R^3 \operatorname{fix} \Sigma) \to \operatorname{Diff}(\mathbb R^3, \Sigma) \to \operatorname{Aut}(\Sigma)$$ here $\operatorname{Diff}(\mathbb R^3)$ indicates diffeomorphisms of $\mathbb R^3$ that are the identity outside of a sufficiently large ball, say.
So the Palais theorem, together with the homotopy long exact sequence of a fibration, is giving you a language that allows you to translate between automorphisms of your surface, and motions of the surface in space.
It's a theorem of Jean Cerf's that $\operatorname{Diff}(\mathbb R^3)$ is connected. A little diagram chase says that an automorphism of a surface can be realized by a motion of that surface in 3-space if and only if that automorphism of the surface extends to an automorphism of 3-space. For closed surfaces, the Jordan-Brouwer separation theorem gives you an obstruction to turning your surface inside-out. But for non-closed surfaces you're out of tools.
To figure out if you can realize an automorphism as a motion, you literally have to try to extend it "by hands". This is a very general phenomena -- you have one manifold sitting in another, but rarely does an automorphism of the submanifold extend to the ambient manifold. You see this phenomena happening in various other branches of mathematics as well -- an automorphism of a subgroup does not always extend to the ambient group, etc.
So you try your luck and try to build the extension yourself. In some vague sense that's a formal analogy between the visceral mystery of turning the surface inside-out and a kind of formalized mathematical problem, but of a fundamentally analogous feel.
We're looking for automorphisms that reverse orientation. For an arbitrary surface with boundary in 3-space, it's not clear if you can turn the surface inside out. This is because the surface might be knotted. Unknotted surfaces are examples like your t-shirt. Let's try to cook up something that can't be turned inside-out.
The automorphism group of a 3-times punctured sphere has 12 path-components (12 elements up to isotopy). There are 6 elements that preserve orientation, and 6 that reverse. In particular the orientation-reversing automorphisms reverse the orientation of all the boundary circles. So if you could come up with a knotted pair-of-pants (3-times punctured surface) so that its boundary circles did not admit a symmetry that reversed the orientations of all three circles simultaneously, you'd be done.
Maybe this doesn't seem like a reduction to you, but it is.
For example, there are things called non-invertible knots:
http://en.wikipedia.org/wiki/Invertible_knot
So how do we cook up a knotted pair-of-pants from that?
Here's the idea. The non-invertible knot in the link above is sometimes called $8_{17}$. Here is another picture of it:
http://katlas.org/wiki/8_17
Here is a variant on that.
Interpret this image as a ribbon of paper that has three boundary circles. One boundary circle is unknotted. One is $8_{17}$. The other is some other knot.
It turns out that other knot isn't trivial, nor is it $8_{17}$.
So why can't this knotted pair of pants be turned inside-out? Well, the three knots are distinct, and $8_{17}$ can't be reversed.
The reason why I know the other knot isn't $8_{17}$? It's a hyperbolic knot and it has a different ($4.40083...$) hyperbolic volume than $8_{17}$ ($10.9859...$).
FYI: in some sense this is one of the simplest surfaces with non-trivial boundary that can't be turned inside-out. All discs can be turned inside-out. Similarly, all annuli (regardless of how they're knotted) can be turned inside-out. So for genus zero surfaces, 3 boundary components is the least you can have if you're looking for a surface that can't be turned inside-out.
edited to correct for Jason's comment.
comment added later: I suggest if you purchase a garment of this form you return it to the manufacturer.
Solution 2:
Everything I'm wearing is a topological sphere, with holes (t-shirts have 4, pants 3, shoes and socks 1) in which cases any hole works.
Instead of a long-sleeve shirt with the arms sewn together, consider a pair of pants with legs sewn together to form a topological torus with a hole (so if you were to wear them your feet would be touching and it would be impossible to put your shoes on). This pair of pants has two parameters which are roughly constant, the circumference of the leg and the total length of the two legs.
When it is turned inside out through the waist, these parameters swap roles, so you will have a tube about the length of a pant leg with an opening on each end, the same as if you had turned one leg inside-out and pushed the other leg through it prior to sewing.
I think this would be possible to do with real toroidal clothing (e.g. a skirt) as long as it is thin enough, because the process doesn't require any stretching.