Week 2 — Rectangular Coordinate System and Straight Lines
1. Rectangular Coordinate System
A rectangular coordinate system represents points in a plane using two perpendicular axes:
- x-axis — horizontal axis
- y-axis — vertical axis
- Origin — intersection of the two axes
The origin is:
A point in the plane is represented as:
where is the x-coordinate and is the y-coordinate.
2. Quadrants
The coordinate plane is divided into four quadrants.
| Quadrant | ||
|---|---|---|
| I | ||
| II | ||
| III | ||
| IV |
Points on the x-axis or y-axis do not belong to any quadrant.
3. Distance Between Two Points
For two points:
and
the distance is:
4. Distance from the Origin
For a point:
its distance from the origin is:
5. Midpoint of a Line Segment
For two points:
and
the midpoint is:
Straight Lines
6. Straight Line
A straight line is represented by a linear equation in two variables.
The general form is:
where , , and are constants and and are not both zero.
7. Slope of a Line
The slope of a line measures the change in for a given change in .
For two points:
and
the slope is:
provided:
Equivalently:
8. Interpretation of Slope
| Slope | Line |
|---|---|
| Increasing | |
| Decreasing | |
| Horizontal | |
| Undefined | Vertical |
A horizontal line has equation:
A vertical line has equation:
9. Slope and Angle of Inclination
If a line makes an angle with the positive x-axis, then:
Therefore:
Equations of a Straight Line
10. Slope-Intercept Form
A line with slope and y-intercept is:
Here:
- is the slope
- is the y-intercept
The y-intercept is:
11. Point-Slope Form
A line with slope passing through:
is:
12. Two-Point Form
A line passing through:
and
is:
provided:
13. Intercept Form
If a line has x-intercept and y-intercept , its equation is:
where and .
14. General Form
The general equation of a straight line is:
If , then:
Therefore:
and
Parallel and Perpendicular Lines
15. Parallel Lines
Two non-vertical lines are parallel if their slopes are equal:
16. Perpendicular Lines
Two non-vertical lines are perpendicular if:
Therefore:
A horizontal line and a vertical line are also perpendicular.
Distance from a Point to a Line
17. Point-to-Line Distance
For a line:
and a point:
the perpendicular distance between them is:
Straight-Line Fit
18. Data Points and Straight-Line Fit
Suppose we have data points:
A straight-line fit attempts to represent the relationship between and using:
where:
- is the slope
- is the intercept
- is the predicted value of
19. Residual
For an observed value and predicted value , the residual is:
For a fitted line:
the residual is:
20. Least-Squares Method
The least-squares method chooses and such that the sum of squared residuals is minimized.
The objective function is:
The fitted line is:
where and minimize .
21. Mean of Data
The mean of the x-values is:
The mean of the y-values is:
22. Least-Squares Slope
The slope of the least-squares fitted line is:
provided the denominator is non-zero.
23. Least-Squares Intercept
Once is known:
Therefore, the fitted line can also be written as: