guards said:oops
y=1/2x2+2x+2
Looks simple enough.
First make n equation with just the Vertical asymptotes.
Forget the horizontal ones.
X cannot be smaller/equal to 1 or bigger than/equal to 5
So,
Y= 1/((X-1)(X-5))
Y= 1/(x2-6x+5)
NOW, put in the horizontal asymptotes.
We know Y cannot be greater than/equal to 2.
So, 2(x2-6x+5)=1
2x2-12x+10=1
So,
2x2-12x+9=0
Roots are:
12+-(root of)(144-4(2)(9))/ 2(2)
= 12+-(root of)(72)/4
= 12+-(root of 72)/4
= 12+-2exp3*3exp2/4
=12+-6(root of(2))/4
=1/2 * 6+-3root(2)
So, x=3+3root(2) or X=3-3root(2)
So, X=7.2 or X=-1.2
Since the roots are less than X=1 and greater than X=5,
the equation remains the same as before.
Y=1/(X-5)(X-1)
or
Y=1/(x2-6x+5)
Godspeed
You could use Newton-Ralphson for faster root approximation
but not really necessary.