Está en la página 1de 23

# A1)

>> syms x;
>> f1=x; f2=(x.*exp(x));

## >> w=[x x.*exp(x);1 exp(x) + x*exp(x)]

w=
[ x,

x*exp(x)]

[ 1, exp(x) + x*exp(x)]
>> r=det(w)

r =x^2*exp(x)
>> % w=x^2*exp(x) , por lo tanto las funciones son linealmente independientes

A2)
>> syms x;
>> f1=((5).*(x.^2)); f2=((-7).*(x.^3));
>> w=[((5).*(x.^2)) ((-7).*(x.^3)); 10*x -21*x^2]
w=
[ 5*x^2, -7*x^3]
[ 10*x, -21*x^2]
>> r=det(w)
r =-35*x^4
>> % w=-35*x^4, por lo tanto, las funciones son linealmente independientes

A3)
>> syms x;
>> f1=exp(x).*cos(2.*x); f2=exp(x).*sin(2.*x);

>> diff(f1),diff(f2)
ans =cos(2*x)*exp(x) - 2*sin(2*x)*exp(x)
ans =2*cos(2*x)*exp(x) + sin(2*x)*exp(x)

sin(2*x)*exp(x)]

w=

cos(2*x)*exp(x),

sin(2*x)*exp(x)]

## [ cos(2*x)*exp(x) - 2*sin(2*x)*exp(x), 2*cos(2*x)*exp(x) + sin(2*x)*exp(x)]

>> r=det(w)

r =2*cos(2*x)^2*exp(2*x) + 2*sin(2*x)^2*exp(2*x)

>> simple(r)

simplify: 2*exp(2*x)
simplify(Steps = 100): 2*exp(2*x)
combine(sincos): 2*exp(2*x)

## combine(sinhcosh): 2*cos(2*x)^2*exp(2*x) + 2*sin(2*x)^2*exp(2*x)

combine(ln): 2*cos(2*x)^2*exp(2*x) + 2*sin(2*x)^2*exp(2*x)
factor: 2*exp(2*x)*(cos(2*x)^2 + sin(2*x)^2)
expand: 2*exp(2*x) - 8*exp(2*x)*cos(x)^2 + 8*exp(2*x)*cos(x)^4 + 8*exp(2*x)*cos(x)^2*sin(x)^2
combine: 2*cos(2*x)^2*exp(2*x) + 2*sin(2*x)^2*exp(2*x)
rewrite(exp): 2*exp(2*x)*(exp(-x*2*i)/2 + exp(x*2*i)/2)^2 + 2*exp(2*x)*((exp(-x*2*i)*i)/2 (exp(x*2*i)*i)/2)^2
rewrite(sincos): 2*cos(2*x)^2*(cos(x*2*i) - sin(x*2*i)*i) + 2*sin(2*x)^2*(cos(x*2*i) - sin(x*2*i)*i)
rewrite(sinhcosh): 2*cosh(x*2*i)^2*(cosh(2*x) + sinh(2*x)) - 2*sinh(x*2*i)^2*(cosh(2*x) + sinh(2*x))
rewrite(tan): - (2*(tan(x*i) + i)*(tan(x)^2 - 1)^2)/((tan(x*i) - i)*(tan(x)^2 + 1)^2) - (8*tan(x)^2*(tan(x*i) +
i))/((tan(x*i) - i)*(tan(x)^2 + 1)^2)
mwcos2sin: - 2*sin(2*x)^2*(sin(x*2*i)*i + 2*sin(x*i)^2 - 1) + 2*(sin(2*x)^2 - 1)*(sin(x*2*i)*i + 2*sin(x*i)^2 1)
collect(x): 2*exp(2*x)*cos(2*x)^2 + 2*exp(2*x)*sin(2*x)^2
ans = 2*exp(2*x)

## >> %w=2*exp(2*x), por lo tanto las funciones son linealmente independientes

A4)
>> syms x;
>> f1=cos(2.*x); f2=x.^2; f3=sin(x)^2;
>> w=[cos(2.*x) x.^2 sin(x)^2;-2*sin(2*x) 2*x sin(2.*x);-4*cos(2*x) 2 2.*cos(2.*x)]

w=
[ cos(2*x), x^2, sin(x)^2]
[ -2*sin(2*x), 2*x, sin(2*x)]
[ -4*cos(2*x), 2, 2*cos(2*x)]

>> r=det(w)
r =4*x*cos(2*x)^2 - 2*cos(2*x)*sin(2*x) - 4*sin(2*x)*sin(x)^2 + 8*x*cos(2*x)*sin(x)^2

>> simple(r)

