You are on page 1of 12

Grafica 1:

x=pi./3:pi./100:(13./6).*pi;
y=3.*sin(x./2);
plot(x,y)
hold on
y=(sin(x)).^2+sin(x);
plot(x,y,'r')
legend('y=3.sin(x./2)','y=(sin(x)).^2+sin(x)')
xlabel('Eje x')
ylabel('Eje y')
grid on
>> x=sym('x','real');
>> y=sym('y','real');
>> y=3*sin(x/2);
>> y=(sin(x))^2+sin(x);
>> solve('(3*sin(x/2))-((sin(x))^2+sin(x))','x')

ans =

0
2*pi
1.4349407728222980581558387065156
.60949659742246170011130102772380
-2.8716020630464516998452813263946+1.4181069871013958351007397998540*i
4.9909760315138650591743548425548-1.4686510112190634205130387709556*i
4.9909760315138650591743548425548+1.4686510112190634205130387709556*i

-2.8716020630464516998452813263946-1.4181069871013958351007397998540*i

>> int
??? Undefined function or variable 'int'.

>> int((3*sin(x/2))-((sin(x))^2+sin(x)),1.4349407728222980581558387065156, 2*pi)

ans =

6*cos(6462398729781233/9007199254740992)1/2*sin(6462398729781233/4503599627370496)*cos(6462398729781233/4503599627370496)+
69512793512968177/9007199254740992-cos(6462398729781233/4503599627370496)-pi

>> 6*cos(6462398729781233/9007199254740992)1/2*sin(6462398729781233/4503599627370496)*cos(6462398729781233/4503599627370496)+
69512793512968177/9007199254740992-cos(6462398729781233/4503599627370496)-pi

ans =

8.8942

GRAFICA.2
x=-2:0.01:0;
y=x.^4+8.*x;
plot(x,y)

hold on
y=(x+2).^2-6;
plot(x,y,'r')
legend('y=x.^4+8*x','y=(x+2)^2-6')
xlabel('Eje x')
ylabel('Eje y')
grid on
>> x=sym('x','real');
>> y=sym('y','real');
>> y=x^4+8*x;
>> y=(x+2)^2-6;
>> solve('(x^4+8*x)-((x+2)^2-6)','x')

ans =

1/6*3^(1/2)*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(
1/3))^(1/2)+1/6*i*((12*(287+18*206^(1/2))^(1/3)*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287
+18*206^(1/2))^(1/3))^(1/2)+3*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(28
7+18*206^(1/2))^(1/3))^(1/2)*(287+18*206^(1/2))^(2/3)+75*((2*(287+18*206^(1/2))^(1/3)+(287
+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/2)+72*3^(1/2)*(287+18*206^(1/2))^(1/
3))/(287+18*206^(1/2))^(1/3)/((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287
+18*206^(1/2))^(1/3))^(1/2))^(1/2)

1/6*3^(1/2)*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(
1/3))^(1/2)-1/6*i*((12*(287+18*206^(1/2))^(1/3)*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287
+18*206^(1/2))^(1/3))^(1/2)+3*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(28
7+18*206^(1/2))^(1/3))^(1/2)*(287+18*206^(1/2))^(2/3)+75*((2*(287+18*206^(1/2))^(1/3)+(287
+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/2)+72*3^(1/2)*(287+18*206^(1/2))^(1/

3))/(287+18*206^(1/2))^(1/3)/((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287
+18*206^(1/2))^(1/3))^(1/2))^(1/2)
1/6*3^(1/2)*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(
1/3))^(1/2)+1/6*((12*(287+18*206^(1/2))^(1/3)*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/
2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/2)3*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/2)
*(287+18*206^(1/2))^(2/3)75*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/
2)+72*3^(1/2)*(287+18*206^(1/2))^(1/3))/(287+18*206^(1/2))^(1/3)/((2*(287+18*206^(1/2))^(1
/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/2))^(1/2)
1/6*3^(1/2)*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(
1/3))^(1/2)1/6*((12*(287+18*206^(1/2))^(1/3)*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25
)/(287+18*206^(1/2))^(1/3))^(1/2)3*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/2)
*(287+18*206^(1/2))^(2/3)75*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/
2)+72*3^(1/2)*(287+18*206^(1/2))^(1/3))/(287+18*206^(1/2))^(1/3)/((2*(287+18*206^(1/2))^(1
/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/2))^(1/2)

>> 1/6*3^(1/2)*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(
1/3))^(1/2)+1/6*((12*(287+18*206^(1/2))^(1/3)*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/
2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/2)3*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/2)
*(287+18*206^(1/2))^(2/3)75*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/
2)+72*3^(1/2)*(287+18*206^(1/2))^(1/3))/(287+18*206^(1/2))^(1/3)/((2*(287+18*206^(1/2))^(1
/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/2))^(1/2)
1/6*3^(1/2)*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(
1/3))^(1/2)1/6*((12*(287+18*206^(1/2))^(1/3)*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25
)/(287+18*206^(1/2))^(1/3))^(1/2)3*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/2)

