What is the difference between y-axis and x-axis?

The y-axis and x-axis are both terms used in mathematics and graphing to describe the two perpendicular lines on a graph.

The x-axis, also known as the horizontal axis, is the line that runs horizontally across the graph. It represents the independent variable or input variable in a graph, meaning it denotes the values that are being manipulated or changed. The x-axis typically displays numerical values or labels that indicate the specific points or intervals along the line.

The y-axis, also known as the vertical axis, is the line that runs vertically up and down the graph. It represents the dependent variable or output variable in a graph, meaning it denotes the values that are affected by the changes in the x-axis or independent variable. The y-axis also displays numerical values or labels that indicate specific points or intervals along the line.

In summary, the x-axis represents the input or independent variable, while the y-axis represents the output or dependent variable in a graph.