Can you determine this function?

  • Context: Undergrad 
  • Thread starter Thread starter Fjolvar
  • Start date Start date
  • Tags Tags
    Function
Click For Summary

Discussion Overview

The discussion revolves around finding a mathematical function that can accurately fit a specific curve depicted in an attached figure. Participants explore various types of functions, including polynomial and exponential forms, to meet specific criteria related to the curve's shape, maximum point, and endpoints.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Technical explanation

Main Points Raised

  • One participant expresses difficulty in determining a function to fit a red curve and mentions trying quadratic functions, sine waves, and double exponentials without success.
  • A proposed function is presented in the form of a four-parameter fit, which includes parameters for adjusting the y-intercept, maximum point, and the length of the curve.
  • Another participant suggests that the proposed four-parameter fit can be explained in terms of its components, indicating how parameters affect the function's behavior at specific points.
  • There is a suggestion to consider an even polynomial fit, such as quartic or sixth-order, noting that additional data points may be necessary for proper constraint.
  • A later contribution introduces an alternative functional form that incorporates an exponential component, detailing how the parameter 'c' influences the location of the maximum point and ensures the function has no minima between specified bounds.

Areas of Agreement / Disagreement

Participants present multiple competing views on the appropriate functional forms to use, and the discussion remains unresolved regarding which function best fits the described curve.

Contextual Notes

Participants express varying levels of familiarity with calculus, which may influence their understanding and application of the proposed functions. The discussion includes assumptions about the behavior of the functions based on the parameters but does not resolve these assumptions.

Fjolvar
Messages
156
Reaction score
0
Help please - I can't determine this function.

Okay I will try to make this as straightforward and clear as possible. My calculus background is rusty because it's been awhile, so this may seem trivial.

I am trying to find a function that can best fit the shape of the red curve shown in the attached figure. I need to be able to choose the y-intercept and increase/decrease the maximum point value marked as "1" on both the y and x-axis location. I also need to be able to increase/decrease the length/x-value of the end portion of the curve marked as "2."

I have so far tried playing with quadratic functions, a sine wave (from 0 to π), and a double exponential. No luck so far. I would greatly appreciate any advice on this seemingly simple problem.

Thank you in advance!
 

Attachments

  • Function.png
    Function.png
    1.2 KB · Views: 464
Last edited:
Physics news on Phys.org
Fjolvar said:
Okay I will try to make this as straightforward and clear as possible. My calculus background is rusty because it's been awhile, so this may seem trivial.

I am trying to find a function that can best fit the shape of the red curve shown in the attached figure. I need to be able to choose the y-intercept and increase/decrease the maximum point value marked as "1" on both the y and x-axis location. I also need to be able to increase/decrease the length/x-value of the end portion of the curve marked as "2."

I have so far tried playing with quadratic functions, a sine wave (from 0 to π), and a double exponential. No luck so far. I would greatly appreciate any advice on this seemingly simple problem.

Thank you in advance!

Maybe this 4 parameter fit will work:

[tex]y_0+a\frac{x}{L}\left(1-\frac{x}{L}\right)\left(1+c\frac{x}{L}\right)[/tex]
 
Chestermiller said:
Maybe this 4 parameter fit will work:

[tex]y_0+a\frac{x}{L}\left(1-\frac{x}{L}\right)\left(1+c\frac{x}{L}\right)[/tex]

Hmm I've been playing with this equation, but not having too much luck. Could you explain it? :)
 
Fjolvar said:
Hmm I've been playing with this equation, but not having too much luck. Could you explain it? :)

The first term is the value at x = 0. The parameter x=L is what you call point 2. Note that the function values at the x = 0 and x = L are both the same, as shown on your figure. The parameter a adjusts the height of the peak (along with the parameter c), and the parameter c moves the location of the peak around between x = 0 and x = L.
 
Maybe an even polynomial fit? Quartic or order 6? Course you may need a few more points to constrain it...
 
Chestermiller said:
Maybe this 4 parameter fit will work:

[tex]y_0+a\frac{x}{L}\left(1-\frac{x}{L}\right)\left(1+c\frac{x}{L}\right)[/tex]

OK. I figured out an even better functional form than this previous one to try that I think you'll like much better:


[tex]y_0+a\frac{x}{L}\left(1-\frac{x}{L}\right)e^{c(\frac{x}{L})}[/tex]

If c = 0, the maximum will be at x = L/2. If c < 0, the maximum will be at x < L/2, and if c > 0, the maximum will be at x > L/2. This functional form will guarantee one maximum and no minima (or negative values) between x = 0 and x = L.

Chet
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 26 ·
Replies
26
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 17 ·
Replies
17
Views
2K