The Y-Wing technique in Sudoku
The Y-Wing, also called the XY-Wing, uses three cells that each have only two candidates. A pivot cell with the candidates X and Y sees two “wings”: one with X and Z, one with Y and Z. Whatever the pivot holds, one of the wings ends up holding Z, so Z can be removed from every cell that sees both wings.
An example from a real grid
The pivot, in row 4, column 7, has only two candidates: 7 and 2. It sees two other cells with two candidates: row 4, column 3 (7 and 8) and row 5, column 8 (2 and 8). The three cells are yellow.
If the pivot holds 7, the first wing loses its 7 and must hold 8. If the pivot holds 2, the second wing must hold 8. Either way, one of the two wings holds 8.
So 8 cannot sit in a cell that sees both wings: here, it is crossed out in row 4, column 9 (red).
How to spot a Y-Wing
With complete notes, look at the cells that have exactly two notes. Take one as the pivot and look at the two-note cells that see it, in its row, column or box. You need two of them that each share one digit with the pivot, and the same third digit with each other.
Then look for a cell that sees both wings: the third digit can be crossed out there. That cell does not have to be in the same row, column or box as the pivot.
A common mistake
Checking the wrong cells. The digit is removed only from a cell that sees both wings; a cell that sees just one of them keeps its candidate. The pivot must see both wings, but the two wings do not have to see each other.
Where you need it
This technique belongs to the hard level. You will only need it on hard grids.
Play a hard Sudoku