## expand: 4*x - 16*x*cos(x)^2 + 16*x*cos(x)^4 - 8*x*sin(x)^2 + 4*cos(x)*sin(x) - 8*cos(x)*sin(x)^3 - 8*cos(x)^3*sin(x) +

16*x*cos(x)^2*sin(x)^2

## rewrite(exp): - 2*(exp(-x*2*i)/2 + exp(x*2*i)/2)*((exp(-x*2*i)*i)/2 - (exp(x*2*i)*i)/2) + 4*x*(exp(-x*2*i)/2 +

exp(x*2*i)/2)^2 - 4*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^2*((exp(-x*2*i)*i)/2 - (exp(x*2*i)*i)/2) + 8*x*(exp(-x*2*i)/2 +
exp(x*2*i)/2)*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^2

## rewrite(sinhcosh): - sinh(x*i)^2*sinh(x*2*i)*4*i + 4*x*cosh(x*2*i)^2 + cosh(x*2*i)*sinh(x*2*i)*2*i 8*x*cosh(x*2*i)*sinh(x*i)^2

rewrite(tan): (4*tan(x)*(tan(x)^2 - 1))/(tan(x)^2 + 1)^2 + (4*x*(tan(x)^2 - 1)^2)/(tan(x)^2 + 1)^2 (32*tan(x/2)^2*tan(x))/((tan(x/2)^2 + 1)^2*(tan(x)^2 + 1)) - (32*x*tan(x/2)^2*(tan(x)^2 - 1))/((tan(x/2)^2 + 1)^2*(tan(x)^2
+ 1))

## ans = 4*x*cos(2*x) - 2*sin(2*x)

>> %w=4*x*cos(2*x) - 2*sin(2*x), por lo tanto las funciones son linealmente independientes

A5)

>> syms x;
>> f1=sqrt(x)+5; f2=sqrt(x)+5.*x; f3=x.^2;

## >> diff(f1), diff(f2), diff(f3)

ans =1/(2*x^(1/2))
ans =1/(2*x^(1/2)) + 5
ans =2*x

## >> diff(f1,2), diff(f2,2), diff(f3,2)

ans =-1/(4*x^(3/2))
ans =-1/(4*x^(3/2))
ans =2

w=
[ x^(1/2) + 5,

## [ 1/(2*x^(1/2)), 1/(2*x^(1/2)) + 5, 2*x]

[ -1/(4*x^(3/2)), -1/(4*x^(3/2)), 2]

>> r=det(w)
r =(5*(3*x + 40*x^(1/2) + 6))/(4*x^(1/2))

>> simple(r)

## simplify: (5*(3*x + 40*x^(1/2) + 6))/(4*x^(1/2))

radsimp: (5*(3*x + 40*x^(1/2) + 6))/(4*x^(1/2))
simplify(Steps = 100): 15/(2*x^(1/2)) + (15*x^(1/2))/4 + 50
combine(sincos): (5*(3*x + 40*x^(1/2) + 6))/(4*x^(1/2))
combine(sinhcosh): (5*(3*x + 40*x^(1/2) + 6))/(4*x^(1/2))
combine(ln): (5*(3*x + 40*x^(1/2) + 6))/(4*x^(1/2))
factor: (5*(3*x + 40*x^(1/2) + 6))/(4*x^(1/2))
expand: 15/(2*x^(1/2)) + (15*x^(1/2))/4 + 50
combine: ((15*x)/4 + 50*x^(1/2) + 15/2)/x^(1/2)
rewrite(exp): (5*(3*x + 40*x^(1/2) + 6))/(4*x^(1/2))
rewrite(sincos): (5*(3*x + 40*x^(1/2) + 6))/(4*x^(1/2))
rewrite(sinhcosh): (5*(3*x + 40*x^(1/2) + 6))/(4*x^(1/2))
rewrite(tan): (5*(3*x + 40*x^(1/2) + 6))/(4*x^(1/2))
mwcos2sin: (5*(3*x + 40*x^(1/2) + 6))/(4*x^(1/2))
collect(x): (15/(4*x^(1/2)))*x + (5*(40*x^(1/2) + 6))/(4*x^(1/2))

## ans = 15/(2*x^(1/2)) + (15*x^(1/2))/4 + 50

>> %w=15/(2*x^(1/2)) + (15*x^(1/2))/4 + 50, por lo tanto las funciones son linealmente independientes

A6)

>> syms x;
>> f1=cos(x).^2; f2=sin(x).^2; f3=sec(x).^2; f4=tan(x).^2;
>> diff(f1), diff(f2), diff(f3), diff(f4)
ans = -2*cos(x)*sin(x)
ans = 2*cos(x)*sin(x)
ans = (2*sin(x))/cos(x)^3
ans = 2*tan(x)*(tan(x)^2 + 1)

