Professional Documents
Culture Documents
>> syms x
>> syms x a b c d e f
>> g=(d*x^2+e*x+f)/(x^2/a+x/b+1/x);
>> diff(f)
ans =
1
>> diff(f,2)
ans =
0
>> syms x a b c
>> f=(x-a)*(x-b)*(x-c);
>> diff(f)
ans =
(a - x)*(b - x) + (a - x)*(c - x) + (b - x)*(c - x)
>> diff(f,2)
ans =
6*x - 2*b - 2*c - 2*a
>> syms x a
>> f=(x+a)^(1/3)*(x-a)^(1/3);
>> diff(f)
ans =
(a + x)^(1/3)/(3*(x - a)^(2/3)) + (x - a)^(1/3)/(3*(a + x)^(2/3))
>> diff(f,2)
ans =
2/(9*(a + x)^(2/3)*(x - a)^(2/3)) - (2*(a + x)^(1/3))/(9*(x - a)^(5/3)) - (2*(x - a)^(1/3))/(9*(a +
x)^(5/3))
>> syms x
>> f=sqrt(1+(x^2-7)^(1/2));
>> diff(f)
ans =
x/(2*(x^2 - 7)^(1/2)*((x^2 - 7)^(1/2) + 1)^(1/2))
>> diff(f,2)
ans =
1/(2*(x^2 - 7)^(1/2)*((x^2 - 7)^(1/2) + 1)^(1/2)) - x^2/(4*(x^2 - 7)*((x^2 - 7)^(1/2) + 1)^(3/2)) -
x^2/(2*(x^2 - 7)^(3/2)*((x^2 - 7)^(1/2) + 1)^(1/2))
>> syms x >> f=(x+1)/(x^2+4*x+5);
>> f=log10(x)/sqrt(x); >> int(f)
>> int(f) ans =
ans = log(x^2 + 4*x + 5)/2 - atan(x + 2)
(2*x^(1/2)*(log(x) - 2))/log(10) >> syms x
>> syms x >> f=x^2/(x^2-x+1);
>> f=atan(sqrt(x)); >> int(f)
>> int(f) ans =
ans = x + log(x^2 - x + 1)/2 -
(3^(1/2)*atan((2*3^(1/2)*x)/3 -
atan(x^(1/2)) + x*atan(x^(1/2)) - x^(1/2) 3^(1/2)/3))/3
>> syms x a b >> syms x
>> f=a/(x^2+b^2); >> f=x^2/(x^2+x+1);
>> int(f) >> int(f)
ans = ans =
(a*atan(x/b))/b x - log(x^2 + x + 1)/2 -
>> syms x (3^(1/2)*atan((2*3^(1/2)*x)/3 +
3^(1/2)/3))/3