Skip to content
Gioi Toan
Start learning
A parabola on coordinate axes with a smiling ball rolling along it

What is Constant function?

Short answer

A constant function is a function whose value is always the same fixed number for every value of the variable.

Type
Definition
First learned
Grade 8
Also called
hàm số hằng
In English
constant function

Formulas

y=m (m laˋ ha˘ˋng soˆˊ)y = m \ (m \text{ là hằng số})

Explanation

A constant function is a function of the form y=my = m where mm is a given number, so for every xx, yy always takes exactly the value mm.

The graph of a constant function y=my = m is a straight line that meets the y-axis at the point with y-coordinate mm; this line is parallel to the x-axis if m≠0m \ne 0 and coincides with the x-axis if m=0m = 0.

For example, y=−2y = -2 is a constant function: when x=0x = 0 or x=5x = 5, yy is still equal to −2-2.

Examples

Example 1

Given the function y=4y = 4. Find the value of the function at x=1x = 1 and x=7x = 7.

See the solution to example 1

For every xx, the value of the function is 44. So at x=1x = 1 and x=7x = 7, the value of the function is 44.

Learn it in these lessons