Home : Resources : Functions |
Helps to know: |
Sections: |
Intro
I assume you know what a function is: y = f(x) is what is traditional. A concept as "simple" as this contains many, many intricacies if we look for them. Definition Mathematical: A function maps a number to another number. y = f(x) is a function that maps a number x to another number y. The function is usually a rule, and can be represented by an equation. "y = 3 +x" maps (associates) any number x to another number y. If x is 4, then it is mapped to y = 7. That's easy enough. Intuition: There are two analogies I use when thinking about functions. Analogy 1: Imagine a sidewalk stretching out for infinity, with each step labeled. There is a display panel that shows a number, depending on the step you are on. The value of the function is the number currently on the display. Analogy 2: Instead of a display, you are on a hill. Your location is the distance (horizontally) from a starting point. The value of the function is the height of the hill. These intuitive explanations of functions will help us understand them. Graphs When we graph a function we put the independent variable (usually x) on the horizontal axis. The equation y = f(x) means "Y is a function of x" or "Y depends on x". Therefore, y is the dependent variable, and goes on the vertical axis. The hill analogy is useful when drawing the graph. Draw each horizontal position (step), and then draw the corresponding height. For the sidewalk/display example, walk down the sidewalk and plot out the value of the display. Derivatives: A derivative is the rate of change of a function. You probably know slope as "rise over run", or the "change in y divided by the change in x". Let's think more about these definitions. In the first analogy, the derivative is how much your number will change if you take a step forward. This is the change in y (function) divided by change in x (position). In the second analogy, the derivative is how steep the hill is -- how much your altitude will change if you take a step forward. Now, notice that the derivative is itself a function – for every point on the hill, it gives you tells you the steepness. Think of the derivative as guiding the function. If the derivative Observations: 1. The derivative is an accurate short-term prediction. At any point, it tells you whether your function is going up or down (for the short term). You can multiply the derivative by how far you are going to predicit what the new value will be.Intuition: New function value = current value + (how much function changes as you go forward * how far forward you go) OR New function value = current value + derivative (at current point) * how far forward you go Math: (linear approxomation): f(x + a) = f(x)+ a* f'(x) 2. The sign of the derivative tells you how to improve the
value of your function. If the derivative is positive, it
means your function will increase if you move forward. So
walketh forward! 3. The size (magnitude) of the derivative tells you how much
you can improve your function. If your derivative is 1, if you increase
x by one you increase y by one. The function says: "Sure,
go ahead, you'll do a little better." Functions don't usually talk, but you get the idea. Now, the question arises: if the derivative controls the function, what controls the derivative? Good question! Let's think about this. A function is a mapping of one number to another. So the original function is maps the x value to the number displayed on the screen. The derivative maps the x value to how much the function will change as you go forward. So the derivative doesn't know the value of the function -- it only knows whether the function will go up or down, and by how much. The second derivative is the derivative of the derivative. It controls whether the first derivative is going up or down. What does this mean? Well, the first derivative controls the rate of increase /decrease of the first function. The second derivative controls whether this rate will increase, decrease, or stay the same. The second derivative controls the first derivative, and the first derivative controls the function. Let's look at a typical conversation. Function (equals 0): Hey, how was your weekend? Function (equals 24 ): I have 3 toes.
|
Send
questions, comments, corrections, and suggestions to [email protected].
Last modified: 12/2/01 |