Sei sulla pagina 1di 7

ROTACIONAL Y DIVERGENCIA

1. Campos escalares:
1.1. Calcular el gradiente de los siguientes campos y graficar el gradiente y los campos de
cada punto.
a.
𝑠=9− x2 − y 2
∂s ∂s
∇s = ∂x i + ∂y j
∇s =(-2x) i +(-2y) j

b​.
2 2
v = xe −x −y
∇v = ∂v ∂x i +
∂v
∂y j
−x 2 −y 2 2
−y 2 2
−y 2
∇v = (e − 2x 2 e −x ) i + 2 xye −x j
2 2 2 2
∇v = e −x −y
(1 − 2x 2 ) i + 2 xye −x −y
j
c.
f = x2 y + ex+y z

∂f ∂f ∂f
∇f = ∂x i + ∂y j+ ∂z k

∇f = (2xy + ex+y z)i + (x2 + ex+y z)j + (ex+y )k

2. Campos Vectoriales

2.1 Calcular la divergencia de cada campo manualmente y comprobar en Matlab.

a.

V = xy i + z y j − z x 2 k

∇·v = ∂
∂x (xy i + z y j − z x 2 k) + ∂
∂y (xy i + z y j − z x 2 k) + ∂
∂z (xy i + z y j − z x 2 k)

∇ · v = ( xy 2 + z y 2 + x2 yz − 2zyx2 − 2z 2 yx + 2z 2 x3 ) + (zxy + z 2 y -
z 2 x2 + x2 y + z xy − z x3 ) + (xy 2 + z y 2 − z yx2 − x3 y - x2 zy + z x4 )

∇ · v = 2xy 2 + 2zy 2 − 3x2 yz − 2z 2 yx + 2z 2 x3 + 2zyx + z 2 y -


z 2 x2 + x2 y − z x3 − x3 y + z x4
*Comprobación en Matlab:

b.​ u = xcos(y)i + xy 2 j


∇·u = ∂x (xcos(y)i + xy 2 j) + ∂
∂y (xcos(y)i + xy 2 j)

∇ · u = (xCos 2 (y) + xy 2 Cos(y) + xy 2 Cos(y) + xy 4 ) +(-2 x2 y Cos(y)-2


x2 y 3 − x2 Sen(y)Cos(y) − x2 y 2 Sen(y))

∇ · u = 2xy 2 Cos(y) + xCos2 (y) + xy 4 − 2x2 yCos(y) − 2x2 y 3 − x2 Sen(y)Cos(y)


− x2 y 2 Sen(y)

*Comprobación en Matlab:

c.

x y z
t= 1+x +y 2 +z 2
2 i + 1+x +y 2 +z 2
2 j + 1+x 2 +y 2 +z 2
k

∂ x ∂ y ∂ z
∇·t = ∂x ( 1+x 2 +y 2 +z 2 ) + ∂y ( 1+x 2 +y 2 +z 2 ) + ∂z ( 1+x 2 +y 2 +z 2 )

1−x 2 +y 2 +z 2 1+x 2 −y 2 +z 2 1+x 2 +y 2 −z 2


∇·t= (1+x 2 +y 2 +z 2 ) 2
+ (1+x 2 +y 2 +z 2 ) 2
+ (1+x 2 +y 2 +z 2 ) 2

3+x 2 +y 2 +z 2
∇·t= (1+x 2 +y 2 +z 2 ) 2
*Comprobación en Matlab:

−y x
d.​ d =
1+x2 +y 2
+ 1+x2 +y 2
+0

∂ −y ∂
∇ · d = ∂x ( 1+x2 +y2 ) + ∂y ( 1+xx2 +y2 ) + ∂z

0

2yx 2xy
∇·d = − +0
(1+x2 +y 2 )2 (1+x2 +y 2 )2

*Comprobación en Matlab:

2.2 Calcular el rotacional de cada campo manualmente y comprobar en Matlab.

a.
V = xy i + z y j − z x 2 k
∂f 3 ∂f 2 ∂f 3 ∂f 1 ∂f 2 ∂f 1
∇×V =( ∂y − ∂z ) i+( ∂x − ∂z ) j +( ∂x − ∂y ) k
∇ × V = (( − z yx + z x4 )-( z y + z yx )) i +(( − z yx + z x 4 )-( y 2 x − 2zyx2 )) j +...
2 2 2

+(( z 2 y + z yx )-( y 2 x − 2zyx2 )) k

*Comprobación en Matlab:
b.
u = xcos(y)i + xy 2 j
0 ∂f 2 0 ∂f 1 ∂f 2 ∂f 1
∇ × U = ( ∂y − 0 ) i + ( ∂x − 0 ) j +( ∂x − ∂y ) k
2 3
∇ × U = (2 x y + 2x2 y 2 Sen(y) ) i +(- xCos2 (y) − y 2 xCos2 (y) ) j +...
3
+((-2 x 2 y − 2x2 y 2 Sen(y) )-( xCos2 (y) + y 2 xCos2 (y) )) k

*Comprobación en Matlab:

c.

x y z
t= 1+x 2 +y 2 +z 2
i + 1+x 2 +y 2 +z 2
j + 1+x 2 +y 2 +z 2
k

donde:

x y x
f 1 = 1+x +y 2 +z 2
2 , f 2 = 1+x +y 2 +z 2
2 , f 3 = 1+x 2 +y 2 +z 2
∂f 3 ∂f 2 ∂f 3 ∂f 1 ∂f 2 ∂f 1
∇×t=( ∂y − ∂z ) i+( ∂x − ∂z ) j +( ∂x − ∂y ) k

∂f 3 ∂f 2 ∂f 3 ∂f 1 ∂f 2 ∂f 1
∇×t=( ∂y − ∂z ) i+( ∂x − ∂z ) j +( ∂x − ∂y ) k

2yz 2yz 2xz 2xz


∇ × t = (− 2 2
(1+x +y +z ) 2 2 − (−
(1+x +y 2 +z 2 ) 2
2 )) i + (− (1+x 2 +y 2 +z 2 ) 2
− (− (1+x 2 +y 2 +z 2 ) 2
)) j + ...
2xy 2xy
+ ... + (− (1+x 2 +y 2 +z 2 ) 2
− (− (1+x 2 +y 2 +z 2 ) 2 )) k

∇×t=0i+0j +0k

*Comprobación en Matlab:

−y x
d.​ d =
1+x2 +y 2
+ 1+x2 +y 2
+0

∂f 3 ∂f 2 ∂f 3 ∂f 1 ∂f 2 ∂f 1
∇×d=( ∂y − ∂z ) i+( ∂x − ∂z ) j +( ∂x − ∂y ) k

2
∇ × d = 0i + 0j + (1+x2 +y 2 )2
k

*Comprobación en Matlab:
2.3 Graficar los campos y rotacionales en Matlab.

Potrebbero piacerti anche