Results 1 to 6 of 6

Thread: [Solved] how to find the equation of a curve, given: 2 gradients & 1 x,y coordinate

  1. #1

    Thread Starter
    New Member viknord's Avatar
    Join Date
    Dec 2007
    Posts
    3

    Resolved [Solved] how to find the equation of a curve, given: 2 gradients & 1 x,y coordinate

    Given:
    when x=c, gradient1 = -2
    when x=b, gradient2 = 0 and y=0
    x=[0..2]

    How would I find the equation for a concave curve?

    (note: I have pre-calc experience, but only cursory calculus knowledge. Any help would be greatly appreciated.)
    Last edited by viknord; Dec 19th, 2007 at 10:05 PM. Reason: clarified title

  2. #2
    Fanatic Member VBAhack's Avatar
    Join Date
    Dec 2004
    Location
    Sector 000
    Posts
    617

    Re: how to find the equation of a curve, given: 2 gradients & 1 x,y coordinate

    Welcome to the forums!

    There are probably infinitely many functions that could satisify the 3 conditions. However, if you want to limit yourself to the lowest degree polynomial, a quadratic should do:

    y = ax2 + bx + c
    y' = 2ax + b

    where a, b, c are unknown. The 2nd equation is the gradient (1st derivative). You need 3 equations, which can be written to satisfy the constraints:

    y1 = ax12 + bx1 + c
    y2' = 2ax2 + b
    y3' = 2ax3 + b

    This is a set of 3 simultaneous linear equations that can be solved for a, b, c by Gauss elimination. Actually the 2nd two equations only involve a & b and can be easily solved by substitution. Once a & b are known, c can be solved in the 1st equation.

  3. #3

    Thread Starter
    New Member viknord's Avatar
    Join Date
    Dec 2007
    Posts
    3

    Re: how to find the equation of a curve, given: 2 gradients & 1 x,y coordinate

    Thanks for the help VBAhack. I was able to figure it out from there.

    a = 1
    b = -4
    c = 4

    y = x^2 - 4x + 4

    How did you determine the equation/curve would be a quadratic? I was trying all kinds of formulas (randomly) such as radioactive decay, but I wasn't sure how to tie-in the gradients (derivatives).

    Thanks again for replying. Now I can move on to figuring the area below the curve and then the volume as the curve is rotated 360 degrees.

  4. #4
    Fanatic Member VBAhack's Avatar
    Join Date
    Dec 2004
    Location
    Sector 000
    Posts
    617

    Re: how to find the equation of a curve, given: 2 gradients & 1 x,y coordinate

    Quote Originally Posted by viknord
    How did you determine the equation/curve would be a quadratic?
    Educated guess. Polynomials are often a good place to start - they are simple. Also, since you had 3 pieces of information, a function with 3 parameters is the obvious thing to try first - thus, a polynomial with 3 parameters.

  5. #5

    Thread Starter
    New Member viknord's Avatar
    Join Date
    Dec 2007
    Posts
    3

    Re: [Solved] how to find the equation of a curve, given: 2 gradients & 1 x,y coordinate

    Btw, would you recommend any good Calculus books? Self/home-study type books. I've been reading "Calculus for Cats" by Amdahl and Loats (which helps conceptually) and "Calculus: An Intuitive and Physical Approach" by Kline (just started this one).

    Thanks again.

  6. #6
    Fanatic Member VBAhack's Avatar
    Join Date
    Dec 2004
    Location
    Sector 000
    Posts
    617

    Re: [Solved] how to find the equation of a curve, given: 2 gradients & 1 x,y coordinate

    Quote Originally Posted by viknord
    would you recommend any good Calculus books?
    Nope, but you might try here:

    http://www.physicsforums.com/forumdisplay.php?f=21

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