Y=(x^2-1)/(x+2) производная
Y'=[2x*(x+2)-(x^2-1)*1 ] / (x+2)^2 = [2x^2+4x-x^2+1 ] / (x+2)^2 = [x^2+4x+1 ] /(x+2)^2