## >> diff(f1,2), diff(f2,2), diff(f3,2), diff(f4,2)

ans = 2*sin(x)^2 - 2*cos(x)^2
ans = 2*cos(x)^2 - 2*sin(x)^2
ans = 2/cos(x)^2 + (6*sin(x)^2)/cos(x)^4
ans =2*(tan(x)^2 + 1)^2 + 4*tan(x)^2*(tan(x)^2 + 1)

## >> diff(f1,3), diff(f2,3), diff(f3,3), diff(f4,3)

ans = 8*cos(x)*sin(x)
ans = -8*cos(x)*sin(x)
ans = (16*sin(x))/cos(x)^3 + (24*sin(x)^3)/cos(x)^5
ans = 16*tan(x)*(tan(x)^2 + 1)^2 + 8*tan(x)^3*(tan(x)^2 + 1)

## >> w=[cos(x).^2 sin(x).^2 sec(x).^2 tan(x).^2;-2*cos(x)*sin(x) 2*cos(x)*sin(x) (2*sin(x))/cos(x)^3 2*tan(x)*(tan(x)^2 +

1);2*sin(x)^2 - 2*cos(x)^2 2*cos(x)^2 - 2*sin(x)^2 2/cos(x)^2 + (6*sin(x)^2)/cos(x)^4 2*(tan(x)^2 + 1)^2 +
4*tan(x)^2*(tan(x)^2 + 1);8*cos(x)*sin(x) -8*cos(x)*sin(x) (16*sin(x))/cos(x)^3 + (24*sin(x)^3)/cos(x)^5
(16*sin(x))/cos(x)^3 + (24*sin(x)^3)/cos(x)^5]

w=

[
[

cos(x)^2,
-2*cos(x)*sin(x),

sin(x)^2,
2*cos(x)*sin(x),

1/cos(x)^2,

tan(x)^2]

(2*sin(x))/cos(x)^3,

2*tan(x)*(tan(x)^2 + 1)]

## [ 2*sin(x)^2 - 2*cos(x)^2, 2*cos(x)^2 - 2*sin(x)^2,

4*tan(x)^2*(tan(x)^2 + 1)]
[
8*cos(x)*sin(x),
(24*sin(x)^3)/cos(x)^5]

>> r=det(w)

## r = -(32*sin(x)*(3*cos(x)^8*sin(x) - 12*sin(x)^7 - 3*cos(x)^9*tan(x) - 20*cos(x)^2*sin(x)^5 - 8*cos(x)^4*sin(x)^3 +

3*cos(x)^4*sin(x)^5 + 6*cos(x)^6*sin(x)^3 - 3*cos(x)^9*tan(x)^3 + 12*cos(x)^4*sin(x)^5*tan(x)^2 +
24*cos(x)^6*sin(x)^3*tan(x)^2 + 3*cos(x)^3*sin(x)^6*tan(x)^3 - cos(x)^5*sin(x)^4*tan(x)^3 7*cos(x)^7*sin(x)^2*tan(x)^3 + 9*cos(x)^4*sin(x)^5*tan(x)^4 + 18*cos(x)^6*sin(x)^3*tan(x)^4 +
3*cos(x)^3*sin(x)^6*tan(x) - cos(x)^5*sin(x)^4*tan(x) - 7*cos(x)^7*sin(x)^2*tan(x) + 12*cos(x)^8*sin(x)*tan(x)^2 +
9*cos(x)^8*sin(x)*tan(x)^4))/cos(x)^8

>> simple(r)

