**FUNCTIONS:**

**Functions as a special kind of relation:**

Let us first consider an example where set A is a set of men, and B is a set of positive real numbers. Let us say f is a relation from A to B given by :

Hence, f “relates” every man in set A to his weight in set B. That is,

i) Every man has some weight associated with him in set B. (ii) That weight is unique. That is, a person cannot have more than one weight (at a given time, of course) !! 🙂 This, of course, does not mean that two different persons, say P and Q may not have the same weight 100 kg ( the same element of set B). The only thing it means is that any one person, say P will have one and only one weight (100kg) at the time instant of measurement and not more than one weights (which would be crazy) at a time instant it is measured !!

**Definition I (a function defined as a relation):**

A function f from a set A (called domain) to a set B (called codomain) is a relation that associates or “pairs up” every element of domain A with a unique element of codomain B. (Note that whereas a relation from a set A to a set B is just a subset of the cartesian product ).

*Some remarks:* The above definition is also motivated by an example of a function as a relation. *On the other hand, another definition of a function can be motivated as follows:*

We know that the boiling point of water depends on the height of water above sea level. We also know that the simple interest on a deposit in a bank depends on the duration of deposit held in the bank. In these and several such examples, one quantity, say y, depends on another quantity “x”.

Symbol: ; if , then we also denote: ; we also write , read as “y is f of x”.

Here, y is called image of x under f and x is called the preimage of y under f.

Definition: Range: The set of all images in B is called the range of f. That is,

Note: (i) Every function is a relation but every relation need not be a function. (Homework quiz: find illustrative examples for the same) (ii) If the domain and codomain are not specified, they are assumed to be the set of real numbers.

In calculus, we often want to refer to a generic function without having any particular formula in mind. Leonhard Euler invented a symbolic way to say “y is a function of x” by writing

(“y equals f of x”)

In this equation, the symbol f represents the function. The letter x, called the **independent variable, **represents an input value from the domain of f, and y, the dependent variable, represents the corresponding output value f(x) in the range of f. **Here is the formal definition of function: (definition 2):**

A **function **from a set D to a set is a rule that assigns a unique element *f(x)* in to each element x in D.

In this definition, D=D(f) (read “D of f”) is the domain of the function f and is the range (or codomain containing the range of f).

Think of a function f as a kind of machine that produces an output value f(x) in its range whenever we feed it an input value x from its domain. In our scope, we will usually define functions in one of two ways:

a) by giving a formula such as that uses a dependent variable y to denote the value of the function, or

b) by giving a formula such as that defines a function symbol f to name the function.

**NOTE: **there can be well-defined functions which do not have any formula at all; for example, let when and , when .

Strictly speaking, we should call the function f and not f(x) as the latter denotes the value of the function at the point x. However, as is common usage, we will often refer to the function as f(x) in order to name the variable on which f depends.

It is sometimes convenient to use a single letter to denote both a function and the dependent variable. For instance, we might say that the area A of a circle of radius r is given by the function : .

**Evaluation:**

As we said earlier, most of the functions in our scope will be **real-valued function **of a **real variable, **functions whose domains and ranges are sets of real numbers. We evaluate such functions by susbtituting particular values from the domain into the function’s defining rule to calculate the corresponding values in the range.

**Example 1:**

The volume V of a ball (solid sphere) r is given by the function: .

The volume of a ball of radius 3 meters is : .

**Example 2:**

Suppose that the function F is defined for all real numbers t by the formula: .

Evaluate F at the output values 0, 2, , and F(2).

**Solution 2:**

In each case, we substitute the given input value for t into the formula for F:

**The Domain Convention**

When we define a function with a formula and the domain is not stated explicitly, the domain is assumed to be the largest set of x-values for which the formula gives real x-values. This is the function’s so-called **natural domain. **If we want the domain to be restricted in some way, we must say so.

The domain of the function is understood to be the entire set of real numbers. The formula gives a real value y-value for every real number x. If we want to restrict the domain to values of x greater than or equal to 2, we must write ” ” for .

