%uloha 49
%analyza funkce f=sin(2*x)/(x^2-x-2)

syms x

f=sin(2*x)/(x^2-x-2)
pretty(f)
solve(x^2-x-2)
limit(f,x,-1,'right')
limit(f,x,-1,'left')
limit(f,x,2,'right')
limit(f,x,2,'left')
ezplot(f,[-4*pi,4*pi])
solve(f)
I=int(f,0,1)
df=diff(f)
subs(df,0)