|
|
Function Basics

A function is a mathematical expression that relates inputs to their respective outputs. It can be thought of as a machine. These machines are fed something called an input, and produce something different, called an output. 

Mockup Schule

Explore our app and discover over 50 million learning materials for free.

Function Basics

Illustration

Lerne mit deinen Freunden und bleibe auf dem richtigen Kurs mit deinen persönlichen Lernstatistiken

Jetzt kostenlos anmelden

Nie wieder prokastinieren mit unseren Lernerinnerungen.

Jetzt kostenlos anmelden
Illustration

A function is a mathematical expression that relates inputs to their respective outputs. It can be thought of as a machine. These machines are fed something called an input, and produce something different, called an output.

In this article, we will learn more about functions and their basics.

Function basics definition

A function is a relation that associates each value of the departing set, called input, with one single value, called output, of the arrival set.

Notation of a function

A function is denoted usually by f(x), where the input is x and the output is f(x).

Basic Attributes of functions

There are several key attributes that are helpful in determining whether a mathematical relation is a function. These attributes serve an important role in fully defining any function.

Input

Input is the independent value that is fed into a function, to produce an output.

The input of a function is a placeholder, that can take any value of the departing set to produce one output.

Output

Output is the value of the function arising from a certain input. The output is referred to as the dependent variable since its value depends on the input value.

A function to describe the projected growth in a population of rabbits in a field over time could have an output representative of the number of rabbits in the field at a given point in time.

A simple way to visualize this relationship between inputs and outputs in functions is the function diagram.

Below shows a diagram representing inputs and outputs for the function, f(x) = 2x.

Function basics inputs and outputs studysmarterInputs relate to outputs via functions- StudySmarter Originals

The below function is written in terms of a variable, x. Notice the function notation, the x inside the brackets indicates that this is a function with x as an input.

f(x) = 3x + 8.

Now, how do we actually use this function? Well, we want to find the output of this function for a given input, so it is simply a case of replacing any x in the function with said input.

Let's try this for an input of 10. All we have to do is replace every x with a 10.

f(10) = 3 × 10 + 8=30+8=38.

So for an input of 10, we have an input of 38.

Let's try another input value, for example x=0. In this case, the output value would be f(0)=3×0+8=0+8=8.

Function Not a function
f(x)= 2x + 3 f(b) = ±b2 + 42
f(t) = t3 + t + 1x2=y2+1

We consider the above table where we distinguish between functions and non functions for the following reasons:

  • For f(x)=2x+3, for every input x, we have one single output f(x).
  • The same goes for f(t)=t3+t+1, for every input t, we have one single output f(t).
  • However, for f(b)=±b2+42, each input b, has 2 different outputs f(b), namely the positive and the negative of the fraction in question.
  • The same goes for x2=y2+1, while rearranging so we have y as the subject we get, y=±x2-1, and hence for every input x, we have two different outputs, namely the positive and the negative root of x2-1.

Domain

The domain of a function is the set of all possible inputs of a function.

The domain is an important function attribute as it describes what input values are acceptable inputs to the function. It is used to avoid any undefined or undesirable outputs.

For instance, we take the following function

f(x)= 15x - 7

The input variable of this function is x, so for what values of x does there not exist an output?

Well, we know that the bottom half of the fraction cannot be zero as dividing by zero is impossible. Now we just have to find the value of x at which the bottom of the function is equal to zero and we can include it in our domain.

x - 7 = 0

x = 7

So, for our function to be defined, our independent variable x can take any values in the set of real numbers, except x=7.Thus, we denote the domain of our function as follows

Domainf=Df= x: x x 7.

This means that the domain of the function f(x) is simply the set of all real numbers, apart from 7. In essence, for any real number input apart from 7, the function has a unique, and real output.

Determine the domain of the following function,

h(x) = x + 9

Solution

As the square root of a negative does not exist, the value of the function inside the square root must not be negative. So we should have

x + 9 0

Hence, we can deduce that

x - 9

And from this, we can define the domain of this function as the set of all real numbers greater than -9,

Dh= x: x x -9

Range

The range of a function represents all possible output values of a function.

Let's take a look at the same function as before, f(x).

f(x) = 15x - 7

We have already found its domain,

Df=x: x x 7

