You are on page 1of 13

AO DE LA PROMOCIN DE LA INDUSTRIA RESPONSABLE

Y DEL COMPROMISO CLIMTICO


UNIVERSIDAD NACIONAL
PEDRO RUIZ GALLO
FACULTAD DE INGENIERA CIVIL, SISTEMAS Y ARQUITECTURA

ASIGNATURA:
MATEMTICA BSICAPARA INGENIERA II

DOCENTE:
RIMARACHN LPEZ BETTY

ESTUDIANTE:
PISCOYA BAUTISTA DANIEL

CDIGO:
131978-E

CICLO:
2014 I

LAMBAYEQUE PER
2014

a) Cinco grficas de una funcin con una variable


F(x)=x2+3x+2
>> x=-5:0.01:5;
>> y=x.^2+3*x+2;
>> plot(x,y,'r','LineWidth',2)
>> grid on

45
40
35
30
25
20
15
10
5
0
-5
-5

-4

-3

-2

-1

F(x)=x3+2x3+4x+1
>> x=-15:0.01:15;
>> y=x.^3+2*x.^2+4*x+1;
>> plot(x,y,'m','LineWidth',2)
>> grid on

4000

3000

2000

1000

-1000

-2000

-3000
-15

-10

-5

10

15

F(x)=x3-8
>> x=-10:0.01:10;
>> y=8-x.^3;
>> plot(x,y,'g','LineWidth',2)
>> grid on

1500

1000

500

-500

-1000
-10

-8

-6

-4

-2

10

F(x)=4x2+4x+10
x=-10:0.01:10;
>> y=4*x.^2+4*x+10;
>> plot(x,y,'y','LineWidth',2)
>> grid on

450
400
350
300
250
200
150
100
50
0
-10

-8

-6

-4

-2

10

F(x)=3x+2
>> x=-10:0.01:10;
>> y=2-3*x;
>> plot(x,y,'b','LineWidth',2)
>> grid on

40

30

20

10

-10

-20

-30
-10

-8

-6

-4

-2

10

b) Cinco grficas con dos funciones en cada grfica


>> x=-5:0.01:5;
>> y=x.^3;
>> x=-5:0.01:5;
>> y2=x.^2+3*x-8;
>> plot(x,y,'y','LineWidth',2)
>> grid on
>> hold on
>> plot(x,y2,'b','LineWidth',2)

150

100

50

-50

-100

-150
-5

-4

-3

-2

-1

>> x=-5:0.01:5;
>> y=x.^2+6*x-8;
>> x=-5:0.01:5;
>> y2=2*x-2*x.^2+6;
>> plot(x,y,'y','LineWidth',2)
>> grid on
>> hold on
>> plot(x,y2,'b','LineWidth',2)

60

40

20

-20

-40

-60
-5

-4

-3

-2

-1

>> x=-5:0.01:5;
>> y=x.^2+7*x-1;
>> x=-5:0.01:5;
>> y2=3*x.^2+5*x+9;
>> plot(x,y,'y','LineWidth',2)
>> grid on
>> hold on
>> plot(x,y2,'b','LineWidth',2)

120

100

80

60

40

20

-20
-5

-4

-3

-2

-1

>> x=-5:0.01:5;
>> y=24-2*x-x.^2;
>> x=-5:0.01:5;
>> y2=x.^2-6*x;
>> plot(x,y,'y','LineWidth',2)
>> grid on
>> hold on
>> plot(x,y2,'b','LineWidth',2)

60
50
40
30
20
10
0
-10
-20
-5

-4

-3

-2

-1

>> x=-5:0.01:5;
>> y=x.^2-6*x+5;
>> x=-5:0.01:5;
>> y2=x.^2-7*x+10;
>> plot(x,y,'y','LineWidth',2)
>> grid on
>> hold on
>> plot(x,y2,'b','LineWidth',2)

70
60
50
40
30
20
10
0
-10
-5

-4

-3

-2

-1

c) Grficas de funciones definidas por tramos


>> x=-8:0.001:8;
>> y=(x<-2).*(x+7)+(x>2).*(-x+7)+((x>=-2)&(x<=2)).*(x.^2);
>> plot(x,y,'r','LineWidth',2)
>> grid on

-1
-8

-6

-4

-2

>> x=-5:0.001:5;
>> y=(x<=1).*(x.^2)+(x>1).*(2*x+5);
>> plot(x,y,'y','LineWidth',2)
>> grid on

25

20

15

10

0
-5

-4

-3

-2

-1

You might also like