% Problem 9 % Declare x to be symbolic syms x % (a) limit(sin(x)/x, x, 0) ans = 1 % (b) limit((1+cos(x))/(x-pi), x, pi) ans = 0 % (c) limit(x*exp(-x), x, inf) ans = NaN % Since MATLAB defaults to numerical evaluation rules, it gets % a non-answer. Here's a symbolic alternative: syms y fn = subs(x*exp(-x), x, 1/y) fn = 1/y*exp(-1/y) limit(fn, y, 0, 'right') ans = 0 % (d) limit(1/(x-1), x, 1, 'left') ans = -inf % (e) limit(sin(1/x), x, 0) ans = -1 .. 1 echo off