What can the output of f(x) not be? Well, no matter what value of x we take as our input to the function, it is impossible for f(x) to be equal to zero. The value of f(x) can get infinitely closer to zero for larger and larger values of x, but it will never actually reach it.

Thus, we can deduce that the range of our function is the set of all real numbers except for zero.

Range of f={z: z(x) z(x)0}=\0.

Determine the range of the following function,

r(t) = 2t

Solution

Well, as it is impossible for the square root of a number to be negative, finding the range of this function is relatively direct.

The output of r(t) must be a positive number, and so the range of r(t) is the set of all real, positive numbers and zero,

Range of r(t)={ r(t) 0}=+

Evaluating functions

Evaluating a function means finding the output that corresponds to a given input.

This is usually done through a direct substitution of the input value and a simplification of the right-side of the expression. Let's look at this in practice.

Evaluate the below function when x=4.

f(x) = x2+12

Solution

Finding the solution to the function when x = 4 is as simple as substituting 4 in place of each x.

f(4) = 42 + 12

Now, solving the function is just as simple as solving any other equation,

f(4) =16 +12=28

Let's have a look at another, just to make sure we've got it.

Consider the function h(t). Find the solution to the function h(t) when t = 13.

h(t) = 18t + 15

Let's sub in our given value of t,

h(13) = 1813 + 15

And simplify the right-hand side of the equation, to get

h(13) = 1828=914

Graphing functions

One very powerful way to represent functions is with graphs. Graphs provide a great visual representation, that can be used to interpret functions and discern their properties.

Graphs of functions are simply comprised of the function's outputs on one axis, (typically the vertical axis) and the function's inputs on the other axis (typically the horizontal axis). Below are some examples of various functions and their graphs.

f(x) = 2x + 5

function basics graph of a straight line function example studysmarterGraph of a straight line function - StudySmarter Originals

h(t) = t2 - 3

function basics quadratic graph example StudySmarterGraph of quadratic function - StudySmarter Originals

How exactly is it that we can graph function like this for ourselves? Well, doing this by hand is a simple case of plotting a series of individual points on a set of axes, and joining them up with a smooth line.

This can be done while following the steps.

  1. Take a large set of input values from the domain of the function.
  2. Calculate the corresponding outputs.
  3. Plots the couple of points we already found in steps 1 and 2 into the graph.
  4. Join the points with a smooth curve.

Let's take a look at a quick example to see how we do this.

On a set of axes, plot the graph of the function f(x) = x2 - 2.

Solution

The first step in plotting the function is to find the domain of the function.

Since f is a polynomial function, its domain is the set of all real numbers.

Let's take the inputs x = {-3 , -2 , -1, 0, 1, 2 , 3}. We can find their corresponding outputs by substituting them through the function.

We recall that f(x) = x2 - 2, thus

xf(x)
x=-3

f(-3) = (-3)2 - 2 = 7

x=-2

f(-2) = (-2)2 - 2 = 2

x=-1

f(-1) = (-1)2 - 2 = -1

x=0

f(0) = 02 - 2 = -2

x=1

f(1) = 12 - 2 = -1

x=2

f(2) = 22 - 2 = 2

x=3f(3) = 32 - 2 = 7

This gives us the following points to be plotted on the graph,

(-3,7), (-2,2), (-1,-1), (0,-2), (1,-1), (2,2), (3,7)

Next, we plot these points on the graph.

Function Basics plotting the graph of a function studysmarterrPlotting points of the example function- StudySmarter Originals

The final stage is to join up the dots with a smooth curved line.

Function basics graphing a function example StudySmarterGraphing a function - StudySmarter Originals

Now, what if we wanted to find the value of one of these functions for a given input? Well, let's try and find the output of h(t) when t = 3.

All we have to do is find the point where the line t = 3 intercepts with the function h(t).

h(t) = t2 - 3

 function basics finding the value of a functions output for a certain input studysmarterFinding the output of a function for a given input - StudySmarter Originals

And so, from the graph, we can read that the solution to the function h(t) when t = 3 is 6.

Not only can we use a vertical line to find the output of a function, but can also be used to test if a given graph is of a function at all. Let's take a look at how!

Vertical Line Test

As previously discussed, for a given input, a function can only have one single output. Due to this attribute, there is a simple test that can be done to check if a graph is of a function.

Put simply, if a graph is of a function, any vertical line drawn will only cross it once. If a vertical line can be drawn that crosses the graph more than once, then the graph is not of a function.

