What is a Function in Math? - Definition & Examples

What is a Function in Math? - Definition & Examples
Coming up next: What is Infinity in Math?

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

Take Quiz Watch Next Lesson
Your next lesson will play in 10 seconds
  • 0:04 Function: Definition
  • 0:58 Functions in Math
  • 1:28 More Examples
  • 1:53 Lesson Summary
Add to Add to Add to

Want to watch this again later?

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

Log in or Sign up


Recommended Lessons and Courses for You

Lesson Transcript
Instructor: Allison Petrovic

Allison has experience teaching high school and college mathematics and has a master's degree in mathematics education.

Have you ever gotten candy out of a vending machine? Getting candy from a vending machine is similar to using a function in math! In this lesson, we'll explore the definition of a function and some examples.

Function: Definition

Whenever you buy something from a vending machine, what do you usually get? Maybe a bag of Sun Chips or a Twix candy bar? When choosing your purchase, have you ever stopped to think about how a vending machine works? First, you put in your money. Then, you press the button associated with the item you want. Lastly, you receive your treat and eat it. A commercial vending machine operates in much the same way as a mathematical function.

A function is one or more rules that are applied to an input and yield an output. The input is the number or value put into a function. The output is the number or value the function gives out. Let's see what these definitions mean using our vending machine example.

The money we insert into the vending machine in the input. The buttons we press on the vending machine represent the function. The bag of Sun Chips or Twix candy bar we receive in return is our output.

Functions in Math

Now, let's talk about functions in math using an example:

function 1

In this example, our input is 5. The function is to add 3 to 5. As 5 + 3 = 8, 8 is our output.

To unlock this lesson you must be a Study.com 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 Study.com

Become a Study.com member and start learning now.
Become a Member  Back
What teachers are saying about Study.com
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? Study.com 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