A 1/x function that intesects both the x and y axes at specific points, and whose shape can be changed.

I'm having trouble even naming the function I'm looking for. Here's a desmos screencap. Basically, I want a combination of function f(x) and h(x). Where I can control three things simultaneously: the x-intercept, the y-intercept, and the curve's shape r.


Solution 1:

One possibility would be

$$ f(x)=\frac{bd(x-a)}{a(x-d)} $$

This gives $y$ intercept $f(0)=b$ and $x$ intercept $f(a)=0$.

Then choosing $d<0$ controls the curvature.

enter image description here