simplify: 0
radsimp: -(32*sin(x)*(3*cos(x)^8*sin(x) - 12*sin(x)^7 - 3*cos(x)^9*tan(x) - 20*cos(x)^2*sin(x)^5 - 8*cos(x)^4*sin(x)^3
+ 3*cos(x)^4*sin(x)^5 + 6*cos(x)^6*sin(x)^3 - 3*cos(x)^9*tan(x)^3 + 12*cos(x)^4*sin(x)^5*tan(x)^2 +
24*cos(x)^6*sin(x)^3*tan(x)^2 + 3*cos(x)^3*sin(x)^6*tan(x)^3 - cos(x)^5*sin(x)^4*tan(x)^3 7*cos(x)^7*sin(x)^2*tan(x)^3 + 9*cos(x)^4*sin(x)^5*tan(x)^4 + 18*cos(x)^6*sin(x)^3*tan(x)^4 +
3*cos(x)^3*sin(x)^6*tan(x) - cos(x)^5*sin(x)^4*tan(x) - 7*cos(x)^7*sin(x)^2*tan(x) + 12*cos(x)^8*sin(x)*tan(x)^2 +
9*cos(x)^8*sin(x)*tan(x)^4))/cos(x)^8
simplify(Steps = 100): 0
combine(sincos): -(32*sin(x)*((61*sin(3*x))/16 - sin(5*x)/16 - (65*sin(x))/8 - (29*cos(x)*tan(x))/16 (17*cos(3*x)*tan(x))/16 - (3*cos(5*x)*tan(x))/16 + (cos(7*x)*tan(x))/16 - (29*cos(x)*tan(x)^3)/16 + (3*sin(x)*tan(x)^2)/2
+ (9*sin(x)*tan(x)^4)/8 - (17*cos(3*x)*tan(x)^3)/16 - (3*cos(5*x)*tan(x)^3)/16 + (cos(7*x)*tan(x)^3)/16 +
(9*sin(3*x)*tan(x)^2)/4 + (27*sin(3*x)*tan(x)^4)/16 + (3*sin(5*x)*tan(x)^2)/4 + (9*sin(5*x)*tan(x)^4)/16))/cos(x)^8
combine(sinhcosh): -(32*sin(x)*(3*cos(x)^8*sin(x) - 12*sin(x)^7 - 3*cos(x)^9*tan(x) - 20*cos(x)^2*sin(x)^5 8*cos(x)^4*sin(x)^3 + 3*cos(x)^4*sin(x)^5 + 6*cos(x)^6*sin(x)^3 - 3*cos(x)^9*tan(x)^3 + 12*cos(x)^4*sin(x)^5*tan(x)^2
+ 24*cos(x)^6*sin(x)^3*tan(x)^2 + 3*cos(x)^3*sin(x)^6*tan(x)^3 - cos(x)^5*sin(x)^4*tan(x)^3 7*cos(x)^7*sin(x)^2*tan(x)^3 + 9*cos(x)^4*sin(x)^5*tan(x)^4 + 18*cos(x)^6*sin(x)^3*tan(x)^4 +
3*cos(x)^3*sin(x)^6*tan(x) - cos(x)^5*sin(x)^4*tan(x) - 7*cos(x)^7*sin(x)^2*tan(x) + 12*cos(x)^8*sin(x)*tan(x)^2 +
9*cos(x)^8*sin(x)*tan(x)^4))/cos(x)^8

combine(ln): -(32*sin(x)*(3*cos(x)^8*sin(x) - 12*sin(x)^7 - 3*cos(x)^9*tan(x) - 20*cos(x)^2*sin(x)^5 8*cos(x)^4*sin(x)^3 + 3*cos(x)^4*sin(x)^5 + 6*cos(x)^6*sin(x)^3 - 3*cos(x)^9*tan(x)^3 + 12*cos(x)^4*sin(x)^5*tan(x)^2

## + 24*cos(x)^6*sin(x)^3*tan(x)^2 + 3*cos(x)^3*sin(x)^6*tan(x)^3 - cos(x)^5*sin(x)^4*tan(x)^3 7*cos(x)^7*sin(x)^2*tan(x)^3 + 9*cos(x)^4*sin(x)^5*tan(x)^4 + 18*cos(x)^6*sin(x)^3*tan(x)^4 +

3*cos(x)^3*sin(x)^6*tan(x) - cos(x)^5*sin(x)^4*tan(x) - 7*cos(x)^7*sin(x)^2*tan(x) + 12*cos(x)^8*sin(x)*tan(x)^2 +
9*cos(x)^8*sin(x)*tan(x)^4))/cos(x)^8

factor: (32*sin(x)*(cos(x)^2 + sin(x)^2)*(12*sin(x)^5 - 3*cos(x)^6*sin(x) + 3*cos(x)^7*tan(x) + 8*cos(x)^2*sin(x)^3 3*cos(x)^4*sin(x)^3 + 3*cos(x)^7*tan(x)^3 - 12*cos(x)^4*sin(x)^3*tan(x)^2 - 3*cos(x)^3*sin(x)^4*tan(x)^3 +
4*cos(x)^5*sin(x)^2*tan(x)^3 - 9*cos(x)^4*sin(x)^3*tan(x)^4 - 3*cos(x)^3*sin(x)^4*tan(x) + 4*cos(x)^5*sin(x)^2*tan(x) 12*cos(x)^6*sin(x)*tan(x)^2 - 9*cos(x)^6*sin(x)*tan(x)^4))/cos(x)^8

## expand: (256*sin(x)^4)/cos(x)^4 - (192*sin(x)^4)/cos(x)^2 - 96*sin(x)^2 - (96*sin(x)^6)/cos(x)^4 +

