Clear
syms x y
y=1/(1+cos(x));
f=int(y,x)
f =
tan(1/2x)
y=tan(1/2x);
yx=diff(y,x);
y1=simple(yx)
y1 =
1/2+1/2tan(1/2x)^2
clear
syms x y
y=1/(1+exp(x));
f=int(y,x)
f =
-log(1+exp(x))+log(exp(x))
syms x y
y=-log(1+exp(x))+log(exp(x));
yx=diff(y,x);
y1=simple(yx)
y1 =
1/(1+exp(x))
syms x y
y=xsin(x)^2;
f=int(y,x)
f =
x(-1/2cos(x)sin(x)+1/2x)-1/4cos(x)2-1/4*x2
clear
syms x y y=x*(-1/2cos(x)sin(x)+1/2x)-1/4cos(x)2-1/4*x2;
yx=diff(y,x);
y1=simple(yx)
y1 =
x*sin(x)^2