Understanding Functions: Definition, Notation, Inverse, and Domain-Range, Exams of Algebra

An in-depth explanation of functions, their definition, notation, inverse, and domain-range. Functions are rules that assign one unique output to each input. They can be represented using various notations, such as f(x), and can be graphed like equations. The inverse of a function reverses its effect, and the domain and range define the set of valid inputs and outputs, respectively. Examples and equations are provided to illustrate these concepts.

Typology: Exams

2021/2022

Uploaded on 08/01/2022

hal_s95
hal_s95 ๐Ÿ‡ต๐Ÿ‡ญ

4.4

(655)

10K documents

1 / 10

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Functions
Informal definition of a function:
Afunction between two sets is a rule that assigns to each member
in the first set (called the domain) one and only one member in the
second set (called the range).
Intuitively, a function is a machine (or an operation) that takes an
input and produces an output based on the input. For example, think
of a vending machine that sells soft drinks. It takes money (in the
form of coins or bills) as input, and produces canned soda as output.
In algebra, the functions we are interested are functions that take real
numbers as input and gives real numbers as output. An example of a
simple function would be something like:
f:
3โ†’2
โˆ’4โ†’1
5โ†’ โˆ’1
7โ†’2
In this example, the domain of fis the set {3,โˆ’4,5,7}, and the range
of fis the set {โˆ’1,1,2}.
In order for an operation to be a valid function, each input must pro-
duces one and only one output. However, it is valid for a function
to produce the same output with different input. Notice in the above
example that fgives 2 as output for both the inputs 3 and 7, which
still makes fa function.
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Understanding Functions: Definition, Notation, Inverse, and Domain-Range and more Exams Algebra in PDF only on Docsity!

Functions

Informal definition of a function:

A function between two sets is a rule that assigns to each member in the first set (called the domain) one and only one member in the second set (called the range).

Intuitively, a function is a machine (or an operation) that takes an input and produces an output based on the input. For example, think of a vending machine that sells soft drinks. It takes money (in the form of coins or bills) as input, and produces canned soda as output.

In algebra, the functions we are interested are functions that take real numbers as input and gives real numbers as output. An example of a simple function would be something like:

f : 3 โ†’ 2 โˆ’ 4 โ†’ 1 5 โ†’ โˆ’ 1 7 โ†’ 2

In this example, the domain of f is the set { 3 , โˆ’ 4 , 5 , 7 }, and the range of f is the set {โˆ’ 1 , 1 , 2 }.

In order for an operation to be a valid function, each input must pro- duces one and only one output. However, it is valid for a function to produce the same output with different input. Notice in the above example that f gives 2 as output for both the inputs 3 and 7, which still makes f a function.

r : 11 โ†’ 7 6 โ†’ 0 11 โ†’ 4 โˆ’ 2 โ†’ 0

r is not a function because the input 11 has two outputs, 7 and 4.

What makes a function useful is the fact that it expresses the relation- ship of two quantities, where one quantity (output) is determined by the value of another quantity (input). Many relationships in the real world can be modeled using a functional relationship. For example, for a car driving at a constant speed, if we know how many hours the car has been driven, we know how much distance it has travelled. In this case, we say that the distance is a function of time. For another example, if we know the day of the year, we know the location of the Earth (in relation to the sun), therefore, the location of the Earth is a function of the day of the year. With an appropriate function de- fined (a periodic function), one can have a formula that expresses the location of the earth once the day of the year is known.

If we think of the input as the x coordinate and the output as the y coordinate, then it is possible to describe a function using an equation:

E.g. y = 3x + 1

In this equation, if we treat y as the output and x as the input, since the value of y is completely determined by the value of x, this implicitely describes a function. We say that y is a function of x.

E.g. y = x^2 โˆ’ 4

This also describes y as a function of x, since for each x there is one and only one y that solves the equation.

E.g. |y| = 2x

For this equation y is not a function of x. For some values of x, there is more than one y value that solves the equation. For example, if x = 1, then y = 2 or y = โˆ’2 both solves the equation.

It is important to know that while some equations (in two variable) de- scribe a function, and some functions can be described by an equation, an equation is not a function. A function is the operation (relationship) behind the input (x) and output (y) that gives rise to the equation.

Composition of Functions:

If f (x) is a function and g(x) is also a function, we may describe the meaning of f (g(x)) as the (new) function that takes x as the input, then first apply g to x, then apply f to g(x).

E.g.

f (x) = 4x + 5, g(x) = x^2 โˆ’ 1