(640*sin(x)^6)/cos(x)^6 + (384*sin(x)^8)/cos(x)^8 - 384*sin(x)^2*tan(x)^2 - 288*sin(x)^2*tan(x)^4 +
96*cos(x)*sin(x)*tan(x) + (224*sin(x)^3*tan(x)^3)/cos(x) - (768*sin(x)^4*tan(x)^2)/cos(x)^2 (576*sin(x)^4*tan(x)^4)/cos(x)^2 + (32*sin(x)^5*tan(x)^3)/cos(x)^3 - (384*sin(x)^6*tan(x)^2)/cos(x)^4 (288*sin(x)^6*tan(x)^4)/cos(x)^4 - (96*sin(x)^7*tan(x)^3)/cos(x)^5 + 96*cos(x)*sin(x)*tan(x)^3 +
(224*sin(x)^3*tan(x))/cos(x) + (32*sin(x)^5*tan(x))/cos(x)^3 - (96*sin(x)^7*tan(x))/cos(x)^5

## combine: -(32*sin(x)*(3*cos(x)^8*sin(x) - 12*sin(x)^7 - 3*cos(x)^9*tan(x) - 20*cos(x)^2*sin(x)^5 - 8*cos(x)^4*sin(x)^3

+ 3*cos(x)^4*sin(x)^5 + 6*cos(x)^6*sin(x)^3 - 3*cos(x)^9*tan(x)^3 + 12*cos(x)^4*sin(x)^5*tan(x)^2 +
24*cos(x)^6*sin(x)^3*tan(x)^2 + 3*cos(x)^3*sin(x)^6*tan(x)^3 - cos(x)^5*sin(x)^4*tan(x)^3 7*cos(x)^7*sin(x)^2*tan(x)^3 + 9*cos(x)^4*sin(x)^5*tan(x)^4 + 18*cos(x)^6*sin(x)^3*tan(x)^4 +
3*cos(x)^3*sin(x)^6*tan(x) - cos(x)^5*sin(x)^4*tan(x) - 7*cos(x)^7*sin(x)^2*tan(x) + 12*cos(x)^8*sin(x)*tan(x)^2 +
9*cos(x)^8*sin(x)*tan(x)^4))/cos(x)^8

rewrite(exp): -(32*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)*(3*(exp(-x*i)/2 + exp(x*i)/2)^4*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^5 8*(exp(-x*i)/2 + exp(x*i)/2)^4*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^3 - 20*(exp(-x*i)/2 + exp(x*i)/2)^2*((exp(-x*i)*i)/2 (exp(x*i)*i)/2)^5 + 6*(exp(-x*i)/2 + exp(x*i)/2)^6*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^3 + 3*(exp(-x*i)/2 +
exp(x*i)/2)^8*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2) - 12*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^7 + (3*(exp(-x*i)/2 +
exp(x*i)/2)^9*(exp(x*2*i)*i - i))/(exp(x*2*i) + 1) + (3*(exp(-x*i)/2 + exp(x*i)/2)^9*(exp(x*2*i)*i - i)^3)/(exp(x*(2*i)) +
1)^3 - (3*(exp(-x*i)/2 + exp(x*i)/2)^3*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^6*(exp(x*2*i)*i - i))/(exp(x*2*i) + 1) + ((exp(x*i)/2 + exp(x*i)/2)^5*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^4*(exp(x*2*i)*i - i))/(exp(x*2*i) + 1) + (7*(exp(-x*i)/2 +
exp(x*i)/2)^7*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^2*(exp(x*2*i)*i - i))/(exp(x*2*i) + 1) + (12*(exp(-x*i)/2 +
exp(x*i)/2)^8*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)*(exp(x*2*i)*i - i)^2)/(exp(x*(2*i)) + 1)^2 + (9*(exp(-x*i)/2 +
exp(x*i)/2)^8*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)*(exp(x*2*i)*i - i)^4)/(exp(x*(2*i)) + 1)^4 + (12*(exp(-x*i)/2 +
exp(x*i)/2)^4*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^5*(exp(x*2*i)*i - i)^2)/(exp(x*(2*i)) + 1)^2 + (24*(exp(-x*i)/2 +
exp(x*i)/2)^6*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^3*(exp(x*2*i)*i - i)^2)/(exp(x*(2*i)) + 1)^2 - (3*(exp(-x*i)/2 +
exp(x*i)/2)^3*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^6*(exp(x*2*i)*i - i)^3)/(exp(x*(2*i)) + 1)^3 + ((exp(-x*i)/2 +
exp(x*i)/2)^5*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^4*(exp(x*2*i)*i - i)^3)/(exp(x*(2*i)) + 1)^3 + (7*(exp(-x*i)/2 +
exp(x*i)/2)^7*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^2*(exp(x*2*i)*i - i)^3)/(exp(x*(2*i)) + 1)^3 + (9*(exp(-x*i)/2 +
exp(x*i)/2)^4*((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)^5*(exp(x*2*i)*i - i)^4)/(exp(x*(2*i)) + 1)^4 + (18*(exp(-x*i)/2 +

exp(x*i)/2)^8

## rewrite(sincos): -(32*sin(x)*(12*sin(x)^9 - 12*sin(x)^7 - 20*cos(x)^2*sin(x)^5 - 8*cos(x)^4*sin(x)^3 +

32*cos(x)^2*sin(x)^7 + 28*cos(x)^4*sin(x)^5 + 8*cos(x)^6*sin(x)^3))/cos(x)^8

