Graphing Undefined Slope, Zero Slope and More

An error occurred trying to load this video.

Try refreshing the page, or contact customer support.

Coming up next: How to Write a Linear Equation

You're on a roll. Keep up the good work!

Take Quiz Watch Next Lesson
Your next lesson will play in 10 seconds
  • 0:00 Slope Basics & Review
  • 1:00 Undefined Slope
  • 2:32 Zero Slope
  • 3:38 Lesson Summary
Save Save Save

Want to watch this again later?

Log in or sign up to add this lesson to a Custom Course.

Log in or Sign up

Speed Speed

Recommended Lessons and Courses for You

Lesson Transcript
Instructor: Elizabeth Foster

Elizabeth has been involved with tutoring since high school and has a B.A. in Classics.

There are two special cases when it comes to slopes on the xy plane: horizontal and vertical lines. Without any more information, these examples can be pretty confusing. But with a little instruction, they end up being some of the easiest lines to graph!

Slope Basics & Review

In this lesson, you'll take a look at some oddball slopes. But first, let's review the basics. Slope is the amount of vertical change per unit of horizontal change. In other words, as a line moves one unit to the right, how many units does it go up or down?

You learned in another lesson that if a line goes up from left to right, its slope is positive, and if it goes down from left to right, its slope is negative. You also know how to identify whether the slope is positive or negative when the line is written in y = mx + b form. M represents the slope of the line, so if m is positive, the slope is positive, and the line will be slanting upwards. If m is negative, the slope is negative, and the line will be slanting downwards.

But what if you get one of these?

slope is

In this lesson, you'll learn how to deal with both of those cases. They might look tricky when you first start out, but they're not actually that bad once you get to know them - in fact, they're some of the easiest slopes to handle!

Undefined Slope

First, we'll start with this one.

vertical line

If the line is vertical, it means that the slope is undefined: it has no value that we can express in numbers. That's a pretty crazy concept, so let's take a look at what's going on here. You know that as a line gets steeper and steeper, the slope gets bigger and bigger if it's positive, or smaller and smaller if it's negative. In both cases, the absolute value of the slope increases as it gets steeper.

The bigger a number gets, the steeper the slope is. But the problem with numbers is that they can just keep getting bigger and bigger. There's no such thing as the biggest number. So, no matter how steep the slope is, there will always be a slope that's even steeper. You can just add or subtract 1.

To get a completely vertical slope, you'd have to have a number that was simultaneously the biggest and the smallest number in existence, but that's not possible. Neither of those numbers exist, and they certainly can't be the same number. That's why the slope is undefined. Mathematically, the slope isn't actually a real number; hence we call it undefined.

So if m is undefined, how do we write this line as an equation? If you look more closely at the graph, you'll see that the x-value is exactly the same for the entire line. So to represent this line numerically, we use the equation x = ____. The line here is the line x = -2. The x-value is the same for every value of y: it's always -2.

To unlock this lesson you must be a Member.
Create your account

Register to view this lesson

Are you a student or a teacher?

Unlock Your Education

See for yourself why 30 million people use

Become a member and start learning now.
Become a Member  Back
What teachers are saying about
Try it risk-free for 30 days

Earning College Credit

Did you know… We have over 200 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Transferring credit to the school of your choice

Not sure what college you want to attend yet? has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

Create an account to start this course today
Try it risk-free for 30 days!
Create an account