# Nakafa Framework: LLM
URL: https://nakafa.com/en/subject/high-school/11/mathematics/geometric-transformation/reflection-over-y-axis
Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/high-school/11/mathematics/geometric-transformation/reflection-over-y-axis/en.mdx
Output docs content for large language models.
---
import { getColor } from "@repo/design-system/lib/color";
import { LineEquation } from "@repo/design-system/components/contents/line-equation";
export const metadata = {
  title: "Reflection over Y Axis",
  description: "Learn y-axis reflection with complete examples for points, triangles, and lines. Master the P'(-x, y) rule with interactive visualizations.",
  authors: [{ name: "Nabil Akbarazzima Fatih" }],
  date: "05/10/2025",
  subject: "Geometric Transformation",
};
## Understanding Reflection over the Y-axis
Reflection over the Y-axis is a type of geometric transformation that moves every point on an object to a new position. Imagine the Y-axis as a mirror. Every point will have an image on the opposite side of the Y-axis at the same distance from the Y-axis.
### Rule for Reflection over the Y-axis
If a point  is reflected over the Y-axis, its image's coordinates, , will follow the rule:
  
  
Thus, the image of point  is .
Note that the value of the y-coordinate does not change, while the value of the x-coordinate becomes its opposite (negative if positive, positive if negative).
## Reflecting a Point
Suppose we have point . If point A is reflected over the Y-axis, its image, , can be determined as follows:
The original x-coordinate is 3, so .
The original y-coordinate is 4, so .
Thus, the image of point A is .
Let's visualize this:
      Point  and its Image{" "}
      
    >
  }
  description="Visualization of the reflection of point A over the Y-axis."
  data={[
    {
      points: [{ x: 3, y: 4, z: 0 }],
      color: getColor("EMERALD"),
      showPoints: true,
      labels: [{ text: "A(3,4)", at: 0, offset: [0.3, 0.3, 0] }],
    },
    {
      points: [{ x: -3, y: 4, z: 0 }],
      color: getColor("SKY"),
      showPoints: true,
      labels: [{ text: "A'(-3,4)", at: 0, offset: [0.3, 0.3, 0] }],
    },
  ]}
  showZAxis={false}
  cameraPosition={[0, 0, 12]}
/>
## Reflecting a Triangle
Now, let's reflect a triangle  with vertices , , and  over the Y-axis.
To reflect a triangle, we need to reflect each of its vertices.
1.  Point : Its image is .
2.  Point : Its image is .
3.  Point : Its image is .
By connecting the image points , we obtain the reflected triangle.
      Triangle  and its Image{" "}
      
    >
  }
  description="Visualization of the reflection of triangle PQR over the Y-axis."
  data={[
    ...[
      {
        from: { x: 1, y: 2, z: 0, label: "P(1,2)" },
        to: { x: 4, y: 4, z: 0, label: "Q(4,4)" },
      },
      {
        from: { x: 4, y: 4, z: 0, label: "Q(4,4)" },
        to: { x: 2, y: 0, z: 0, label: "R(2,0)" },
      },
      {
        from: { x: 2, y: 0, z: 0, label: "R(2,0)" },
        to: { x: 1, y: 2, z: 0, label: "P(1,2)" },
      },
    ].map((segment) => ({
      points: [segment.from, segment.to],
      color: getColor("AMBER"),
      showPoints: true,
      labels: [
        { text: segment.from.label, at: 0, offset: [0.5, 0.5, 0] },
        { text: segment.to.label, at: 1, offset: [0.5, 0.5, 0] },
      ],
    })),
    ...[
      {
        from: { x: -1, y: 2, z: 0, label: "P'(-1,2)" },
        to: { x: -4, y: 4, z: 0, label: "Q'(-4,4)" },
      },
      {
        from: { x: -4, y: 4, z: 0, label: "Q'(-4,4)" },
        to: { x: -2, y: 0, z: 0, label: "R'(-2,0)" },
      },
      {
        from: { x: -2, y: 0, z: 0, label: "R'(-2,0)" },
        to: { x: -1, y: 2, z: 0, label: "P'(-1,2)" },
      },
    ].map((segment) => ({
      points: [segment.from, segment.to],
      color: getColor("TEAL"),
      showPoints: true,
      labels: [
        { text: segment.from.label, at: 0, offset: [-0.5, 0.5, 0] },
        { text: segment.to.label, at: 1, offset: [-0.5, 0.5, 0] },
      ],
    })),
  ]}
  showZAxis={false}
  cameraPosition={[0, 0, 12]}
/>
## Reflecting a Line Equation
Suppose we have a line with the equation . To find the equation of its image after reflection over the Y-axis, we substitute  with  (because ) and  with  (because ) into the original equation.
Original equation:
Substitute :
The equation of the image is:
Let's visualize these two lines:
      Line  and its Image{" "}
      
    >
  }
  description="Reflection of a line over the Y-axis."
  data={[
    {
      // Original Line y = x + 2
      points: Array.from({ length: 11 }, (_, i) => {
        const x = (i - 5) * 0.8; // x from -4 to 4 for better fit
        return { x, y: x + 2, z: 0 };
      }),
      color: getColor("PURPLE"),
      smooth: true,
      labels: [{ text: "y=x+2", at: 9, offset: [0.7, -0.5, 0] }],
    },
    {
      // Reflected Line y = -x + 2
      points: Array.from({ length: 11 }, (_, i) => {
        const x = (i - 5) * 0.8; // x from -4 to 4
        return { x, y: -x + 2, z: 0 };
      }),
      color: getColor("PINK"),
      smooth: true,
      labels: [{ text: "y=-x+2", at: 1, offset: [-0.7, -0.5, 0] }],
    },
  ]}
  showZAxis={false}
  cameraPosition={[0, 0, 15]}
/>
## Exercises
1.  Determine the coordinates of the image of point  if it is reflected over the Y-axis!
2.  A triangle  has vertices , , and . Determine the coordinates of the image triangle  after reflection over the Y-axis!
3.  Determine the equation of the image of the line  if it is reflected over the Y-axis!
4.  A line has the equation . Determine the equation of its image after reflection over the Y-axis.
### Key Answers
1.  The image of point  is .
    **Explanation:** , .
2.  The coordinates of the image triangle  are:
    - 
    - 
    - 
3.  The equation of the image of the line  is .
    **Explanation:** Substitute  with  into the original equation:
    
      
      
    
4.  The equation of the image of the line  is .
    **Explanation:** Substitute  with :