You are on page 1of 6

IntroMathematicaSec3.

nb

Plot@Sin@xD, 8x, , <D


1

0.5

-3

-2

-1

-0.5

-1

 Graphics 

Integracin definida
Integrate@Sin@xD, xD
Cos@xD

Sin@xD  x

0
NIntegrate@Sin@xD, 8x, , <D
0.
NIntegrate@Sin@xD, 8x, , 0<D
NIntegrate@Sin@xD, 8x, 0, <D
2.
2.

Solucin de ecuaciones algebraicas


H Polinomios L
x3 2 x2 + x 5
5 + x 2 x2 + x3
Solve@x3 2 x2 + x 5  0, xD
!!!!!!!!!!!!
2
1 i 133
3 1965 y
j  
z
99x  +  j
 z
3
3 k 2
2
{

13

1 1
!!!!!!!!!!!! 13
+  J  I133 + 3 1965 MN =,
3 2

!!!!!!!!!!!!
2
1
133
3 1965 y
!!!! i
j  
z
9x   I1 +  3 M j
 z
3
6
2
2
k
{
!!!!!!!!!!!!
2
1
133
3 1965 y
!!!! i
j  
z
9x   I1  3 M j
 z
3
6
2
k 2
{

13

1
1
!!!!
!!!!!!!!!!!! 13
 I1  3 M J  I133 + 3 1965 MN =,
6
2

13

1
1
!!!!
!!!!!!!!!!!! 13
 I1 +  3 M J  I133 + 3 1965 MN ==
6
2

IntroMathematicaSec3.nb

H Qu pasa si el polinomio es de orden ms alto? L


Solve@x5 3 x4 + x3 2 x2 + x 5  0, xD
H Solve trata de despejar la variable de forma analtica L
88x Root@5 + #1 2 #12 + #13 3 #14 + #15
8x Root@5 + #1 2 #12 + #13 3 #14 + #15
8x Root@5 + #1 2 #12 + #13 3 #14 + #15
8x Root@5 + #1 2 #12 + #13 3 #14 + #15
8x Root@5 + #1 2 #12 + #13 3 #14 + #15

&,
&,
&,
&,
&,

1D<,
2D<,
3D<,
4D<,
5D<<

NSolve@x5 3 x4 + x3 2 x2 + x 5  0, xD
H NSolve solo se puede usar para polinomios, pero encuentra todas sus raices L
88x 0.662541 0.864945 <, 8x 0.662541 + 0.864945 <,
8x 0.702216 0.974182 <, 8x 0.702216 + 0.974182 <, 8x 2.92065<<
FindRoot@x5 3 x4 + x3 2 x2 + x 5  0, 8x, 3<D
H Encambio, FindRoot resuelve cualquier sistema de ecuaciones,
pero da una solucin, la cual
es dependiente del estimado inicial L
8x 2.92065<
FindRoot@x5 3 x4 + x3 2 x2 + x 5  0, 8x, 0.8649449113914429 <D
8x 0.702216 0.974182 <
FindRoot@8x2 + y2 == 1, y == x Exp@xD<, 8x, .1<, 8y, .5<D
H Tambim puede usarse para sistemas de ecuaciones L
8x 0.513489, y 0.858096<

Graficos

IntroMathematicaSec3.nb

Plot@Sin@xD, 8x, 10, 10<D


Options@PlotD
1

0.5

-10

-5

10

-0.5

-1

 Graphics 
1
9AspectRatio 
 , Axes Automatic, AxesLabel None,
GoldenRatio
AxesOrigin Automatic, AxesStyle Automatic, Background Automatic,
ColorOutput Automatic, Compiled True, DefaultColor Automatic,
DefaultFont  $DefaultFont, DisplayFunction  $DisplayFunction, Epilog 8<,
FormatType  $FormatType, Frame False, FrameLabel None, FrameStyle Automatic,
FrameTicks Automatic, GridLines None, ImageSize Automatic,
MaxBend 10., PlotDivision 30., PlotLabel None, PlotPoints 25,
PlotRange Automatic, PlotRegion Automatic, PlotStyle Automatic,
Prolog 8<, RotateLabel True, TextStyle  $TextStyle, Ticks Automatic=
Plot@Sin@xD, 8x, 10, 10<, PlotRange 8815, 15<, 81.5, 1.5<<, ImageSize 72 7,
PlotStyle 8 RGBColor@0, 0, 1D, Thickness@0.007D, Dashing@80.01, 0.01<D<D
1.5

0.5

-15

-10

-5

-0.5

-1

-1.5

 Graphics 

10

15

IntroMathematicaSec3.nb

Clear@fD
f@x_, y_D := H1 Sin@xDL H2 Cos@2 yDL
Plot3D@f@x, yD, 8x, 2, 2<, 8y, 3, 3<,
DisplayFunction $DisplayFunction, ImageSize 72 7, PlotPoints 50,
Mesh True, FaceGrids All, AxesLabel 8"Length", "Width", "Height"<,
ViewPoint 81.3, 1.4, 1.<, ViewVertical 80., 0, 1.<D

4
Height

2
0
-2
2
-1
0

Width

Length
1
-2

 SurfaceGraphics 

Listas
f = 81, 2, 4, 5.<
ff
Exp@fD
f@@4DD
81, 2, 4, 5.<
81, 4, 16, 25.<
8 , 2 , 4 , 148.413<
5.
Clear@fD
H Generacin de Listas a partir de formulas o funciones L
x = 2.5;
f = Table@8i, Sin@i xD Cos@i xD<HFrmulasL,
8iHContadorL, 1HValor InicialL, 10HValor FinalL, 1HIncrementoL<D
881, 1.39962<, 82, 1.24259<, 83, 0.591365<, 84, 0.29505<, 85, 1.06412<,
86, 1.40998<, 87, 1.19507<, 88, 0.504863<, 89, 0.38613<, 810, 1.12355<<

IntroMathematicaSec3.nb

f@@1, 1DD
f@@2, 2DD
f@@All, 2DD
H Forma de escoger un elemento de una lista L
1
1.24259
81.39962, 1.24259, 0.591365, 0.29505,
1.06412, 1.40998, 1.19507, 0.504863, 0.38613, 1.12355<

Matrices y vectores
Clear@xD;
3x
1 x y
i
j
z
j
z
j
z
3 Sin@xD x2 0 z
j
z
A@x_D := j
;
j
z
j
z
j
z
1
5
+
x


x
k
{
x
A@xD
1
983 x, 1, x <, 83 Sin@xD, x2 , 0<, 95 + x,  , x==
x
B@x_D := Inverse@A@xDD
B@xD
x



x
x3
x
99 





,



 ,
x
3 Sin@xD
3 x Sin@xD
x x2 x x3 + 3 x4 
5 x x2 x x3 + 3 x4 

+
3
x
Sin@xD
5

 + 3 x Sin@xD
x
x

x x2


 =,

3 x Sin@xD
x
2
x
3
4
5 x x + 3 x 
 + 3 x Sin@xD
x
3 x Sin@xD
5 x x x + 3 x2
9 


 , 


 ,
3 x Sin@xD
3 x Sin@xD
x
2
x
3
4
x
2
x
3
5 x x + 3 x 
 + 3 x Sin@xD
5 x x + 3 x4 
 + 3 x Sin@xD
x
x
3 x Sin@xD



 =,
3 x Sin@xD
x
2
x
3
 + 3 x Sin@xD
5 x x + 3 x4 
x
3 Sin@xD
5 x2 x3 

2+x
x
9 

 , 


 ,
x 
3

Sin@xD
3 x Sin@xD
x x2 x x3 + 3 x4 
5 x x2 x x3 + 3 x4 
5


+
3
x
Sin@xD
 + 3 x Sin@xD
x
x

3 x3 + 3 Sin@xD



 ==
3 x Sin@xD
x
2
x
3
5 x x + 3 x4 
 + 3 x Sin@xD
x
Cn@x_D := A@xD.B@xD MatrixForm

IntroMathematicaSec3.nb

Cn@xD
FullSimplify@Cn@xDD
FullSimplify@Det@A@xD.B@xDDD
3 Sin@xD
x I5 x2 x3 
x M
i 
3 x Sin@xD
3 x4
j

 + 

 + 



j
3 x Sin@xD
3 x Sin@xD
3 x Sin@xD
j
5 x x2 x x3 +3 x4 
 +3 x Sin@xD
5 x x2 x x3 +3 x4 
 +3 x Sin@xD
5 x x2 x x3 +3 x4 
 +3 x Sin@x
j
x
x
x
j
j
j
j
j
j
j0
j
j
j
j
j
3 Sin@xD
j
x I5 x2 x3 
x M
j
x3 H5+xL
3 Sin@xD
j
j 

 + 

 + 



3 x Sin@xD
3 x Sin@xD
3 x Sin@xD
x x2 x x3 +3 x4 
x x2 x x3 +3 x4 
x x2 x x3 +3 x4 
5


+3
x
Sin@xD
5


+3
x
Sin@xD
5

x
x
x  +3 x Sin@x
k

1
i
j
j
j
0
j
j
j
k0

0
1
0

0
0
1

y
z
z
z
z
z
z
{

1
v = 83 x, 1, 7<; r = 82, 3, x 1<;
Dot@v, rD
3 + 7 H1 + xL + 6 x
v
dd = v MatrixForm
83 x, 1, 7<
3x
i
j
j
j
1
j
j
j
k7

y
z
z
z
z
z
z
{

v@1D
83 x, 1, 7<@1D
dd@@1, 1DD
3x

You might also like