## rewrite(sinhcosh): -(sinh(x*i)*(- cosh(x*i)^2*sinh(x*i)^5*20*i + cosh(x*i)^4*sinh(x*i)^3*8*i cosh(x*i)^2*sinh(x*i)^7*32*i + cosh(x*i)^4*sinh(x*i)^5*28*i - cosh(x*i)^6*sinh(x*i)^3*8*i + sinh(x*i)^7*12*i +

sinh(x*i)^9*12*i)*32*i)/cosh(x*i)^8

rewrite(tan): -(64*tan(x/2)*(tan(x/2)^2 + 1)^7*((3*tan(x)*(tan(x/2)^2 - 1)^9)/(tan(x/2)^2 + 1)^9 (1536*tan(x/2)^7)/(tan(x/2)^2 + 1)^7 + (6*tan(x/2)*(tan(x/2)^2 - 1)^8)/(tan(x/2)^2 + 1)^9 + (3*tan(x)^3*(tan(x/2)^2 1)^9)/(tan(x/2)^2 + 1)^9 - (64*tan(x/2)^3*(tan(x/2)^2 - 1)^4)/(tan(x/2)^2 + 1)^7 - (640*tan(x/2)^5*(tan(x/2)^2 1)^2)/(tan(x/2)^2 + 1)^7 + (48*tan(x/2)^3*(tan(x/2)^2 - 1)^6)/(tan(x/2)^2 + 1)^9 + (96*tan(x/2)^5*(tan(x/2)^2 1)^4)/(tan(x/2)^2 + 1)^9 + (192*tan(x/2)^3*tan(x)^2*(tan(x/2)^2 - 1)^6)/(tan(x/2)^2 + 1)^9 +
(384*tan(x/2)^5*tan(x)^2*(tan(x/2)^2 - 1)^4)/(tan(x/2)^2 + 1)^9 + (28*tan(x/2)^2*tan(x)^3*(tan(x/2)^2 - 1)^7)/(tan(x/2)^2
+ 1)^9 + (16*tan(x/2)^4*tan(x)^3*(tan(x/2)^2 - 1)^5)/(tan(x/2)^2 + 1)^9 - (192*tan(x/2)^6*tan(x)^3*(tan(x/2)^2 1)^3)/(tan(x/2)^2 + 1)^9 + (144*tan(x/2)^3*tan(x)^4*(tan(x/2)^2 - 1)^6)/(tan(x/2)^2 + 1)^9 +
(288*tan(x/2)^5*tan(x)^4*(tan(x/2)^2 - 1)^4)/(tan(x/2)^2 + 1)^9 + (28*tan(x/2)^2*tan(x)*(tan(x/2)^2 - 1)^7)/(tan(x/2)^2 +
1)^9 + (16*tan(x/2)^4*tan(x)*(tan(x/2)^2 - 1)^5)/(tan(x/2)^2 + 1)^9 - (192*tan(x/2)^6*tan(x)*(tan(x/2)^2 1)^3)/(tan(x/2)^2 + 1)^9 + (24*tan(x/2)*tan(x)^2*(tan(x/2)^2 - 1)^8)/(tan(x/2)^2 + 1)^9 +
(18*tan(x/2)*tan(x)^4*(tan(x/2)^2 - 1)^8)/(tan(x/2)^2 + 1)^9))/(tan(x/2)^2 - 1)^8

## mwcos2sin: (32*sin(x)*(12*sin(x)^7 - 12*sin(x)^9 - 20*sin(x)^5*(sin(x)^2 - 1) + 32*sin(x)^7*(sin(x)^2 - 1) +

8*sin(x)^3*(sin(x)^2 - 1)^2 + 8*sin(x)^3*(sin(x)^2 - 1)^3 - 28*sin(x)^5*(sin(x)^2 - 1)^2))/(sin(x)^2 - 1)^4

## collect(x): -(32*sin(x)*(9*cos(x)^8*sin(x)*tan(x)^4 - 3*cos(x)^9*tan(x) - 3*cos(x)^9*tan(x)^3 +

