My textbook (Calculus Early Transcendentals, 8th edition, by James Stewart ) asks to verify a function is continuous at a point using the definition of continuity and the limit laws. However, why would the text explicitly state to use the limit laws to verify continuity? I'm assuming this implies that direct substitution shouldn't be used and looking at solutions online confirms my suspicions as they all use limit laws as well. However, using direct substitution is much faster than using the limit laws and both methods achieve the same result.
For example, show that $f(x) = (x+2x^3)^4$ is continuous at $x=-1$
By definition of continuity, we're trying to show that $\lim_{x\to-1}(x + 2x^3)^4 =f(-1)$
Show that $f(-1)$ exists
$$f(-1)=(1+2(-1)^3)^4 = 81$$
Now for the limit
Using the limit laws:
$$\lim_{x\to-1}(x + 2x^3)^4$$
$$=[\lim_{x\to-1}x + 2x^3]^4$$
$$=[\lim_{x\to-1}x + \lim_{x\to-1}2x^3]^4$$
$$=[\lim_{x\to-1}x + 2\lim_{x\to-1}x^3]^4$$
$$=[-1 + 2(-1)^3]^4 = 81$$
Using direct substitution: $$\lim_{x\to-1}(x + 2x^3)^4 = (1+2(-1)^3)^4=81$$
In either method we reach the same result that $\lim_{x\to-1}(x + 2x^3)^4 = 81$ which verifies that $f(x)$ is continuous at $x=-1$ since $\lim_{x\to-1}(x + 2x^3)^4 =f(-1)$
Perhaps I'm missing some important connection between continuity and limits as to why limit laws are used instead of direction substitution to verify continuity?