Functions

Soon after you learn how to count you may find yourself playing with numbers to create trends or patterns. As an example, you might play a game called “Count by twos” where you say 2, 4, 6, 8…

We can match the numbers of the game with the counting numbers. For the following (x,y) we have x as the counting number and y as the “count by twos” number: (1,2), (2,4), (3,6), (4,8)

y = 2x

We have another way to write that:

f(x) = 2x

For the above notation the letter f is the symbol for the function. The parenthesis holds the argument. The argument is x.

The equation for the function is shown on the right side of the equals sign. In most discussions we just say “function” when we are referring to the equation of the function.

If a function has only one independent variable, it can be any letter; it usually xor t. For a function of x, the function will be a sum of terms with each term being a scalar and x to some power. An example is shown below where the set {a,b,c} is a set of numbers and we are using them as scalars:

f(x) = ax^2 + bx + c

We can do something now that normally isn’t done until you reach Tensor Calculus.

If we need dozens or hundreds of variables then the alphabet won’t supply enough for our need. We can resort to using a single letter and putting a numerical subscript on it to serve as an identifier. We will do so below in a way that seems confusing at first (we didn’t count 1,2,3) but it will make sense a few paragraphs later.

The set \{ a,b,c \} becomes \{ a_2,a_1,a_0 \}. Our function becomes the following:

f(x) = a_2x^2 + a_1x + a_0c

We wish to remind you of three facts that are a part of Elementary Algebra:

x = x^1

1 = x^0

c = c(1)

We can use these to modify the way we write our function:

f(x) = a_2x^2 + a_1x^1 + a_0x^0

We leave this discussion of functions after noticing that all three terms of the function share something in common, they fit the template…

f(x) = a_nx^n

.,..where n is 0, 1 or 2.