Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

In short, I'm wondering if I can find a continuous non-piecewise function with these properties. I've found one that was close but not perfect. It's actually really useful to have something like this to scale it. Sorry about the lack of formatting (EDIT: Thank you)

$$\begin{aligned} f(0) &= 1\\ f(x) &> 0\\ f'(0) &> 1\\ f'(x) &> 0\\ f''(0) &= 0\\ \lim_{x\to\infty} f '(x) &= 1 \\ \lim_{x\to -\infty} f(x) &= 0 \end{aligned} $$ The second and fourth constraints were added afterwards, so keep that in mind while viewing comments/answers

Bonus points if you can find a function that has an elementary integral and that approaches y = x + 1

I've managed to get a function that displays all of the properties except the inflection at zero (and obviously the decrease in $f'(x)$), being hyperbolic (simply $\sqrt{1 + x^2 / 4}+ x / 2$).

The actual purpose isn't for mathematical purposes, it's for a program. In short I need to normalize a value so that it cannot drop below 0 but has no cap therein, and should approach additivity but with diminishing returns, rather than increasing that I would get with the hyperbolic one above. Thus, for most of the positive portion I need it to be concave down. If it's integrable I can do more things with it without breaking time-independence but most of the time it won't matter.

share|improve this question
    
By not piecewise, do you mean you want a function defined by a single formula? –  Harald Hanche-Olsen Apr 7 '13 at 21:12
    
Yeah, that and no H(x), |x| or what have you that are piecewise. I should not have to change anything to go between any two points in the curve. –  Null Apr 7 '13 at 21:30
    
@Gugg $f(x)=\frac{e^x}{e^x+1}$ satisfies the last 2 constraints. Edit: I read the question wrong;nevermind. It is $f'(x)=1$ as $x\rightarrow\infty$, not $f(x)$. –  Daryl Apr 7 '13 at 21:39
    
Something like $e^{\lambda x}\left(\sum\limits_{k=0}^da_kx^k\right)$ would meet all the requirements except the $4^{th}$. –  xavierm02 Apr 7 '13 at 21:52
    
"non-piecewise", Gugg –  Yoni Rozenshein Apr 7 '13 at 21:56
show 6 more comments

3 Answers 3

up vote 1 down vote accepted

Here is an example achieving everything except for $f'(0)>1.$ It has the drawback that the parameters $a,b,c$ it seems can only be found numerically (so not an "exact" formula), but the possible advantage that perhaps by tweaking the choices of $a,b,c$ one might get $f'(0)>1.$ $$f(x)=\ln(1+a e^x)+b(\arctan(x+c)+\pi/2).$$ Note that $f,f'$ here have the required properties at $\pm \infty$, and that $f(x)>0,f'(x)>0$ provided $a,b,c$ wind up positive.

The equations $f(0)=1$ and $f''(0)=0$ can each be solved linearly for $b$, giving respectively $$b_1=\frac{1-\ln(a+1)}{\arctan(c)+\pi/2},\\ b_2=\frac{a(c^2+1)^2}{2c(a+1)^2}.$$ Since these have to be equal I experimented with the values and found that on choosing $a=.1$ that $b_1=b_2$ led to (one choice of two values) an approximate value $c \approx 0.076089...\ .$ This may then be put into either formula for $b$ to obtain $b \approx .549383...\ .$ The value of $f'(0)$ came out about $0.637$, leading me to suspect a better choice of $a,b,c$ might make $f'(0)>1$ possible to achieve.

I don't know how to include graphs, but as expected the graph of $f$ with these choices of $a,b,c$ is very flat (contact of order two with tangent line) at $x=0$. If an example could be achieved with $f'(0)>1$ it would also have this flatness, and would have to change concavity somewhere after crossing $x=0$ so its derivative would tend to $1$ as $x \to \infty.$

share|improve this answer
add comment

After playing around with various compositions and games, here's an analytic one:

$$f(x) = \frac 2 \pi \frac {e^x} {e^x + 1} x \arctan x + e^{2x - (2 + \frac 1 \pi)x^2}$$

The first part gives you the limits at $\pm \infty$ and the second part makes adjustments at $0$.

graph

So what was this good for anyway? :)

share|improve this answer
    
Well, I never thought about a constraint; I need the derivative to remain positive where x > 0. Sorry to ruin everything. I really might be able to get this myself though. Really sorry, still incredibly impressive. I'll explain what it was for in a minute –  Null Apr 7 '13 at 22:16
2  
You are full of constraints today :) –  Yoni Rozenshein Apr 7 '13 at 22:18
add comment

I've (I'm op btw) managed to get something very close (f''(0) = 1/4) which is probably good enough for most of what I care about if nobody can get a better function (and it has the benefit of being

$$f(x) = \frac {2 \arctan {\frac {\pi x} 2}} \pi + \sqrt {1 + \frac {x^2} 4} + x / 2 + 1$$

This isn't optimal but it could help someone else if they want to get a better one.

share|improve this answer
    
This one has $f(0)=2.$ Are you abandoning $f(0)=1$? –  coffeemath Apr 8 '13 at 13:05
    
That must have been a mistake on my part, I could probably fix it. –  Null Apr 13 '13 at 0:12
    
Does it also have (when fixed) the requirement $f''(0)=0$? Just adding the arctan part doesn't help that as is, since it has inflection at $x=0$. I tried shifting the arctan away from zero to have a chance for that to contribute something negative to $f''(0).$ –  coffeemath Apr 13 '13 at 1:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.