You are on page 1of 4

1.

>> syms x

>> diff(log(sin(2*x)))

ans =

(2*cos(2*x))/sin(2*x)

1.2.

>> syms x

>> diff(log(1+sqrt(1+x^2)))

ans =

x/((x^2 + 1)^(1/2)*((x^2 + 1)^(1/2) + 1))

2.

>> syms x

>> M = diff(log(sin(2*x)))

M=

(2*cos(2*x))/sin(2*x)

>> pretty(M)

cos(2 x) 2

----------

sin(2 x)

2.1

N = diff(log(1+sqrt(1+x^2)))

N=

x/((x^2 + 1)^(1/2)*((x^2 + 1)^(1/2) + 1))

>> pretty(N)

-------------------------------

2 2

sqrt(x + 1) (sqrt(x + 1) + 1)
3.

C = log(sin(2*x))

C=

log(sin(2*x))

>> diff(C,2)

ans =

- (4*cos(2*x)^2)/sin(2*x)^2 – 4

3.1

>> D = log(1+sqrt(1+x^2))

D=

log((x^2 + 1)^(1/2) + 1)

>> diff(D,2)

ans =

1/((x^2 + 1)^(1/2)*((x^2 + 1)^(1/2) + 1)) - x^2/((x^2 + 1)*((x^2 + 1)^(1/2) + 1)^2) - x^2/((x^2 +


1)^(3/2)*((x^2 + 1)^(1/2) + 1))

4.

>> R = diff(1/(1-x^2))

R=

(2*x)/(x^2 - 1)^2

>> subs(R,0)

ans =

0
5.

syms x

>> syms y

>> R = sin(x)*exp(y)

R=

exp(y)*sin(x)

>> N = diff(R,x)

N=

exp(y)*cos(x)

>> M = diff(R,y)

M=

exp(y)*sin(x)

>> B = M + N

B=

exp(y)*cos(x) + exp(y)*sin(x)

>> subs (B, {x,y},{0,1})

ans =

exp(1)

6.

>> int(1 / (x^2 - 1))

ans =

-atanh(x)
7.

>> syms x

>> syms a

>> syms b

>> F = a*log(1-b*x)

F=

a*log(1 - b*x)

>> int(F,x)

ans =

-a*(x + log(b*x - 1)/b - x*log(1 - b*x))

8.

>> syms x

>> syms a

>> syms b

>> F = a*log(1-b*x)

F=

a*log(1 - b*x)

>> int(F,x)

ans =

-a*(x + log(b*x - 1)/b - x*log(1 - b*x))

>> R = int(F,x)

R=

-a*(x + log(b*x - 1)/b - x*log(1 - b*x))

>> subs(R,1) - subs(R,0)

ans =

- a*(log(b - 1)/b - log(1 - b) + 1) + (pi*a*1i)/b

You might also like