I would like to calculate the vertical and diagonal asymptote f (x) = (x ^ 2 + x + 3) / (x-1). Will somebody help?
The vertical asymptote can be calculated with the definition of limit:
Reduce[ForAll[n,
Exists[\[Delta], \[Delta] > 0,
ForAll[x, 0 < Abs[x - x0] < \[Delta],
Abs[(x^2 + x + 3)/(x - 1)] > n]]],
x0, Reals]
The diagonal one with Series:
Series[(x^2 + x + 3)/(x - 1),
{x, Infinity, 0}]
You can also try the repository function CurveAnalysis which you can find here:
https://resources.wolframcloud.com/FunctionRepository/resources/CurveAnalysis
For the diagonal one you could also do:
PolynomialRemainder[x^2+x+3, x-1, x]
For the diagonal one you could also do:
g[x_]:= (x ^ 2 + x + 3)
p[x_]:=(x-1)
PolynomialQuotient[g[x],p[x],x]
Or
f[x_]:= (x ^ 2 + x + 3) / (x-1);
n=Numerator[f[x]];
d=Denominator[f[x]];
PolynomialQuotient[n,d,x]