746 words
4 min read
Visual companion
Python
Type and operator map
Python Week 1: the first filter for runtime behavior
View
Revision summary
What this note is really saying
Short form
# Mathematics I · Week 2 — Lines and slope Coordinate plane tools for reading graphs, writing equations, and checking parallelism. ## Week map Points and distance → slope as rate of change → point-slope and slope-intercept → general form → parallel and perpendicular → intercepts and applications.

Mathematics I · Week 2 — Lines and slope
Coordinate plane tools for reading graphs, writing equations, and checking parallelism.
Week map
Points and distance → slope as rate of change → point-slope and slope-intercept → general form → parallel and perpendicular → intercepts and applications.
Coordinate notation
- (x,y) → ordered pair → horizontal then vertical → (3,−2) is 3 right, 2 down.
- m → slope → rise over run → m=x2−x1y2−y1.
- Δy → change in y → vertical difference → if y goes from 4 to 7, Δy=3.
- Δx → change in x → horizontal difference → keep subtraction order consistent with y.
Reading slope
- m>0 → line rises left to right.
- m<0 → line falls.
- m=0 → horizontal; equation y=k.
- Undefined slope → vertical; equation x=k (not y=mx+b form).
Mini-example: Through (1,4) and (5,10): m=5−110−4=46=23. Rise 3 per run 2.
Line equations
Point-slope form
y−y1=m(x−x1) — use when point and slope known.
Through (2,−1) with m=−3: y+1=−3(x−2) → y=−3x+5.
Slope-intercept form
y=mx+c — c is y-intercept (value when x=0).
General form
ax+by+c=0 — useful for parallel/perpendicular via coefficients; slope m=−ba when b=0.
Trap: In 3x+2y−8=0, the y-intercept is not −8; solve: 2y=−3x+8, y=−23x+4, intercept 4.
Parallel and perpendicular
- Parallel: same slope m1=m2 (including both vertical).
- Perpendicular (neither vertical): m1m2=−1 → m2=−m11.
Mini-example: Line with m=52. Perpendicular slope is −25. Parallel slope stays 52.
Vertical ⊥ horizontal always. Two vertical lines are parallel; vertical ⊥ horizontal with undefined vs 0 slope — do not apply m1m2=−1 blindly.
Intercepts and distance
- x-intercept: set y=0, solve for x.
- y-intercept: set x=0, solve for y.
- Distance between (x1,y1) and (x2,y2): d=(x2−x1)2+(y2−y1)2.
Mini-example: Line y=2x−6. x-intercept: 0=2x−6, x=3. Point (3,0). y-intercept: (0,−6).
Pattern families
Easy — Slope from two points
- Compute m with consistent Δy/Δx.
- State rise/run interpretation in words.
- Identify horizontal/vertical from equal x or equal y coordinates.
Medium — Equation from conditions
- Line through one point with given slope → point-slope, simplify.
- Line parallel/perpendicular to known line through a point → copy or negate-reciprocal slope first.
- Convert between forms as requested.
Hard — Geometry with lines
- Find intersection by solving linear system (substitution).
- Verify perpendicularity via slopes after finding both lines.
- Distance from point to point combined with intercept puzzles.
Worked mini-examples
Example 1 — Slope and intercept. Points (−2,5) and (4,1): m=4−(−2)1−5=6−4=−32. Using point (4,1): y−1=−32(x−4).
Example 2 — Parallel line. Given 2x−5y+10=0, slope m=52. Line through (0,3) parallel: y−3=52x → y=52x+3.
Example 3 — Perpendicular. Slope of y=4x+1 is 4. Perpendicular slope −41. Through (8,2): y−2=−41(x−8).
Example 4 — Distance. (1,2) to (4,6): d=(4−1)2+(6−2)2=9+16=5.
Traps
- Inconsistent difference order: x2−x1y2−y1 not mixed with x2−x1y1−y2 wrongly.
- Using m1m2=−1 when one line is horizontal.
- Confusing general-form constant with intercept.
- Assuming lines with different slopes must intersect off-screen — they intersect somewhere unless parallel.
Diagnostic (try yourself)
-
Find the slope of the line through (5,−1) and (−3,7).
-
Write the equation of the line with slope −43 passing through (12,5) in slope-intercept form.
-
Line L has equation 3x+y=9. Write an equation for the line through (2,1) perpendicular to L.
-
Where does the line 4x−2y=12 cross the x-axis and the y-axis?
-
Are the lines y=5x−2 and 5x−y=7 parallel, perpendicular, or neither?