12*cos(x)^8*sin(x)*tan(x)^2 + 3*cos(x)^8*sin(x) - 7*cos(x)^7*sin(x)^2*tan(x)^3 - 7*cos(x)^7*sin(x)^2*tan(x) +
18*cos(x)^6*sin(x)^3*tan(x)^4 + 24*cos(x)^6*sin(x)^3*tan(x)^2 + 6*cos(x)^6*sin(x)^3 - cos(x)^5*sin(x)^4*tan(x)^3 cos(x)^5*sin(x)^4*tan(x) + 9*cos(x)^4*sin(x)^5*tan(x)^4 + 12*cos(x)^4*sin(x)^5*tan(x)^2 + 3*cos(x)^4*sin(x)^5 8*cos(x)^4*sin(x)^3 + 3*cos(x)^3*sin(x)^6*tan(x)^3 + 3*cos(x)^3*sin(x)^6*tan(x) - 20*cos(x)^2*sin(x)^5 12*sin(x)^7))/cos(x)^8

ans = 0

## >> %w=0, por lo tanto las funciones son linealmente dependientes

B)
>> syms x;
>> y1=exp(-3.*x); y2=exp(4.*x);

## >> w=[exp(-3.*x) exp(4.*x);-3*exp(-3*x) 4*exp(4*x)]

w=

[ exp(-3*x), exp(4*x)]
[ -3*exp(-3*x), 4*exp(4*x)]

>> r=det(w)
r =7*exp(x)

C)
>> syms x;
>> y1=exp(x).*cos(x); y2=exp(x).*sin(x);
>> diff(y1), diff(y2)

## ans =exp(x)*cos(x) - exp(x)*sin(x)

ans =exp(x)*cos(x) + exp(x)*sin(x)

## >> diff(y1,2), diff(y2,2)

ans =-2*exp(x)*sin(x)
ans =2*exp(x)*cos(x)

w=

exp(x)*cos(x),

exp(x)*sin(x)]

## [ exp(x)*cos(x) - exp(x)*sin(x), exp(x)*cos(x) + exp(x)*sin(x)]

>> r=det(w)
r =exp(2*x)*cos(x)^2 + exp(2*x)*sin(x)^2

>> %r=exp(2*x)*cos(x)^2 + exp(2*x)*sin(x)^2, por lo tanto las funciones son linealmente independientes

D)
>> syms x;
>> y1=x; y2=x.^2; y3=x.^3;
>> w=[x x.^2 x.^3; 1 2*x 3*x^2;0 2 6*x]

w=
[ x, x^2, x^3]
[ 1, 2*x, 3*x^2]
[ 0, 2, 6*x]

>> r=det(w)

r =2*x^3

## >> %r=2*x^3, por lo tanto las funciones son lnealmente independientes

E)
>> syms x;
>> y1=x; y2=x.^(-2);y3=(x.^(-2)).*(log(x));

>> diff(y1),diff(y2),diff(y3)
ans =1
ans =-2/x^3
ans =1/x^3 - (2*log(x))/x^3

>> diff(y1,2),diff(y2,2),diff(y3,2)
ans =0
ans =6/x^4
ans =(6*log(x))/x^4 - 5/x^4

>> w=[x x.^(-2) (x.^(-2).*log(x));1 -2/x^3 1/x^3 - (2*log(x))/x^3;0 6/x^4 (6*log(x))/x^4 - 5/x^4]

w=

[ x, 1/x^2,

log(x)/x^2]

## [ 1, -2/x^3, 1/x^3 - (2*log(x))/x^3]

[ 0, 6/x^4, (6*log(x))/x^4 - 5/x^4]

>> r=det(w)
r =9/x^6

A1)
>> syms x;
>> f1=sqrt(x); f2=x.^2;
>> diff(f1), diff(f2)

ans =1/(2*x^(1/2))
ans =2*x

## >> w=[sqrt(x) x.^2;1/(2*x^(1/2)) 2*x]

w=

x^(1/2), x^2]

[ 1/(2*x^(1/2)), 2*x]

>> r=det(w)
r =(3*x^(3/2))/2

>> %w=3*x^(3/2))/2, por lo tanto las funciones son linealmente independientes lo que quiere decir
>> %que forman un conjunto fundamental de soluciones

A2)
>> syms x;
>> f1=sin(x); f2=csc(x);

>> diff(f1),diff(f2)
ans =cos(x)
ans =-cos(x)/sin(x)^2

## >> w=[sin(x) csc(x);cos(x) -cos(x)/sin(x)^2]

w=

[ sin(x),

1/sin(x)]

[ cos(x), -cos(x)/sin(x)^2]

