049Mathematics · Coordinate geometry

Point reflection in a line

Point reflection in a line

Reflect a point in any valid real line; display the image’s x-coordinate, then its y-coordinate.

  • 50 bytes
  • COMP mode
01

Worked examples

Example 1

Reflect P in the given line and find P′. Choose the correct coordinates.
P=(4,2); y=x+1.

  1. A.(1,5)
  2. B.(5,1)
  3. C.(4,2)
  4. D.(-1,-5)
Answer
A; P′=(1,5).
Standard solution (without a calculator)
  1. Coefficients: y=x+1 ⇔ −x+y−1=0 ⇒ (a,b,c)=(−1,1,−1).
  2. Method: s=−4+2−1=−3; q=(−1)²+1²=2; t=2s/q=−3.
  3. Reflected point: x′=4−(−1)(−3)=1; y′=2−1(−3)=5 ⇒ P′=(1,5).
Do it on the calculator

Example 2

Reflect P in the vertical line. Find P′ and the midpoint M of PP′; explain why M is on the axis and PP′ is perpendicular to it.
P=(−3,4); x=2.

Answer
P′=(7,4); M=(2,4); PP′⊥(x=2).
Standard solution (without a calculator)
  1. Coefficients: x=2 ⇔ x+0y−2=0 ⇒ (a,b,c)=(1,0,−2).
  2. Reflected point: t=2[1(−3)+0(4)−2]/(1²+0²)=−10; x′=−3−1(−10)=7; y′=4−0(−10)=4.
  3. Coordinates: M=((−3+7)/2,(4+4)/2)=(2,4); x_M=2; y_P=y_P′=4 ⇒ PP′∥(y=0), PP′⊥(x=2).
Do it on the calculator

Example 3

A and B are on the same side of L. For Q on L, find the minimum AQ+QB. First find the reflection A′, then the minimizing Q and length.
L: x+2y−5=0; A=(4,3); B=(5,3); Q∈L.

Answer
A′=(2,−1); Q=(37/11,9/11); min(AQ+QB)=5.
Standard solution (without a calculator)
  1. Reflected point: s=4+2(3)−5=5; q=1²+2²=5; t=2s/q=2; A′=(4−2,3−4)=(2,−1).
  2. Method: Q∈L ⇒ AQ=A′Q ⇒ AQ+QB=A′Q+QB≥A′B. Q∈A′B ⇒ AQ+QB=A′B. Reflection preserves the distance from A to every Q on the mirror line, so AQ=A′Q. The triangle inequality gives the lower bound A′B, attained only when Q lies on the segment A′B. The value u=5/11 confirms this condition.
  3. Coordinates: A′B: (x,y)=(2+3u,−1+4u). (2+3u)+2(−1+4u)−5=0 ⇒ 11u=5 ⇒ u=5/11.
  4. Coordinates: Q=(2+15/11,−1+20/11)=(37/11,9/11); 0<5/11<1; A′B=√(3²+4²)=5.
Do it on the calculator
02

When to use it

Reflect a point in any valid real line; display the image’s x-coordinate, then its y-coordinate.

Use

  • Reflect a point in any valid real line; display the image’s x-coordinate, then its y-coordinate.

Enter

  • Write every value, including zero; EXE alone keeps the old variable value.
  • x_P (X), y_P (Y), a (A), b (B), c (C) Write the mirror line as ax+by+c=0. If it is given as ax+by=d, move the right-hand constant left and enter c=−d.

Results

  • Reflected point x′
  • Reflected point y′

Limits

  • Require a²+b²>0. Zero normals give Math ERROR. This only reflects a point; shortest-path intersections and proofs need separate work. Scale extreme coefficients first.
  • Write every value, including zero; EXE alone keeps the old variable value.

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.

Checking access…

Sign in to unlock the full programme

Checking access…

The programme code and appendix unlock together.