Let's start with horizontal lines because they're a bit easier. We will start by looking at the line y = 2. Graph of y = 2You can see that the line goes left to right which makes it a horizontal line. Think about the sun setting on the horizon to help you remember. Formally, a horizontal line is one in which all the y-values for each point are the same. In our line, all the y-coordinates will be 2, no matter what point you choose. Let's think about how we would write this equation. We know that y = mx + b is the format we need to follow. It's pretty easy to see that the y-intercept is 2. This makes our equation y = mx + 2. Now the question is what the slope is. Well, let's take two points and try to find the slope. We will use (1, 2) and (3, 2) just to keep things simple. To find the slope, we subtract the y-values (2 - 2) to get 0. Then, we subtract the x-values (3 - 1) to get 2. Divide 0 by 2 because slope is change in y over change in x. When we do this, we get 0 because 0 divided by anything is 0. This means our equation is now y = 0x + 2. Multiply out 0 and x to get 0. Now we have y = 0 + 2. Simplify this and we have our equation of y = 2. You do not have to go through this process each time if you don't want to. Just remember that horizontal lines will always be in the form of y = b. Vertical LinesNow we will look at the trickier of the two lines. We will examine the graph of x = 4. Graph of x = 4You can see that this graph's line goes straight up and down. Formally, a vertical line is one where all the x-values for a line are the same. Take any point on this graph, and its x-coordinate will be 4. How to Write the Equations of Vertical and Horizontal Lines Through a Given PointTo find the equations of the vertical line and the horizontal line through the point {eq}(a, b) {/eq}, follow the steps below. Step 1: A horizontal line has one {eq}y {/eq}-value for all values of {eq}x {/eq} in the domain. If this line passes through point {eq}(a, b) {/eq} where {eq}a {/eq} is the {eq}x {/eq}-coordinate and {eq}b {/eq} is the {eq}y {/eq}-coordinate of the point, the horizontal line will have {eq}b {/eq} as the {eq}y {/eq}-value for all {eq}x {/eq}. The equation to represent this horizontal line is {eq}y = b {/eq}. Step 2: A vertical line has one {eq}x {/eq}-value for all values of {eq}y {/eq}. If this line passes through point {eq}(a, b) {/eq} where {eq}a {/eq} is the {eq}x {/eq}-coordinate and {eq}b {/eq} is the {eq}y {/eq}-coordinate of the point, this vertical line will have {eq}a {/eq} as its {eq}x {/eq} value for all {eq}y {/eq}. The equation to represent this vertical line is {eq}x=a {/eq}. How to Write the Equations of Vertical and Horizontal Lines Through a Given Point VocabularyHorizontal line: A horizontal line is a collection of points whose {eq}y {/eq}-coordinate is the same for any {eq}x {/eq}-coordinate. Another way to think about a horizontal line is a line with a slope of 0. A horizontal line makes no vertical change throughout its domain. If we substitute 0 for the slope in a general slope-intercept form, we get:$$\begin{align} y&= mx + b \\\\ y& =(0)x + b \\\\ y & = b\\\\ \end{align} $$ Therefore, the equation of a horizontal line is given by: $$y = b $$ where {eq}b {/eq} is a real number. Vertical line: A vertical line is a collection of points whose {eq}x {/eq}-coordinate is the same for any {eq}y {/eq}-coordinate. The equation of a vertical line is given by: $$x = c $$ where {eq}c {/eq} is a real number. Let's practice writing the equations of vertical and horizontal lines through a given point with the next two examples. How to Write the Equations of Vertical and Horizontal Lines Through a Given Point: Example 1Write the equations of the vertical line and the horizontal line through the point (3,6). Step 1: A horizontal line has one {eq}y {/eq} value for all {eq}x {/eq} in the domain. If this line passes through the point {eq}(3,6) {/eq} where {eq}3 {/eq} is the {eq}x {/eq}-coordinate and {eq}6 {/eq} is the {eq}y {/eq}-coordinate of the point, the horizontal line will have {eq}6 {/eq} as the {eq}y {/eq} value for all values of {eq}x {/eq}. The equation to represent this horizontal line is {eq}y = 6 {/eq}. Step 2: A vertical line has one {eq}x {/eq} value for all {eq}y {/eq}. If this line passes through the point {eq}(3, 6) {/eq}, this vertical line will have {eq}3 {/eq} as its {eq}x {/eq} value for all values of {eq}y {/eq}. The equation to represent this vertical line is {eq}x=3 {/eq}. The horizontal line through (3, 6) is y =6, and the vertical line through (3, 6) is x = 3. How to Write the Equations of Vertical and Horizontal Lines Through a Given Point: Example 2Write the equations of the vertical line and the horizontal line through the point {eq}(2,-4) {/eq}. Step 1: A horizontal line has one {eq}y {/eq} value for all {eq}x {/eq} in the domain. If this line passes through the point {eq}(2,-4) {/eq}, the horizontal line will have {eq}-4 {/eq} as the {eq}y {/eq} value for all values of {eq}x {/eq}. The equation to represent this horizontal line is {eq}y = -4 {/eq}. Step 2: A vertical line has one {eq}x {/eq} value for all {eq}y {/eq}. If this line passes through the point {eq}(2, -4) {/eq}, this vertical line will have {eq}2 {/eq} as its {eq}x {/eq}-value for all values of {eq}y {/eq}. The equation to represent this vertical line is {eq}x=2 {/eq}. The horizontal line through (2, -4) is y =-4, and the vertical line through (2, 4) is x = 2. Get access to thousands of practice questions and explanations! How do you write equations for vertical lines?Similarly, in the graph of a vertical line, x only takes one value. Thus, the equation for a vertical line is x = a, where a is the value that x takes.
How do you write a horizontal equation?What is the equation of a horizontal line? Equation of the horizontal line is given by y = k, where k is any value on the y-axis.
How do you find the equation of a line on a graphing calculator?The procedure to use the equation of a line calculator is as follows:. Step 1: Enter the slope value and the y-intercept value in the given input field.. Step 2: Click the button “Solve” to get the line equation.. Step 3: The line equation will be displayed in the output field.. Equation of a Line, y = mx + b.. |