Developing a General Formula for a family of Curve Shapes

jmosk
Messages
3
Reaction score
0
I have a process that requires an operational profile that follows one of the curves in the diagram which follows. I wish to program into the device a general equation that will give me a family of curves of this general shape. The goal is to adjust the parameters of the equation so that I can generate the uppermost curve that rises quickly and at other times generate a curve like the lowest one that is almost approaching a straight line. These curves are not based on pre-existing data so I can't use a curve fitting program to generate an equation to generate additional points on the curve. I need to create a general equation that can then be used to generate any intermediate value along the curve.

In the diagram, x runs from 0 to 100 and y runs from 0 to 100. These represent percentages. So, looking at the diagram, for the uppermost curve at x=25%, y=80% while the lowermost curve is showing that at x=25%, y=50%. Since these curves represent percentages, the y value can never exceed 100. The points (0,0) and (100,100) are fixed points. You can't use a 3 point curve fit where the (25,80) point or (25,50) is the intermediate point, since such a polynomial will generate a parabola whose height exceeds 100. This curve looks more like part of a hyperbola or an arctan function of some sort.

Can anyone give me an idea of how I might find such an equation.
 

Attachments

  • CurvesProfile.jpg
    CurvesProfile.jpg
    28.3 KB · Views: 490
Mathematics news on Phys.org
What about

100\left(1-\left(-\frac{(x-100)}{100}\right)^p\right)^{1/p}

where p\geq 1
 
AlephZero said:
You could use a bezier curve.

Thank you. I was considering a bezier curve and was playing around just a few hours before your post with an interactive demo on WolframAlpha to plot different curves. I didn't quite get the series of shapes I am looking for but perhaps with more experimentation I will. I haven't looked into how the implement code to generate points along the curve, but I know its already been implemented in several Abode products.
 
micromass said:
What about

100\left(1-\left(-\frac{(x-100)}{100}\right)^p\right)^{1/p}

where p\geq 1

Thank you for this suggestion. I would be interested in understanding how you derived that the proposed equation would create the type of shape. I attached a few plots generated from the formula you posted. This is a great start.

For the general curve shape, I need to control the point along the curve where it begins the bend toward y=100. In the attached sample which utilizes the formula posted, for p=10, that bend is greatest at around x=5,while for p=5 it starts around x=10. I need the user of the device to have the option to set parameters to be able to move where this bend starts so that the vertical step from x=0 to x=1 is not so steep. I don't want a 1% change in x to cause an 80% change in y. You can see the difference in the shape of this set of curves versus the sample set that I posted in the original question.

I also posted a 3D plot of the family of curves generated from p=1 to 10. You can see how this equation is biased toward a rapid rise for small increments of x.
 

Attachments

  • SampleCurves.jpg
    SampleCurves.jpg
    14 KB · Views: 473
  • FamilyOfCurvesFromSuggestedEquation.jpg
    FamilyOfCurvesFromSuggestedEquation.jpg
    16.6 KB · Views: 498
Last edited:
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top