Assuming you mean y = x – 5, graph a straight line with slope 1 and y-intercept -5. Plot points such as (0, -5) and (5, 0), then draw a straight line through them, extending it in both directions.
Read the equation correctly
The question “Graph the line y x-5?” appears to be missing an equals sign. Interpreted as y = x – 5, it is an equation in slope-intercept form, y = mx + b. Here, x is the input, y is the corresponding output, m is the slope, and b is the y-intercept. The equation says to take an x-value, subtract 5, and use the result as y.
For example, if x is 2, then y = 2 – 5 = -3, giving the point (2, -3). If x is -1, then y = -1 – 5 = -6, giving (-1, -6). Every ordered pair that satisfies the equation belongs to the line. A graph shows some of these infinitely many points and connects them to represent the full relationship.
The equals sign matters. If you intended a different equation, such as y = -x – 5 or y = x + 5, the graph changes. In the expression provided, the most natural reading is that the intended equation is y = x – 5.
What the slope and intercept tell you
In y = mx + b, the coefficient of x is the slope. For y = x – 5, the coefficient is 1, so the line rises one unit for every one-unit move to the right. The y-intercept is -5, the constant term, so the line crosses the vertical axis at (0, -5). These two features are often enough to sketch the graph quickly.
Slope can also be understood as rise over run, or the change in y divided by the change in x. A slope of 1 can be written as 1/1: from a known point, move one grid square up and one square right to reach another point on the line. You can repeat that move, or reverse it by moving one square down and one square left.
The intercept is a point, not just the number -5. On the y-axis, x is always zero; substituting x = 0 gives y = -5. The line also crosses the x-axis at (5, 0), because points on that axis have y = 0. Solving 0 = x – 5 gives x = 5. The two intercepts provide especially convenient plotting points.
Find points to plot
You can make a small table by choosing x-values and calculating y = x – 5. Choose values that keep the arithmetic simple and produce points that fit comfortably on the graph. For instance:
- If x = 0, y = 0 – 5 = -5, so plot (0, -5).
- If x = 2, y = 2 – 5 = -3, so plot (2, -3).
- If x = 5, y = 5 – 5 = 0, so plot (5, 0).
- If x = 7, y = 7 – 5 = 2, so plot (7, 2).
Three or four points make a useful check, but two distinct points determine a straight line. The intercepts (0, -5) and (5, 0) are usually the easiest pair to start with. A third point such as (2, -3) can confirm that your calculations and plotting are consistent. If it does not fall on the line you drew, recheck the arithmetic, the axis scale, or the point placement.
A table is not limited to positive x-values. For x = -2, y = -7, so (-2, -7) is also on the graph. Including a negative input can help show that the line continues to the left and down rather than stopping at the y-axis.
Draw and verify the graph
Use graph paper or a coordinate grid with a clearly marked horizontal x-axis and vertical y-axis. Label the origin (0, 0), then mark equal intervals along each axis. For a basic sketch, a scale of one unit per grid square is convenient, but another scale is fine if it is labeled and consistent.
- Mark the y-intercept at (0, -5), five units below the origin.
- Mark the x-intercept at (5, 0), five units to the right of the origin.
- Place any additional calculated points, such as (2, -3).
- Use a ruler to draw a straight line through the points and extend it beyond them in both directions.
- Label the line y = x – 5 if the graph includes other equations.
Check the graph against the equation rather than judging it only by appearance. The line should cross the y-axis at -5 and the x-axis at 5. Moving one unit right along it should move one unit up. For a plotted point (a, b), substitute its coordinates: if b = a – 5, the point belongs on the line. For example, (5, 0) checks because 0 = 5 – 5.
How the line relates to y = x
The graph of y = x is a diagonal line through the origin with slope 1. Subtracting 5 from the output shifts every point on that line down by five units, producing y = x – 5. The slope stays the same, so the new line is parallel to y = x. This transformation is a useful way to recognize the graph without rebuilding its slope from scratch.
For example, the point (0, 0) on y = x moves to (0, -5) on y = x – 5, while (5, 5) moves to (5, 0). Every point moves vertically down by five, with no horizontal movement. That is why the intercept changes but the line’s steepness and direction do not.
This comparison helps distinguish a vertical shift from a change in slope. In y = 2x – 5, the intercept remains -5 but the slope is 2, so the line rises two units for each unit to the right and is steeper. In y = x + 5, the slope remains 1 but the intercept is 5, so the line is parallel to y = x – 5 and shifted upward instead.
Common graphing mistakes
- Plotting the intercept on the wrong axis: The -5 is the y-intercept, so start at (0, -5), not (-5, 0). The x-intercept is found by setting y equal to zero and is (5, 0).
- Reversing the sign: Subtracting 5 places the y-intercept below the origin. The equation y = x + 5 would cross the y-axis at positive 5.
- Using the wrong slope direction: A positive slope rises as you move from left to right. If your line falls to the right, its slope is negative, which does not match this equation.
- Confusing slope with an intercept: The coefficient 1 describes the rate of change; -5 identifies where the line crosses the y-axis. They answer different questions.
- Using inconsistent grid intervals: If one square represents two units on one part of an axis but one unit elsewhere, the plotted points will be misplaced. Keep the scale even and label it clearly.
- Connecting points with separate segments: The equation describes a continuous line, not just the points in your table. Draw through the plotted points and extend the line in both directions.
Another frequent misunderstanding is to think that the line begins at (0, -5). That point is where it crosses the y-axis, not an endpoint. Unless a domain restriction is specified, x may take any real value, so the graph extends indefinitely to the left and right.
Using a table or graphing tool
A value table is useful when you want to show how each plotted point was obtained, especially in a classroom assignment. It also makes errors easier to find: calculate y for each selected x first, then plot the ordered pairs. Be careful to keep the order as (x, y). The point (0, -5) is not interchangeable with (-5, 0); the first coordinate belongs on the horizontal axis.
In a graphing calculator or online graphing tool, enter y = x – 5 using the minus sign and an equals sign. The tool draws the line, but you still need a window that shows the intercepts. A window that includes x-values from about -2 to 7 and y-values from about -8 to 3 will show both (0, -5) and (5, 0), along with some of the line on either side. Different windows change what part of the line is visible, not the equation itself.
For a hand-drawn graph, a sensible window matters for the same reason. If the graph only shows positive y-values, the y-intercept will be off the page and the sketch may be misleading. If the axes use different physical lengths per unit, a slope of 1 may not look like a 45-degree angle on the page; that does not change its mathematical slope. The coordinate scale, rather than the visual angle alone, determines the slope.
Frequently Asked Questions
What are two points on y = x – 5?
Two convenient points are (0, -5) and (5, 0), the y- and x-intercepts. Both satisfy the equation, and a straight line through them is the graph.
What is the slope of y = x – 5?
The slope is 1, the coefficient of x. For every one-unit increase in x, y increases by one unit.
Where does y = x – 5 cross the x-axis?
It crosses at (5, 0). Set y to zero and solve 0 = x – 5, which gives x = 5.
Is y = x – 5 the same as y = -x – 5?
No. The first equation has slope 1 and rises to the right. The second has slope -1 and falls to the right. Both have y-intercept -5, but their directions differ.
Does the graph stop at the intercepts?
No. The intercepts are points where the line crosses the axes, not endpoints. With no stated domain restriction, the line continues infinitely in both directions.
Related
- JavaScript split(): Syntax, Examples, and Common Mistakes
- Chemistry Balance Equation Worksheet: Practice and Answers
- Is the Balance of Payments Always Zero? Explained
Try it: the Percentage Formula Generator: percent of, percent change, increase and decrease, with the formula.
More in Charts & pivot tables
- Excel Graph With Dates on the X-Axis: Setup and FixesTo make an Excel graph with dates on the x-axis, put real Excel dates in one column and…
- Stacked Pareto Chart in Excel: How to Build OneExcel does not have a built-in chart type called a stacked Pareto chart. To make one in Microsoft…
- Excel Chart: How to Align Zero on a Secondary AxisTo align zero on an Excel chart’s secondary axis with zero on its primary axis, set fixed minimum…
- Excel Pivot Chart Sort by Value: Steps, Tips, and FixesTo sort an Excel PivotChart by value, sort the corresponding field in its PivotTable: right-click a number in…
- Excel Pie Chart: Remove Zero-Value LabelsTo remove a zero-value label from an Excel pie chart, click the chart, click the label once to…
- Behavioral Economics and Graph Theory: How They ConnectBehavioral economics and graph theory connect when economists use networks to study how people’s choices are shaped by…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.