>> r=det(w)

r =-(2*cos(x))/sin(x)

>> simple(r)

simplify:-(2*cos(x))/sin(x)

simplify(Steps = 100):-2*cot(x)

combine(sincos):-(2*cos(x))/sin(x)

combine(sinhcosh):-(2*cos(x))/sin(x)

combine(ln):-(2*cos(x))/sin(x)

factor:-(2*cos(x))/sin(x)

expand:-(2*cos(x))/sin(x)

combine:-(2*cos(x))/sin(x)

## rewrite(exp):-(2*(exp(-x*i)/2 + exp(x*i)/2))/((exp(-x*i)*i)/2 - (exp(x*i)*i)/2)

rewrite(sincos):-(2*cos(x))/sin(x)

rewrite(sinhcosh):-(cosh(x*i)*2*i)/sinh(x*i)

rewrite(tan):(tan(x/2)^2 - 1)/tan(x/2)

mwcos2sin:(2*(2*sin(x/2)^2 - 1))/sin(x)

collect(x):-(2*cos(x))/sin(x)

ans =-2*cot(x)

>> %w=-2*cot(x), por lo tanto las funciones son linealmente independientes lo que quiere decir
>> %que forman un conjunto fundamental de soluciones

A3)
>> syms x;
>> f1=x; f2=x.*log(x);f3=((x.^2).*(log(x)));

## >> diff(f1), diff(f2), diff(f3),

ans =1
ans =log(x) + 1
ans =x + 2*x*log(x)

>> diff(f1,2),diff(f2,2),diff(f3,2)
ans =0
ans =1/x
ans =2*log(x) + 3

## >> r=[x x.*log(x) ((x.^2).*(log(x)));1 log(x) + 1 x + 2*x*log(x);0 1/x 2*log(x) + 3]

r=
[ x, x*log(x),

x^2*log(x)]

[ 1, log(x) + 1, x + 2*x*log(x)]
[ 0,

1/x, 2*log(x) + 3]

>> f=det(r)

f =2*x + x*log(x)

>> %w=2*x + x*log(x), por lo tanto las funciones son linealmente independientes lo que quiere decir
>> %que forman un conjunto fundamental de soluciones

B1)
>> syms x;
>> f1=((exp(x)).*(cos(2.*x)));f2=((exp(x)).*(sin(2.*x)));

## >> diff(f1), diff(f2)

ans =cos(2*x)*exp(x) - 2*sin(2*x)*exp(x)
ans =2*cos(2*x)*exp(x) + sin(2*x)*exp(x)

sin(2*x)*exp(x)]

w=

cos(2*x)*exp(x),

sin(2*x)*exp(x)]

## [ cos(2*x)*exp(x) - 2*sin(2*x)*exp(x), 2*cos(2*x)*exp(x) + sin(2*x)*exp(x)]

>> r=det(w)

r =2*cos(2*x)^2*exp(2*x) + 2*sin(2*x)^2*exp(2*x)

>> simple(r)

simplify: 2*exp(2*x)

## simplify(Steps = 100): 2*exp(2*x)

combine(sincos): 2*exp(2*x)

## rewrite(sinhcosh): 2*cosh(x*2*i)^2*(cosh(2*x) + sinh(2*x)) - 2*sinh(x*2*i)^2*(cosh(2*x) + sinh(2*x))

rewrite(tan):- (2*(tan(x*i) + i)*(tan(x)^2 - 1)^2)/((tan(x*i) - i)*(tan(x)^2 + 1)^2) - (8*tan(x)^2*(tan(x*i) + i))/((tan(x*i) i)*(tan(x)^2 + 1)^2)

ans =2*exp(2*x)

## >> %w=2*exp(2*x), por lo tanto las funciones son linealmente independientes

B2)
>> syms x;
>> f1=x; f2=x.^(-2); f3=(((x).^(-2)).*(log(x)));

>> diff(f1),diff(f2),diff(f3)
ans = 1
ans = -2/x^3
ans = 1/x^3 - (2*log(x))/x^3

>> diff(f1,2),diff(f2,2),diff(f3,2)
ans = 0
ans = 6/x^4
ans = (6*log(x))/x^4 - 5/x^4

>> w=[x x.^(-2) (((x).^(-2)).*(log(x)));1 -2/x^3 1/x^3 - (2*log(x))/x^3; 0 6/x^4 (6*log(x))/x^4 - 5/x^4]

w=

[ x, 1/x^2,

log(x)/x^2]

## [ 1, -2/x^3, 1/x^3 - (2*log(x))/x^3]

[ 0, 6/x^4, (6*log(x))/x^4 - 5/x^4]

>> r=det(w)

r =9/x^6