Calculus/Functions

From testwiki
Revision as of 21:27, 7 March 2008 by imported>Zginder (Important functions)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Template:NextPrev

Functions

Classical understanding of functions

To provide the classical understanding of functions, a function can be thought of as a machine. Machines take in raw materials, change them in a predictable way, and give out a finished product. The kinds of functions we consider here, for the most part, take in a real number, change it in a formulaic way, and give out another real number. A function is usually named f or g or something similar except when it is a special, named function (such as the pi function, the Riemann Zeta function, or the random variable function). A function is always defined as "of a variable" which tells the reader what to replace in the function.

For instance, f(x)=3x+2  tells the reader:

  • The function f is a function of x.
  • To evaluate the function at a certain number, replace the x with the desired number.
  • Replacing x with that number in the right side of the function will produce the function's output for that certain input.
  • In English, the definition of f  is interpreted, "Given a number, f will return two more than the triple of that number."

Thus, if we want to know the value (or output) of the function at 3:

f(x)=3x+2 
f(3)=3(3)+2  We evaluate the function at x = 3.
f(3)=9+2=11  The value of f  at 3 is 11.

Note that f(3)  means the value of the dependent variable when x  takes on the value of 3. So we see that the number 11 is the output of the function when we give the number 3 as the input. We refer to the input as the argument of the function (or the independent variable), and to the output as the value of the function at the given argument (or the dependent variable). A good way to think of it is the dependent variable f(x)  'depends' on the value of the independent variable x . This is read as "the value of f of three is eleven", or simply "f of three equals eleven".

Notation

Functions are used so much that there is a special notation for them. The notation is somewhat ambiguous, so familiarity with it is important in order to understand the intention of an equation or formula.

Though there are no strict rules for naming a function, it is standard practice to use the letters f, g, and h to denote functions, and the variable x to denote an independent variable. y is used for both dependent and independent variables.

When discussing or working with a function f, it's important to know not only the function, but also its independent variable x. Thus, when referring to a function f, you usually do not write f, but instead f(x). The function is now referred to as "f of x". The dependent variable is adjacent to the independent variable (in parenthesis). This is useful for indicating the value of the function at a particular value of the independent variable. For instance, if


f(x)=7x+1,


and if we want to use the value of f for x equal to 2, then we would substitute 2 for x on both sides of the definition above and write


f(2)=7(2)+1=14+1=15


This notation is more informative than leaving off the independent variable and writing simply 'f', but can be ambiguous since the parentheses can be interpreted as multiplication. Consistency in notation greatly improves the readability of mathematical text.

Modern understanding of functions

The formal definition of a function states that a function is actually a rule that associates elements of one set called the domain of the function, with the elements of another set called the range of the function. For each value we select from the domain of the function, there exists exactly one corresponding element in the range of the function. The definition of the function tells us which element in the range corresponds to the element we picked from the domain. Classically, the element picked from the domain is pictured as something that is fed into the function and the corresponding element in the range is pictured as the output. Since we "pick" the element in the domain for whose corresponding element in the range we want to find, we have control over what element we pick and hence this element is also known as the "independent variable". The element mapped in the range is beyond our control and is "mapped to" by the function. This element is hence also known as the "dependent variable", for it depends on which independent variable we pick. Since the elementary idea of functions is better understood from the classical viewpoint, we shall use it hereafter. However, it is still important to remember the correct definition of functions at all times.

To make it simple, for the function f(x), all of the x values constitute the domain, and all of the values f(x) (y on the x-y plane) constitute the range.

Remarks

The following arise as a direct consequence of the definition of functions:

  1. By definition, functions can take as many "inputs" at a time as desired but return only one "output", corresponding to that set of input. While one set of inputs cannot correspond to more than one output, the same output may correspond to more than one set of inputs. This is interpreted graphically as the vertical line test: a line drawn parallel to the axis of the dependent variable (normally vertical) through the graph of a function will intersect that function only once. Equivalently, this has an algebraic (or formula-based) interpretation. We can always say if a=b, then f(a)=f(b), but if we only know that f(a)=f(b) then we can't be sure that a=b.
  2. Each function has a set of values, the function's domain, which it can accept as input. Perhaps this set is all positive real numbers; perhaps it is the set {pork, mutton, beef}. This set must be implicitly/explicitly defined in the definition of the function. You cannot feed the function an element that isn't in the domain, as the function is not defined for that input element.
  3. Each function has a set of values, the function's range, which it can output. This may also be the set of real numbers, in which case the function is termed as a "real-valued" function. It may be the set of positive integers or even the set {0,1}. This set, too, must be implicitly/explicitly defined in the definition of the function.
