0
$\begingroup$

I'm looking for a function that has two asymptotes parallel to the x-axis. Preferably it should also only cross the x-axis at (0,0) and be built without using any trigonometric functions. Mind you, if that's not possible then so be it. However, that is my preference.

The purpose of this is that when the function is placed into the floor function and (manipulated a little) it will generate a function that is 0 at 0, 1 whenever the input is positive and -1 when the input is negative. Such a curve is the best bet I can come up with towards guessing a means to build such a construct.

I think I have seen the function somewhere at some point or a variation. I just cannot remember what it was.

Thank you

-The Great Duck

(Also, while I suppose it is probably obvious (can't place it in floor), no piece wise please)

$\endgroup$

closed as off-topic by The Great Duck, user91500, Claude Leibovici, Behrouz Maleki, Adam Hughes Dec 16 '16 at 15:34

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question is missing context or other details: Please improve the question by providing additional context, which ideally includes your thoughts on the problem and any attempts you have made to solve it. This information helps others identify where you have difficulties and helps them write answers appropriate to your experience level." – The Great Duck, user91500, Claude Leibovici, Behrouz Maleki, Adam Hughes
If this question can be reworded to fit the rules in the help center, please edit the question.

  • $\begingroup$ Hint: Have you seen the graph of the arctangent? $\endgroup$ – GEdgar Feb 25 '16 at 1:00
  • $\begingroup$ Um.. if you are talking about the integral or derivative of arctan i understand. However, I am specifically avoiding trig functions for this subject. $\endgroup$ – The Great Duck Feb 25 '16 at 1:01
  • 1
    $\begingroup$ The thing that makes it hard is that it cannot be a rational function. $\endgroup$ – GEdgar Feb 25 '16 at 1:02
  • $\begingroup$ Actually it is. See the answer below. It worked perfectly. $\endgroup$ – The Great Duck Feb 25 '16 at 1:15
  • $\begingroup$ No, I was referring to the square root answer, but thank you. Alternate formulas will give me room to play around with it. $\endgroup$ – The Great Duck Feb 25 '16 at 1:32
2
$\begingroup$

You can be creative with this and make up your own funtions. For example consider,

$$ f(x) = \left\{ \begin{array}{ll} x & \quad -1\leq x \leq 1 \\ 1 & \quad x \geq 1\\ -1 & \quad x \leq 1 \end{array} \right. $$

$\endgroup$
  • $\begingroup$ @TheGreatDuck: This is a function will all the prescribed notions you mentioned in your question. It's even more simple to understand. Its the identity up to $[\pm1,\pm1]$ and trivially satisfies the definition for horizontal asymptote. $\endgroup$ – Fundamental Feb 25 '16 at 1:16
  • $\begingroup$ @TheGreatDuck: I don't want to argue. You should really try to give constructive responses and not be rude to users trying to help you. Most of us are ph.d student in mathematics, postdocs or professors. It is not my intention to lead you astray. I think your understand of functions (maps) is a bit loose. $\endgroup$ – Fundamental Feb 25 '16 at 1:35
  • $\begingroup$ I'm sorry if it came across rude. I wasn't attempting to mean it that way. It's just that to me that feels like the answer was an attempt to be condescending or some kind of attempt at a smart alek answer. I thought it was apparent by the way I phrased it that I was wanting a function with a single equation, not several. It wouldn't be very intuitive to take a function with a single equation and place a piece wise equation into it. That would result in everything after that being piece wise, which is highly undesirable. Hence, why I thought the OP was trying to be coy about their answer. $\endgroup$ – The Great Duck Feb 25 '16 at 1:46
  • 1
    $\begingroup$ @TheGreatDuck You do realize that every function can be written as a piecewise function, right? That a piecewise function is not somehow "less" of a function than any other one? To call the answer stupid or condescending or smart aleck is ridiculous, and you should carefully reconsider your engagement here. $\endgroup$ – user296602 Feb 25 '16 at 1:50
  • $\begingroup$ "That a piecewise function is not somehow "less" of a function than any other one?" No I never said that. I said that doing a composition and work with a piece wise function would be highly un-intuitive. I.E. the piece wise function would then need to be expressed with a single equality or I'm just working in circles essentially. I'm attempting to represent a function with floor which I described. If I was wanting piece wise I would just say {x = 1 for x>=0, x=-1 for x<0} and be done. I never meant to insult or anger. $\endgroup$ – The Great Duck Feb 25 '16 at 2:04
4
$\begingroup$

$$f(x)=\frac{x}{\sqrt{x^2+1}}$$

It should be apparent that this works because leading coefficient test provides asymptotes for $y=\pm 1$, and plugging in $0$ for $x$ yields $0$.


Edit: I found another one if you prefer it:

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

$\endgroup$
  • 1
    $\begingroup$ thank you. this will be a great help. $\endgroup$ – The Great Duck Feb 25 '16 at 1:02
  • $\begingroup$ @TheGreatDuck My pleasure. $\endgroup$ – Lanier Freeman Feb 25 '16 at 1:05

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