f (g(x)) = f (x^2 โˆ’ 1) = 4(x^2 โˆ’ 1) + 5 = 4x^2 โˆ’ 4 + 5 = 4x^2 + 1

g(f (x)) = g(4x + 5) = (4x + 5)^2 โˆ’ 1 =

16 x^2 + 40x + 25 โˆ’ 1 = 16x^2 + 40x + 24

E.g.

f (x) =

x, g(x) =

x

f (g(x)) = f

( 3 x

)

โˆšโˆš โˆšโˆš 3 x

g(f (x)) = g(

x) =

x

Domain and Range

When a function is given as an equation in the f (x) notation, it is understood that the domain of the function is all real numbers that allow the function to be defined, and the range is all possible values of f for x in the domain.

E.g. f (x) = x + 5

For this example, f is defined for any real number x, so domain of f is all real numbers. Also evary real number can be produced for different values of x, so the range of f is also all real numbers.

E.g. f (x) =

x โˆ’ 1 For this example, if x = 1, then we have division by 0, and this will make f undefined. For all other values of x, f is defined, therefore, the domain of f is all real numbers except 1.

The only number that f cannot produce is the number 0, therefore the range of f is all real numbers except 0.

E.g. f (x) = 4x + 6, g(x) = x โˆ’ 6 4

f (g(x)) = f

( (^) x โˆ’ 6

4

) = 4

( (^) x โˆ’ 6

4

)

  • 6 = (x โˆ’ 6) + 6 = x

g(f (x)) = g(4x + 6) =

(4x + 6) โˆ’ 6 4

4 x 4

= x

So f and g are inverse functions of each other.

A One-to-One Function is a function f that produces different out- put (y) with different input (x). I.e. f is one-to-one if f (a) = f (b), then a = b.

Examples of one-to-one functions:

f (x) = x + 5

f (x) = 4x โˆ’ 3

f (x) = 3x

Examples of functions that are not one-to-one:

f (x) = x^2

Notice that f (โˆ’2) = (โˆ’2)^2 = 4 and f (2) = (2)^2 = 4. This function f produces the same output 4 for different input, 2 and โˆ’2, therefore it is NOT a one-to-one function.

f (x) = |x + 5|

Notice that f (โˆ’3) = | โˆ’ 3 + 5| = | 2 | = 2 and f (โˆ’7) = | โˆ’ 7 + 5| = | โˆ’ 2 | = 2. Since f produces the same output 2 for different input, โˆ’ 3 and โˆ’7, f is NOT a ont-to-one function.

If a function is NOT one-to-one, it is harder to define its inverse. For example, for f (x) = x^2 , since f : โˆ’ 2 โ†’ 4 and f : 2 โ†’ 4, we would like the inverse of f to produce both โˆ’2 and 2 if the input is 4. But this violates the fact that f โˆ’^1 is a function.

So what can we do about the inverse of f if f is not a one-to-one function? For example, if we have:

f : 1 โ†’ 7 0 โ†’ 0 ฯ€ โ†’ 0 2 โ†’ 4

How can we define f โˆ’^1 for this function? We know the effect of f โˆ’^1 on the two numbers 7 and 4. Necessarily, f โˆ’^1 (7) = 1 and f โˆ’^1 (4) = 2 How about f โˆ’^1 (0)? Should we have f โˆ’^1 (0) = 0 or f โˆ’^1 (0) = ฯ€?

The answer is, we make the choice, we can define f โˆ’^1 (0) = 0, in which case we have an inverse of f :

f โˆ’^1 : 7 โ†’ 1 0 โ†’ 0 4 โ†’ 2

Given an expression for a function f , sometimes one can algebraically find the inverse of f by the following method:

Set f (x) = y. Solve for x in terms of y, if possible. If such an expression in terms of y can be solved for, say g(y), then g(y) = f โˆ’^1 (y) is the inverse of f.

E.g.

Find the inverse of f (x) =

2 x โˆ’ 1 x + 3

Ans: We set f (x) = 2 x โˆ’ 1 x + 3

= y and try to solve for y:

2 x โˆ’ 1 = y(x + 3)

2 x โˆ’ 1 = xy + 3y

2 x โˆ’ xy = 3y + 1

x(2 โˆ’ y) = 3y + 1

x =

3 y + 1 2 โˆ’ y

f โˆ’^1 (y) =

3 y + 1 2 โˆ’ y

y or x is just the name of a variable, it is, of course, perfectly correct to write:

f โˆ’^1 (x) =

3 x + 1 2 โˆ’ x