Generating monotonic decreasing functions

  • Context: Undergrad 
  • Thread starter Thread starter ephedyn
  • Start date Start date
  • Tags Tags
    decreasing Functions
Click For Summary

Discussion Overview

The discussion revolves around generating monotonic decreasing functions that pass through specific points, particularly focusing on functions that meet the criteria f(0) = a and f(1) = 1. Participants explore various mathematical forms and methods for constructing such functions, primarily through Cartesian equations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant requests a list or method for generating monotonic decreasing functions that pass through specific points, providing initial examples.
  • Another participant suggests a family of functions involving exponential decay, noting the flexibility of the parameter n.
  • A different function involving cosine is proposed, which also meets the specified criteria.
  • Further contributions include logarithmic functions and methods for scaling and shifting exponential functions to meet the constraints.
  • Participants discuss their intuitive approaches to creating these functions, with one detailing a systematic method involving shifting and scaling exponential functions.
  • One participant expresses gratitude for the shared methods, indicating successful application in their own code.

Areas of Agreement / Disagreement

Participants generally agree on the existence of various methods to generate the desired functions, but there is no consensus on a single best approach or method. Multiple competing views and techniques are presented without resolution.

Contextual Notes

Some methods rely on specific assumptions about the functions being used, such as the nature of the exponential decay or the properties of logarithmic functions. There is also uncertainty regarding the applicability of certain transformations across different function types.

Who May Find This Useful

This discussion may be useful for individuals interested in mathematical modeling, particularly in fluid dynamics, or those looking for methods to construct specific types of functions in mathematical analysis.

ephedyn
Messages
169
Reaction score
1
OK, this is an odd request, but is there some way or existing list of monotonic decreasing functions? The limitations I have are:

- f is monotonic and decreasing.
- f(0) = a, a is a real constant; f(1) = 1 ( or simply, passes through (0,a) and (1,1) )
- Cartesian equations, most preferably.

I thought it would be useful if there was such a thing (so there probably is), even if it's a software, like those curve fitting ones which have a predefined set of functions, just that here I'm (edit: interesting -> interested) in threading through the exact points. Reason being, I've written a code that does wonders with any input function for problems in fluid dynamics, but I'm having trouble thinking of inputs to test it out with when I have these limitations. Here's two fairly easy ones which I have thought of so far:

y = (1-a)(x-1) + 1
y = (a-1)(-10x^3 + 15x^4 - 6x^5) + a

Thanks in advance!
 
Last edited:
Mathematics news on Phys.org
Here's a family of simple ones...


[1/(e-1)](a-1)(exp(-x^n+1) - 1) + 1


Plugging in x = 1, we have that exp(-x^n+1) = exp(-1+1) = exp(0) = 1, so the first term drops out and leaves only the trailing +1.

Plugging in x = 0, we have [1/(e-1)](a-1)(e-1)+1, and we are left with (a-1) + 1 = a.

n can be any number... in fact, the only restriction is that it be positive. Does not even have to be an integer, even though that's how I envisioned it when I came up with it.

Is that what you're looking for?
 
Also...

a*cos[ (pi/2) x/(x+1) (4/pi)arccos(1/a)]
 
csprof2000 said:
[1/(e-1)](a-1)(exp(-x^n+1) - 1) + 1

Also...

a*cos[ (pi/2) x/(x+1) (4/pi)arccos(1/a)]

Yes! Those meet the requirements that I'm looking for! Thanks aplenty!

I have to ask, is there a general way that you come up with them... or is purely based on your intuition (*cough* both of mine are polynomial functions ><;)?
 
Maybe...

[(1-a)/ln(1/2)]ln(1/(x+1)) + a
 
Well, I do have a method.

Basically, I think of the function I want to make work. So for my first example, I thought "exponential function". So we have

exp(-x)

Next, I said, let it always equal 1 at x = 1. So I shift one to the right...

exp(-x + 1)

Now, I know I need to scale it so that f(0) = a. So, to do this, I need to be able to multiply the whole thing, stretching it out. But to do this correctly, I must subtract by one so the point (1, 1) is "anchored" at (1, 0)... otherwise, I'll lose it. Of course, I'll have to add one back to the end result to have it go through (1, 1) again. So I have...

c ( exp(-x + 1) - 1 ) + 1

At this point, c can be found by plugging in x = 0 and demanding that the whole thing equals a. That leads to me final answer. I also noticed that there could be any power on the x without affecting anything (though this is luck, and I'm not even 100% sure it works for any n).

The others worked the same. You've just got to start with a function - any function - and figure out how to make it do what you want anywhere you have constraints.
 
Oh crap, I realized that I must have closed my browser along with my reply and plain forgot to thank you for sharing your method. My code worked flawlessly with your examples, and I've gotten a hang of the method.

This part was really useful; thanks a lot!

Now, I know I need to scale it so that f(0) = a. So, to do this, I need to be able to multiply the whole thing, stretching it out. But to do this correctly, I must subtract by one so the point (1, 1) is "anchored" at (1, 0)... otherwise, I'll lose it. Of course, I'll have to add one back to the end result to have it go through (1, 1) again. So I have...

c ( exp(-x + 1) - 1 ) + 1

At this point, c can be found by plugging in x = 0 and demanding that the whole thing equals a.

A happy new year to you.
 

Similar threads

  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K