Below is an example of the vertical line test used on a function.

function basics vertical line test studysmarterVertical line test on a function example - StudySmarter Originals

Though this graph below may seem like a function at first glance, we can see from inspection and the vertical-line test that each input has two outputs, therefore the below graph is not a function.

function basics vertical line test studysmarterVertical line test conducted on a non-function example - StudySmarter Originals

Basic Types of Functions

There are a few basic types of functions that it is important to be able to recognize. Let's take a look at a few type of functions sand their corresponding graphs.

Linear function.

Linear functions can always be expressed in the form y=ax+b, for instance,y = 2x + 3.

The graph of a linear function is a straight line.

function basics graph of a linear function studysmarterGraph of a linear function- StudySmarter Originals

Quadratic functions.

Quadratic functions are of the form f(x) = ax2 + bx + c. For example,f(x) = 3x2 + 2x + 5.

The graph of a quadratic function is a parabola, a U shaped curve opening upwards or downwards.

function basics graph of a quadratic function studysmarterGraph of a quadratic function - StudySmarter Originals

Trigonometric functions.

Trigonometric functions such as f(x)=sin x, f(x)=cos x and f(x)=tan x. whose graphs are plotted below.

f(x) = sin(x)

Function basics graph of a sine function studysmarterGraph of a sine function- StudySmarter Originals

f(x) = cos(x)

function basics graph of a cosine function studysmarterGraph of a Cosine function - StudySmarter Originals

f(x) = tan(x)

function basics graph of a tangent function studysmarterGraph of a tangent function - StudySmarter Originals

There are so many more types of functions that we haven't mentioned. There are logarithmic functions, exponential functions, cubic functions, quartic functions and so many more! Why not head over to our article on Types of Functions to find out more!

Examples of functions

We finalize our article with some simple yet incredibly complicated graphs of functions.

Here is an example of a very simple linear function.

f(x) = 3x + 2

Function basics example of a linear function studysmarterExample of a linear function - StudySmarter Originals

We can get more complicated functions, such as this example of a quadratic function.

f(x) = 4(x-3)2 + 2

Function basics example of a quadratic function studysmarterExample of a quadratic function - StudySmarter Originals

Functions can even be as crazy as the one below. There really are unlimited possibilities!

f(x) = 2x2 + 4x3 - 3x +3x2x + 7 - 4x - 3x + ln(x)5

Function basics example of a complicated function studysmarterExample of a complicated function - StudySmarter Originals

So there we have it, those are the basics of functions! All of this is just the tip of the iceberg though, why not check out some of our other explanations on various aspects of functions to uncover the rest!

Function Basics - Key takeaways

  • Functions are mathematical expressions that relate inputs to outputs.
  • By definition, each input to a function can only have a single output.
  • The domain of a function is the set of all possible inputs of a function.
  • Solving a function for a given input is simply a case of replacing the function variable with the value of said input, and solving the right-hand side of the equation.

Frequently Asked Questions about Function Basics

A function is a mathematical expression which has no more than one output for a given input.

Some types of functions are trigonometric functions, linear functions, quadratic functions, cubic functions and logarithmic functions.

Equations are functions if they have no more than a single output for a given input.

The simplest function in maths could arguably be any kind of constant function, i.e. y = 5. For constant functions such as this, the output for all inputs is the same, in this case, 5.

Some examples of functions are f(x) = sin(x), f(x) = ln(x), and f(x) = 2x + 1. 

Each of these functions has no more than a single output for a given input.

Join over 22 million students in learning with our StudySmarter App

The first learning app that truly has everything you need to ace your exams in one place

  • Flashcards & Quizzes
  • AI Study Assistant
  • Study Planner
  • Mock-Exams
  • Smart Note-Taking
Join over 22 million students in learning with our StudySmarter App Join over 22 million students in learning with our StudySmarter App

Sign up to highlight and take notes. It’s 100% free.

Entdecke Lernmaterial in der StudySmarter-App

Google Popup

Join over 22 million students in learning with our StudySmarter App

Join over 22 million students in learning with our StudySmarter App

The first learning app that truly has everything you need to ace your exams in one place

  • Flashcards & Quizzes
  • AI Study Assistant
  • Study Planner
  • Mock-Exams
  • Smart Note-Taking
Join over 22 million students in learning with our StudySmarter App