For one-sided limits, you will need to add an additional parameter to the limit() command, specifying which side (left or right) to approach the value from. In the case of a vertical asymptote, these limits will be equal to \(\pm \infty\text{.}\)
We can factor the denominator to find the domain of \(f(x)\) and predict where we might find vertical asymptotes. There is a useful denom() command for this that we can use for the denominator of \(f(x)\text{.}\)
It looks like \(x=3\) and \(x=5\) are not in the domain of \(f(x)\text{,}\) though it is not clear if they are vertical asymptotes. We can find the limit of \(f(x)\) as \(x \rightarrow 3\text{.}\)
Since this limit exists but \(f(3)\) does not, this is a removable discontinuity and not a vertical asymptote. Now we can find the limit of \(f(x)\) as \(x \rightarrow 5\text{.}\)
Even though this limit does not exist, we cannot automatically conclude that \(f(x)\) has a vertical asymptote at \(x=5\text{.}\) We need to compute the one-sided limits to see if there is asymptotic behaviour.