Y = X Transformation Calculator

Explore line-swap reflections with guided tools. Compare original and transformed values, tables, graphs, and equations. Build intuition through formulas, exports, examples, and plotted coordinates.

Calculator

Choose a mode, enter values, and reflect them across y = x.

Use one x,y pair per line. Spaces also work.

Example Data Table

Example Type Original Input Reflected Output Rule Used
Point (3, -1) (-1, 3) (x, y) → (y, x)
Line y = 2x + 1 y = 0.5x - 0.5 Swap x and y, then solve.
Point Set (1, 2), (3, -1), (-2, 4) (2, 1), (-1, 3), (4, -2) Reflect each point separately.

Formula Used

Point reflection:
(x, y) → (y, x)
Reflection matrix:
[x′, y′]ᵀ = [[0, 1], [1, 0]] [x, y]ᵀ
Line reflection:
If y = mx + b, then x = my + b after reflection.
When m ≠ 0, the reflected line is y = (x - b) / m.
Distance from a point to y = x:
|x - y| / √2

How to Use This Calculator

  1. Select whether you want a point, line, or point-set reflection.
  2. Enter the required numeric values in the calculator fields.
  3. For point sets, place one coordinate pair on each line.
  4. Choose the number of decimal places for displayed values.
  5. Press the transform button to generate results and the graph.
  6. Review the summary cards, table, and plotted geometry.
  7. Use the CSV or PDF button to export your results.

FAQs

1. What does reflecting across y = x do?

It swaps every point’s x-coordinate and y-coordinate. A point at (a, b) becomes (b, a). The transformation mirrors shapes across the diagonal line y = x.

2. Why do the coordinates switch places?

The mirror line y = x contains points with equal coordinates. Reflection across that line exchanges horizontal and vertical distance, so x and y trade positions.

3. Can this calculator reflect full point sets?

Yes. Enter one coordinate pair per line in the point-set mode. The calculator reflects each point, builds a mapping table, and plots both sets.

4. How are lines reflected across y = x?

Replace y with x and x with y. For y = mx + b, the reflected relation becomes x = my + b. Then solve for y when possible.

5. What happens to a horizontal line?

A horizontal line y = b reflects to the vertical line x = b. That is why the transformed slope is undefined in that special case.

6. Is the transformation reversible?

Yes. Reflection across y = x is self-inverse. Apply the same reflection again, and every point or line returns to its original position.

7. Why is the distance formula included?

It measures how far the original point sits from the mirror line. Smaller values mean the point is closer to y = x before reflection.

8. When is this calculator useful?

It helps with coordinate geometry, graph sketching, matrix transformations, classroom demonstrations, and checking algebraic work involving reflections across diagonal axes.

Related Calculators

scale down calculatorrotation matrix calculatormatrix transformation calculatorcoordinate transformation toolscale up calculatorrotate point calculatortranslation vector calculatorrotation about pointreflection over lineenlargement calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.