Sub topic 2
GRE Coordinate Geometry: Lines, Slopes, Intercepts, and Graphs
Finding x- and y-Intercepts
This chapter assumes you can solve linear equations in one variable, rearrange formulas, and work with fractions and negative numbers. You should also know how to plot an ordered pair (x, y) on a coordinate plane.
An x-intercept is the point where a line crosses the x-axis. At that point y = 0. A y-intercept is the point where a line crosses the y-axis. At that point x = 0.
To find an x-intercept, set y = 0 and solve for x. To find a y-intercept, set x = 0 and solve for y.
from fractions import Fraction
# Line in standard form: Ax + By = C
A, B, C = 2, 3, 6
x_int = Fraction(C, A) # set y = 0, so 2x = 6
y_int = Fraction(C, B) # set x = 0, so 3y = 6
print(f"x-intercept: {x_int}, y-intercept: {y_int}")Output: x-intercept: 3, y-intercept: 2
Point-Slope and Standard Forms
The point-slope form of a line is y - y1 = m(x - x1), where m is the slope and (x1, y1) is a known point on the line. The standard form is Ax + By = C, with whole-number coefficients.
For example, a line with slope 2 through (1, 4) has y - 4 = 2(x - 1). Expanding gives y = 2x + 2. Moving terms gives the standard form 2x - y = -2.
Graphing Lines and Reading Graphs
To graph a line, plot its two intercepts and draw a straight line through them. A horizontal line has no x-intercept unless it lies on the x-axis. A vertical line has no y-intercept unless it lies on the y-axis.
Parallel and Perpendicular Lines
Two non-vertical lines are parallel when they have equal slopes. They are perpendicular when the product of their slopes is -1, so each slope is the negative reciprocal of the other.
Take the line y = 2x + 1. A parallel line through (0, 5) is y = 2x + 5. A perpendicular line through (0, 5) has slope -1/2, so it is y = -x/2 + 5.
> Exercise > > ``exercise > Q: What are the x-intercept and y-intercept of 3x + 4y = 12? > A: Setting y = 0 gives x = 4, so the x-intercept is 4. Setting x = 0 gives y = 3, so the y-intercept is 3. > ``