Results 1 to 3 of 3

Thread: Functions and Derivatives

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    241

    Functions and Derivatives

    I've been reading up on functions and I'm not sure I quite understand it all. From what I understand if you have a function f(x)=x^2 then if you input x as 2 the output, y, or codomain will be 4. The domain is the input. Now in order to graph this function you simply input a bunc h of numbers such as 2, 4, 6, 8, and 10 and the output or range will be 4, 16, 36, 64, and 100. If we graph these numbers we can find the derivative or slope of the function. Is all of this correct?

  2. #2
    Fanatic Member twanvl's Avatar
    Join Date
    Dec 2001
    Posts
    771
    Most of what you say is correct, except that the derivative is not determined by measuring the slope of the graph.

    A function takes one or more input values each within some domain, and returns an output value in another domain, called the range. For f(x)=x^2 both the domain of x, and the range of f are the real number (all numbers from negative to positive infinity)

    -------------------------------------------
    Note: the following is a small introduction to calculus.

    To measure/calculate the slope, you take two points, let's call them (a,f(a)) and (b,f(b)), their distance in one direction is Δx=a-b, and in the other Δy=f(a)-f(b). The slope between these two points on the graph is Δy/Δx.

    The derivative is the slope in a single point in the grave, i.e. Δx=0. If you were to calculate this, it would lead to a devision by zero, therefore you need a trick.

    We denote the slope of the function f at a point x as f'(x), and we use h to denote a very small value (serving the function of Δx above)
    f'(x)= ( f(x) - f(x+h) ) / (x-(x+h))
    = (x^2 - (x+h)^2)/h
    = (x^2 - x^2 + 2hx - h^2)/h
    = 2x - h
    Now, you can make h=0 and get
    f'(x)=2x

    You can use f'(x) to get the slope of f(x) in any point x. f'(x) is called the derivative of f(x) another common notation is:
    Code:
    dy
    -- f(x)
    dx
    That notation is very similair to the Δy/Δx notation used for slopes between two points.

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    There's lots of notations for it, but thats not one of them, either drop f(x) or y out of it (they're the same thing)
    other notations are:
    f'(x)
    y'
    Df(x)
    Dy (sometimes with an index x after D)

    The derivative (slope) is defined as the limit of the function twanvl demonstrated as follows: f'(x)= lim h->0 (f(x+h)-f(x) ) / h. (btw the other way around there in the numerator)
    The limit doesn't always exist, the function has to be contigous (without jumps) at that point and its left and right limits must exist and coincide. look at the notation here: http://mathworld.wolfram.com/Limit.html
    usually when you calculate derivates you never use the definition but use some basic rules derived from it, but its a good to know the idea behind it anyway.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width