Results 1 to 5 of 5

Math Help - Function to transition between 2 points (gradually changing slope)

  1. #1
    Newbie
    Joined
    Mar 2013
    From
    Canada
    Posts
    3

    Question Function to transition between 2 points (gradually changing slope)

    Hi, I'm new here and I'm not sure if this is the right section or not if it is in the wrong section please let me know and I'll post it there instead.


    I have been racking my brain with this for a couple days and am embarrassed that I can't figure it out (at one point I considered myself good at this kind of thing)... Just so you know this is NOT Homework, but a personal project of mine that I have been working on. The field is economics and expenditure models.


    I am looking for a f(x) that can be determined given a set of knowns at two different points:


    @ x1, f(x1) and f '(x1) are know and
    @ x2, f(x2) and f '(x2) are also known


    relationship between the two points -- x2>x1, f(x2)>f(x1), f '(x2)<f '(x1)


    My though was to use a function in the form of f(x) = A logb(x) - C, but I could not get it to work.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor

    Joined
    Aug 2006
    Posts
    18,386
    Thanks
    1476
    Awards
    1

    Re: Function to transition between 2 points (gradually changing slope)

    Quote Originally Posted by Skrymir View Post
    I have been racking my brain with this for a couple days and am embarrassed that I can't figure it out (at one point I considered myself good at this kind of thing)... Just so you know this is NOT Homework, but a personal project of mine that I have been working on. The field is economics and expenditure models.
    I am looking for a f(x) that can be determined given a set of knowns at two different points:
    @ x1, f(x1) and f '(x1) are know and
    @ x2, f(x2) and f '(x2) are also known
    relationship between the two points -- x2>x1, f(x2)>f(x1), f '(x2)<f '(x1)
    If I follow what you say, then there is no way to do that.
    The function between x_1~\&~x_2 could be very well behaved (even linear) of it could behave very wildly.

    Now if you were to know something about the f'~\&~f'' a points between those two points then maybe.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Mar 2013
    From
    Canada
    Posts
    3

    Re: Function to transition between 2 points (gradually changing slope)

    I am trying to "smooth" out the corners on an expenditure model relating to family spending, and convert 3 flat percentages into a series of decaying rates with no abrupt change in slope.

    I have three sections of the model where spending is assumed to be linear, but at different rates (or slopes) relating to income level (Low Income rate>Middle Income Rate>High Income rate). The model does not start at zero but at a point >0.

    I hope that clarifies what I am trying to do.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Newbie
    Joined
    Mar 2013
    From
    Canada
    Posts
    3

    Re: Function to transition between 2 points (gradually changing slope)

    I should add that a log function is appropriate as the over model trends that way. My first attempt was trying to set up a single equation to fit the entire system but I wasn't able to do that either.

    So:
    f '(x) ~ 1/(x*ln(b))
    f ''(x) ~ -1/(x2*ln(b))
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Super Member
    Joined
    Mar 2010
    Posts
    906
    Thanks
    204

    Re: Function to transition between 2 points (gradually changing slope)

    First, you should realize that A\log_b(x)=(A\log_b(e))\ln(x), so you really have only two independent parameters.

    So you're given values for x_1, x_2, f(x_1), f(x_2), f'(x_1), and f'(x_2) and you would like to fit a function of the form f(x)=A\ln(x)+C to them. It turns out that you really only need one set x_1, f(x_1), f'(x_1) to determine A and C.

    f'(x)=\frac{A}{x} so A=x_1f'(x_1)

    f(x_1)=A\ln(x_1)+C, so C=f(x_1)-A\ln(x_1)

    So hopefully when you use those three to determine A and C, the other three also work. If not, you'll need a new model.

    - Hollywood
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 6
    Last Post: September 11th 2011, 04:53 PM
  2. Replies: 1
    Last Post: April 20th 2010, 07:36 PM
  3. Replies: 1
    Last Post: April 20th 2010, 07:33 PM
  4. slope between points
    Posted in the Pre-Calculus Forum
    Replies: 3
    Last Post: October 29th 2008, 03:07 PM
  5. slope from points
    Posted in the Math Topics Forum
    Replies: 1
    Last Post: July 28th 2005, 10:16 PM

Search Tags


/mathhelpforum @mathhelpforum