Changing the domain to which we apply a formula usually changes the range as well. The range of is . The range of where is the set of all numbers obtained by squaring numbers greater than or equal to 2. In symbols, the range is or or

**Example 3:**

Function : ; domain ; Range (y) is

Function: ; domain ; Range (y) is

Function: ; domain and range (y) is

Function , domain , and range (y) is

**Graphs of functions:**

The **graph **of a function f is the graph of the equation . It consists of the points in the Cartesian plane whose co-ordinates are input-output pairs for f.

Not every curve you draw is the graph of a function. A function f can have only one value f(x) for each x in its domain so no ** vertical line **can intersect the graph of a function more than once. Thus, a circle cannot be the graph of a function since some vertical line intersect the circle twice. If a is in the domain of a function f, then the vertical line will intersect the graph of f in the single point .

**Example 4: **Graph the function over the interval . (*homework).***Thinking further: ***so plotting the above graph requires a table of x and y values; but how do we connect the points ? Should we connect two points by a straight line, smooth line, zig-zag line ??? How do we know for sure what the graph looks like between the points we plot? The answer lies in calculus, as we will see in later chapter. There will be a marvelous mathematical tool called the derivative to find a curve’s shape between plotted points. Meanwhile, we will have to settle for plotting points and connecting them as best as we can. *

**PS: (1) **you can use GeoGebra, a beautiful freeware for plotting various graphs, and more stuff https://www.geogebra.org/ (2) If you wish, you can use a TI-graphing calculator. This is a nice investment for many other things like number theory also. See for example,

Meanwhile, you need to be extremely familiar with graphs of following functions; plot and check on your own:

, , , , , , , where ,

**Sums, Differences, Products and Quotients**

Like numbers, functions can be added, subtracted, multiplied and divided (except where the the denominator is zero) to produce new functions. If f and g are functions, then for every x that belongs to the domains of BOTH f and g, we define functions: , , by the formulas:

,

At any point at which , we can also define the function by the formula:

, where

Functions can also be multiplied by constants. If c is a real number, then the function cf is defined for all x in the domain of f by

**Example 5:**

Function , formula , domain

Function , formula , domain

Function , formula , domain

Function , formula , domain

Function , formula , domain

Function , formula , domain

Function , formula , domain

Function , formula , domain is

Function , domain

**Composite Functions:**

Composition is another method for combining functions.

**Definition:**

If f and g are functions, the **composite **function (f “circle” g) is defined by . The domain of consists of the numbers x in the domain of g for which lies in the domain of f.

The definition says that two functions can be composed when the image of the first lies in the domain of the second. To we first find and second find .

Clearly, in general, . That is, composition of functions is not commutative.

**Example 6:**

If and , find (a) (b) (c) (d)

**Solution 6:**

a) , domain is

b) , domain is

c) , domain is

d) , domain is or

**Even functions and odd functions:**

A function f(x) is said to be even if . That is, the function possesses symmetry about the y-axis. Example, .

A function f(x) is said to be odd if . That is, the function possesses symmetry about the origin. Example .

Any function can be expressed as a sum of an even function and an odd function.

A function could be neither even nor odd.

Note that a function like possesses symmetry about the x-axis !!

**Piecewise Defined Functions:
**

Sometimes a function uses different formulas or formulae over different parts of its domain. One such example is the absolute value function:

, when and , when .

**Example 7:**

The function , when , , when , and , when .

**Example 8:**

**The greatest integer function:**

The function whose value at any number x is the *greatest integer less than or equal to x *is called the **greatest integer function **or the **integer floor function. **It is denoted by .

Observe that ; ; ; ; ; ‘ ; .

**Example 9:**

**The least integer function:**

The function whose value at any number x is the *smallest integer greater than or equal to x *is called the **least integer function or the integer ceiling function. **It is denoted by . For positive values of x, this function might represent, for example, the cost of parking x hours in a parking lot which charges USD 1 for each hour or part of an hour.

Cheers,

Nalin Pithwa