# Reflection in the Line *y* = *x*

How to solve the reflection in the line *y* = *x* problems: formula, example, and its solution.

## Formula

The image of a point (*x*, *y*),

whose image is under a reflection in the line *y* = *x*,

is (*y*, *x*).

## Example

Reflection in the line *y* = *x*:

(*x*, *y*) → (*y*, *x*)