*(287+18*206^(1/2))^(2/3)75*((2*(287+18*206^(1/2))^(1/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/
2)+72*3^(1/2)*(287+18*206^(1/2))^(1/3))/(287+18*206^(1/2))^(1/3)/((2*(287+18*206^(1/2))^(1
/3)+(287+18*206^(1/2))^(2/3)+25)/(287+18*206^(1/2))^(1/3))^(1/2))^(1/2)

ans =

-0.4585

ans =

-1.6415

>> int((x^4+8*x)-((x+2)^2-6),-1.6415

??? int((x^4+8*x)-((x+2)^2-6),-1.6415
|
Error: Expression or statement is incorrect--possibly unbalanced (, {, or [.

>> int((x^4+8*x)-((x+2)^2-6),-1.6415,-0.4585)

ans =

-399664929292381571/240000000000000000

>> int(-((x^4+8*x)-((x+2)^2-6)),-1.6415,-0.4585)

ans =

399664929292381571/240000000000000000

>> 399664929292381571/240000000000000000

ans =

1.6653
Grafica3:
x=-1.5:0.01:1.5;
y=x.^3+4;
plot(x,y)
hold on
y=(x).^3-6.*x.^2+10;
plot(x,y,'r')
legend('Y=x.^6+4','y=(x).^3-6.*x^2+4')
xlabel('Eje x')
ylabel('Eje y')
grid on
>> x=sym('x','real');

>> y=sym('y','real');
>> y=x^3+4;
>> y=(x)^3-6*x^2+10;
>> solve('((x).^3-6.*x.^2+10)-(x^3+4)','x')
??? Error using ==> solve at 77
' ((x).^3-6.*x.^2+10)-(x^3+4) ' is not a valid expression or equation.

>> solve('((x)^3-6*x^2+10)-(x^3+4)','x')

ans =

-1
1

>> int(((x)^3-6*x^2+10)-(x^3+4),-1,1)

ans =

8
Grafica 4:
x=-1.8:0.01:2;
y=log(x);
plot(x,y)
hold on
y=(x).^3-6.*x.^2+10;

plot(x,y,'r')
hold on
y=5.*x;
plot(x,y,'m');
legend('Y=log(x)','y=(x).^3-6.*x.^2+10','y=5.*x')
xlabel('Eje x')
ylabel('Eje y')
grid on
Warning: Imaginary parts of complex X and/or Y arguments ignored
>> x=sym('x','real');
>> y=sym('y','real');
>> y=log(x);
>> y=(x)^3-6*x^2+10;
>> y=5*x;
>> solve('((x)^3-6*x^2+10)-(log(x))','x')

ans =

5.7504938465809586370615128961884

>> solve('((x)^3-6*x^2+10)-(5*x)','x')

ans =

5/2+1/2*65^(1/2)
5/2-1/2*65^(1/2)

>> 5/2+1/2*65^(1/2)
5/2-1/2*65^(1/2)

ans =

6.5311

ans =

-1.5311

>> solve('(5*x)-(log(x))','x')

ans =

-1/5*lambertw(-5)

>> -1/5*lambertw(-5)

ans =

-0.1690 - 0.3950i

>> int(((x)^3-6*x^2+10)-(log(x)),-1.2,-0.1690)

ans =

29505830202721/4000000000000-1707/1000*log(2)-6/5*log(3)+693/1000*log(5)1031/1000*i*pi+169/500*log(13)

>> 29505830202721/4000000000000-1707/1000*log(2)-6/5*log(3)+693/1000*log(5)1031/1000*i*pi+169/500*log(13)

ans =

6.8572 - 3.2390i

>> int(((x)^3-6*x^2+10)-(5*x),-0.1690,1)

ans =

30006179797279/4000000000000

>> 30006179797279/4000000000000

ans =

7.5015
Grafica 5;
x=-1.8:0.01:1.5;
y=exp(2.*x+1);
plot(x,y)
hold on
y=-20.*x.^2+50;
plot(x,y,'r')
legend('Y=exp(2.*x+1)','y= -20.*x.^2+50','y=5.*x')
xlabel('Eje x')
ylabel('Eje y')
grid on
>>
>> x=sym('x','real');
>> y=sym('y','real');
>> y=exp(2*x+1);
>> y=-20*x^2+50;
>> solve('(-20*x^2+50)-(exp(2*x+1))','x')
Warning: Warning, solutions may have been lost

ans =

-1.5793118127704289900977764742482

>> int((-20*x^2+50)-(exp(2*x+1)),-1.57,1.15)

ans =

938077/9375+1/2*exp(-107/50)-1/2*exp(33/10)

>> 938077/9375+1/2*exp(-107/50)-1/2*exp(33/10)

ans =

86.5641

You might also like