
www.VirtualNerd.com
What is a Constant Function?
What is a constant function?
Summary
- A constant function is a special type of linear function that follows the form f(x) = b
- 'b' is the y-intercept of the line and is just a constant
- A constant function is a linear function whose slope is 0
- No matter what value of 'x' you choose, the value of the function will always be the same
- The graph of a constant function is a horizontal line through the y-intercept, 'b'
- In example A, since b is 4, the graph is a horizontal line through y = 4
- In example B, since b is -2, the graph is a horizontal line through y = -2

Notes
-
- A linear function is a function whose graph is a line
-
- When you have a function with one variable like a linear function, f(x) and 'y' are the same thing
- The graph of a linear function is just a line
- The y-intercept is where the line crosses the y-axis
-
- 'm' stands for the slope of the line
- So let's say that 'm', our slope, is equal to 0
- Then we can plug 0 in for 'm' into our formula
- 0 times anything is 0, so the 'x' term cancels out
- Since 0 plus anything is just that number, 0+b leaves us with 'b'
- Remember, 'b' is just a constant: the y-intercept of the line
-
-
- Here 'b' must be a real number
- 'b' is also the y-intercept of the line
-
- Does this type of equation look familiar?
- Remember, a line with a slope of 0 is a horizontal line
- So the graphs of constant functions are just horizontal lines!
-
- In the first example f(x) is equal to 5, which is a constant
- So this is a constant function
- Constant functions can be equal to negative constants too, like the second example where b = -2
-
- Our function f(x) = 4 doesn't have any x's in it!
- So no matter what value we choose for 'x', we'll still get back 4
-
- Since there is no 'x' value in the function, it doesn't change when we choose different values for 'x'
- The value of the function will always remain constant
- That's why it's called a constant function!
-
- Remember, when we defined the function before we had f(x) = b, where 'b' was the y-intercept
- Our y-value is always going to be equal to that constant 'b'
- So the graph will be a horizontal line going through all the points where y = b
-
- This is just like a linear function with no 'x' term
- Remember, the 'x' term canceled out, since the slope was 0
- 'b' is equal to the y-intercept
- Since the y-value of the function is the same no matter what you choose for 'x', the graph is a horizontal line