XY-Wing
An XY-Wing uses three cells that each have exactly two candidates. One is the pivot. The other two are the wings, and each wing sees the pivot. The candidates are arranged so that the pivot holds X and Y, one wing holds X and Z, and the other holds Y and Z. Any cell that sees both wings cannot be Z.
It is a short chain of “if this cell is A, then that cell must be B” steps. If you can follow that kind of reasoning, you can follow an XY-Wing.
Another example, in words
Let the pivot be r1c1 with candidates 3 and 5. Let one wing be r1c6 with candidates 3 and 8. It shares row 1 with the pivot. Let the other wing be r3c2 with candidates 5 and 8. It shares box 1 with the pivot. The shared digits are 3 and 5 with the pivot, and the common third digit is 8.
Consider the two possibilities for the pivot.
If r1c1 is 3, then r1c6 cannot be 3, because it sees the pivot along row 1. So r1c6 is 8.
If r1c1 is 5, then r3c2 cannot be 5, because it sees the pivot in box 1. So r3c2 is 8.
The pivot must be 3 or 5, so one of the wings is 8. We cannot say which. Now find the cells that see both wings. The wing r1c6 lies in row 1, column 6 and box 2. The wing r3c2 lies in row 3, column 2 and box 1. Cell r1c2 sees r1c6 along row 1 and r3c2 along column 2. Cell r3c6 sees r1c6 along column 6 and r3c2 along row 3. Cell r1c3 sees r1c6 along row 1 and r3c2 through box 1. Cells r3c4 and r3c5 see r1c6 through box 2 and r3c2 along row 3. Whichever wing turns out to be the 8, each of these five cells shares a unit with it, so none of them can be 8. Remove 8 from the notes of r1c2, r1c3, r3c4, r3c5 and r3c6.
How to spot it
List the cells with exactly two candidates. Choose one as the pivot and write its digits, say X and Y. Look at the cells it sees. You need one with X and a new digit Z, and another with Y and the same Z.
If you find them, work out which cells see both wings. Those are your targets, and the only candidate you can remove from them is Z.
The pivot sees both wings. The wings do not have to see each other, and usually do not. The cells that lose Z are the ones where the units of the two wings overlap.
Common mistakes
The most common error is a wing that does not see the pivot. If it does not share a unit with the pivot, the chain breaks at that step.
The second is a mismatch of digits. Both wings must have the same third digit Z, and each must share exactly one digit with the pivot, a different one for each wing.
The third is removing the wrong digit. The pivot’s own digits are not eliminated. The target cells lose Z only.
When to use it
On expert puzzles, once the simpler patterns are exhausted. It needs the notes to be right, since the whole thing hangs on exactly which cells have two candidates. Bivalue cells are the raw material, so count them early in the solve. If a stubborn puzzle has several, an XY-Wing is a good bet. The related X-Wing is a different pattern, and the two names are easy to confuse.