−Table of Contents
2D Graphics
Formula for a line
Slope of a line
Y-intercept
- Y-intercept - where the line intersects with the line defined by the Y-axis
- The line intersects the Y-axis when is .
mx
Point-Slope form
Perpendicular Lines
The slope of a line perpendicular to a given line is the negative reciprocal of the slope of the given line. For example, given the line: , the slope of a line perpendicular is:
Perpendicular lines will intersect at a single point. The point of intersection is where the and values satisfy both equations.
Given a point on the line, find the equation of the line perpendicular to that line intersecting at that point:
Line:
Intersection:
agraph width=320; height=220; xmin=-8.3; xmax=8.3; ymin=-3.3; ymax=8.3; xscl=1; yscl=1; plot(1/2*x + 2); endagraph <html> <embed class="ASCIIsvg" script=' width=320; height=220; xmin=-8.3; xmax=8.3; ymin=-3.3; ymax=8.3; xscl=1; yscl=1; plot(1/2*x + 2); '/> </html>
We can find the slope of the second line by taking the negative reciprocal of the slop of the first:
Next we need to find the Y-intercept. In this case, we know the slope of the line and a point that satisfies the line. All we need to do is plug in those values and solve for b:
mx
So, the equation of the perpendicular line is:
<embed class="ASCIIsvg" src="http://www.fourthwoods.com/js/d.svg" wmode="transparent" script=' width=320; height=220; xmin=-8.3; xmax=8.3; ymin=-3.3; ymax=8.3; xscl=1; yscl=1; plot(1/2*x + 2); plot(-2x + 7);'/>
Intersection of two lines
Two lines intersect when the point satisfies both equations. To determine the point of intersection of two lines:
Given that we can write:
Since we can write:
Now solve for
x = 2
Now that we have an value we can use one of the equations to find the .
y = 3
The point of intersection of the two lines is
Find point on a line
Given a point on a line a slope and a distance along the line from the given point, what is the of the new point?
Pythagorean theorem
or