This is an example of an expression which fails the vertical line test.

The vertical line test

The vertical line test is a systematic test to find out if an expression can serve as a function. Simply graph the expression and draw a vertical line along each point in the domain of the relation. If any vertical line ever touches the relation for more than one value, then the expression is not a function; if the line always touches only one value, then the expression is a function.

(There are a lot of useful curves, like circles, that aren't functions (see picture). Some people call these graphs with multiple intercepts, like our circle, "multi-valued functions"; they would refer to our "functions" as "single-valued functions".)

Important functions

f(x)=anxn+an1xn1++a2x2+a1x+a0 --Polynomial function
f(x)=x --Identity function
Takes an input and gives it as output.
g(x)=c --Constant function
Takes an input, ignores it, and always gives the constant c as an output. A polynomial of the zeroth degree
g(x)=0 --Zero function
A special case of the above. A polynomial of the undefined degree.
f(x)=mx+b --Linear function (function of a line)--polynomial of the first degree.
Takes an input, multiplies by m and adds b
sgn(x)={1:x<00:x=01:x>0. -- The signum function
Determines the sign of the argument x.
f(x)=ax2+bx+c -- The quadratic function.
A particular case of the more general polynomial function.

Example functions

Some more simple examples of functions have been listed below.

h(x)={1,if x>01,if x<0
Gives 1 if input is positive, -1 if input is negative. Note that the function only accepts negative and positive numbers, not 0. Mathematics describes this condition by saying 0 is not in the domain of the function.
g(y)=y2
Takes an input and squares it.

g(z)=z2

Exactly the same function, rewritten with a different independent variable. This is perfectly legal and sometimes done to prevent confusion (e.g. when there are already too many uses of x or y in the same paragraph.)
f(y)={yyex2dx,if y>00,if y0
Takes an input and uses it as boundary values for an integration.

It is possible to replace the independent variable with any mathematical expression, not just a numeral. For instance, if the independent variable is itself a function of another variable, then it could be replaced with the value of that function. This is called composition, and is discussed next.

Manipulating functions

Functions can be manipulated in the same manner as any other variable; they can be added, multiplied, raised to powers, etc. For instance, let


f(x)=3x+2 and
g(x)=x2.

Then

f+g=(f+g)(x)=f(x)+g(x)=(3x+2)+(x2)=x2+3x+2,


fg=(fg)(x)=f(x)g(x)=(3x+2)(x2)=x2+3x+2,


f×g=(f×g)(x)=f(x)×g(x)=(3x+2)×(x2)=3x3+2x2,


fg=(fg)(x)=f(x)g(x)=3x+2x2=3x+2x2.

Composition of functions

However, there is one particular way to combine functions which cannot be done with other variables. The value of a function f depends upon the value of another variable x; however, that variable could be equal to another function g, so its value depends on the value of a third variable. If this is the case, then the first variable is a function h of the third variable; this function (h) is called the composition of the other two functions (f and g). Composition is denoted by


fg=(fg)(x)=f(g(x)).

This can be read as either "f composed with g" or "f of g of x."


For instance, let

f(x)=3x+2 and
g(x)=x2.

Then

h(x)=f(g(x))=f(x2)=3(x2)+2=3x2+2.


Here, h is the composition of f and g. Note that composition is not commutative:


f(g(x))=3x2+2, and
g(f(x))=g(3x+2)=(3x+2)2=9x2+12x+4
so f(g(x))g(f(x)).

Composition of functions is very common, mainly because functions themselves are common. For instance: addition, multiplication, etc., can be represented as functions of more than one independent variable:


plus(x,y)=x+y,
times(x,y)=x×y, etc.


Thus, the expression 2×3+4 is a composition of functions:

2×3+4 = times(2,3)+4
= plus(times(2,3),4).

Since the function times equals 6 if x=2 and y=3, then


plus(times(2,3),4)=plus(6,4).


Since the function plus equals 10 if x=6 and y=4, then

(2×3)+4=plus(times(2,3),4)=plus(6,4)=10.

Transformations

Transformations are a type of function manipulation that are very common. They consist of multiplying, dividing, adding or subtracting constants to either the argument or the output. Multiplying by a constant is known as Dilation and adding a constant is called Translation. Here are a few examples:

f(2×x) Dilation
f(x+2) Translation
2×f(x) Dilation
2+f(x) Translation
Examples of horizontal and vertical translations
File:Dilations.jpg
Examples of horizontal and vertical dilations

Translations and Dilations can be either horizontal or vertical. Examples of both vertical and horizontal translations can be seen at right. The red graphs represent functions in their 'original' state, the solid blue graphs have been translated (shifted) horizontally, and the dashed graphs have been translated vertically. Dilations are demonstrated in a similar fashion. The function

f(2×x)

has had its input doubled. One way to think about this is that now any change in the input will be doubled. If I add one to x, I add two to the input of the function, so it will now change twice as quickly. However, this is a horizontal dilation by 12 because the distance to the y-axis has been halved. A vertical dilation, such as

2×f(x)

is slightly more straightforward. In this case, you double the output of the function. The output represents the distance from the x-axis, so in effect, you have made the graph of the function 'taller'. Here are a few basic examples where a is any postive constant:

Original Graph f(x) Reflection through origin f(x)
Horizontal Translation by a units right f(xa) Horizontal Translation by a units left f(x+a)
Horizontal Dilation by a factor of a f(x×1a) Vertical Dilation by a factor of a a×f(x)
Vertical Translation by a units down f(x)a Vertical Translation by a units up f(x)+a
Reflection over x-axis f(x) Reflection over y-axis f(x)

Domain and Range

Notation

The notation used to denote intervals is very simple, but sometimes ambiguous because of the similarity to ordered pair notation:

Meaning Interval Notation Set Notation
All values greater than or equal to a and less than or equal to b [a,b] {x:axb}
All values greater than a and less than b (a,b) {x:a<x<b}
All values greater than or equal to a and less than b [a,b) {x:ax<b}
All values greater than a and less than or equal to b (a,b] {x:a<xb}
All values greater than or equal a. [a,) {x:xa}
All values greater than a. (a,) {x:x>a}
All values less than or equal to a. (,a] {x:xa}
All values less than a. (,a) {x:x<a}
All values. (,) {x:x}

Note that must always be unbounded (that is, have no inclusive bracket, but instead have an exclusive parentheses). This is because is not a number, and therefore cannot be in our set. is really just a symbol that makes things easier to write, like the intervals above.
Note: ( is also denoted by ], and ) by [, i.e., (a,b) is the same as ]a,b[, and [a,b) is [a,b[. This is source of funny misunderstandings.

Domain

The domain of the function is the interval from -1 to 1

The domain of a function is the set of all points over which it is defined. More simply, it represents the set of x-values which the function can accept as input. For instance, if


f(x)=1x2


then f(x) is only defined for values of x between 1 and 1, because the square root function is not defined (in real numbers) for negative values. Thus, the domain, in interval notation, is [1,1]. In other words,


f(x)is defined for x[1,1],or{x:1x1}.


The range of the function is the interval from 0 to 1

Range

The range of a function is the set of all values which it attains (i.e. the y-values). For instance, if:


f(x)=1x2,


then f(x) can only equal values in the interval from 0 to 1. Thus, the range of f is [0,1].

One-to-one Functions

A function f(x) is one-to-one (or less commonly injective) if, for every value of f, there is only one value of x that corresponds to that value of f. For instance, the function f(x)=1x2 is not one-to-one, because both x=1 and x=1 result in f(x)=0. However, the function f(x)=x+2 is one-to-one because for every possible value of f(x), there is exactly one corresponding value of x. Any function that looks like f(x)=x3+ax, where a[0,), is one-to-one. Note that if you have a one-to-one function and translates/dilates it, it remains one-to-one (Of course you can't multiply x or f by a zero factor).

If you know what the graph of a function looks like, it is easy to determine whether or not the function is one-to-one. If every horizontal line intersects the graph in at most one point, then the function is one-to-one. This is known as the Horizontal Line Test.

Inverse functions

Function f(x) has an inverse function if and only if f(x) is one-to-one. For f(x) and g(x) such that g(x) is the inverse function of f(x):

g(f(x))=f(g(x))=x .

For example, the inverse of f(x)=x+2 is g(x)=x2. The function f(x)=1x2 has no inverse.

Notation

The inverse function of f is denoted as f1(x). The inverse of a function f1(x) is defined as the function that follows this rule

f(f1(x))=f1(f(x))=x:

To determine f1(x) when given a function f, substitute f1(x) for x and substitute x for f(x). Then solve for f1(x), provided that it is also a function.

Example: Given f(x)=2x7, find f1(x).

Substitute f1(x) for x and substitute x for f(x)., then solve for f(x):

f(x)=2x7
x=2[f1(x)]7
x+7=2[f1(x)]
x+72=f1(x)

To check your work, confirm that f(f1(x))=x:

f(f1(x))=

f(x+72)=

2(x+72)7=(x+7)7=x

Graphing Functions

Graph of y=2x

It is sometimes difficult to understand the behavior of a function given only its definition; a visual representation or graph can be very helpful. A graph is a set of points in the Cartesian plane, where each point (x,y) indicates that f(x)=y. In other words, a graph uses the position of a point in one direction (the vertical-axis or y-axis) to indicate the value of f for a position of the point in the other direction (the horizontal-axis or x-axis).


Functions may be graphed by finding the value of f for various x and plotting the points (x, f(x)) in a Cartesian plane. Since functions that you will deal with are generally continuous (see below), the parts of the function between the points can be approximated by drawing a line or curve between the points. Extending the function beyond the set of points is also possible, but becomes increasingly inaccurate.

Plotting points like this is laborious. Fortunately, many functions' graphs fall into general patterns. For a simple case, consider functions of the form


f(x)=ax


The graph of f is a single line, passing through (0,0) and (1,a). Thus, after plotting the two points, a straightedge may be used to draw the graph as far as is needed.


Continuity

Most functions that you will deal with are not a random scattering of points. Rather, the graphs have one or more curves, which do not have sudden gaps in them, and may be drawn without lifting your pencil. Later, the principle of continuity will be defined formally using the concept of limits.


Algebraic manipulation

Purpose of review

This section is intended to review algebraic manipulation.

Rules of arithmetic and algebra

The following rules are always true (see: field theory).

  • Addition
    • Commutative Law: a+b=b+a.
    • Associative Law: (a+b)+c=a+(b+c).
    • Additive Identity: a+0=a.
    • Additive Inverse: a+(a)=0.
  • Subtraction
    • Definition: ab=a+(b).
  • Multiplication
    • Commutative law: a×b=b×a.
    • Associative law: (a×b)×c=a×(b×c).
    • Multiplicative Identity: a×1=a.
    • Multiplicative Inverse: a×1a=1,a0
    • Distributive law: a×(b+c)=a×b+a×c.
  • Division
    • Definition: ab=a×1b,b0.

The above laws are true for all a, b, and c, whether a, b, and c are numbers, variables, functions, or other expressions. For instance, although

(x+2)(x+3)x+3 = (((x+2)×(x+3))×(1x+3))
= ((x+2)×((x+3)×(1x+3)))
= ((x+2)×(1)),x3
= x+2,x3

is much longer than simply cancelling x+3 out in both the numerator and denominator, it is important to understand the longer method. Occasionally people do the following, for instance, which is incorrect:


2×(x+2)2=22×x+22=x+22.


The correct way is


2×(x+2)2=22×x+21=1×x+21=x+2,


where the number 2 cancels out in both the numerator and the denominator.

Template:Calculus:TOC

Template:Nav3

nl:Analyse/Functies