# Thread: critical value

1. ## critical value

Hello,

I try to define a function $f :[a,a+1]-> [q,p]$, with $a \in \mathbb{Z}, q,p \in \mathbb{Q}$, s.t. f is smooth and has a critical value in $q$ and $p$.

Can you please help me? I try it with a lot functions, like this:

If we first assume that q< p:

$
f(t)=q+\frac{1}{exp(\frac{1}{(t-a)}-1)}*(p-q)$
for a+1>t>a and f(t)=q for t=a

but it doesn't work.

Ok this function is smooth and has a critical value at q. But not in p.