You are on page 1of 5

(%i3) load(draw)$load(vect)$

set_draw_defaults(
dimensions=[400,400],
proportional_axes=xyz,

/*configuraodevrctores*/
head_length=.5,
head_angle=15,/*emgraus*/
/*fimconfigvec*/

user_preamble="setstylefilltransparentsolid0.6",
colorbox=false,
enhanced3d=true
)$

;; loading \#P"Z:/Users/fsmoreir/maxima/binary/5\_37\_3/sbcl/1\_3\_1/share/draw/grcommon.fasl"

;; loading \#P"Z:/Users/fsmoreir/maxima/binary/5\_37\_3/sbcl/1\_3\_1/share/draw/gnuplot.fasl"

;; loading \#P"Z:/Users/fsmoreir/maxima/binary/5\_37\_3/sbcl/1\_3\_1/share/draw/vtk.fasl"

;; loading \#P"Z:/Users/fsmoreir/maxima/binary/5\_37\_3/sbcl/1\_3\_1/share/draw/picture.fasl"

1Derivadasparciais

paraseobterderivadasparciaisutilizaseocommandodiff

(%i4) f(x,y):=x^4*y^4

4 4
(%o4) f (x, y) := x y

(%i5) diff(f(x,y),x,1)

3 4
(%o5) 4 x y

(%i6) 'diff(f(x,y),x,1)=diff(f(x,y),x,1)

d 4 4 3 4
(%o6) (x y ) = 4 x y
dx

(%i7) diff(f(x,y),y,2)

4 2
(%o7) 12 x y

(%i8) diff(f(x,y),y,2,x,3)
2
(%o8) 288 x y

(%i9) diff(f(x,y),y,2,x,3,y,1)

(%o9) 576 x y

(%i10) diff(f(x,y),x,1,y,1)
3 3
(%o10) 16 x y

(%i11) diff(f(x,y),y,1,x,1)

3 3
(%o11) 16 x y

Podemosdefinirogradiente:

(%i12) define(gradiente(x,y),[diff(f(x,y),x),diff(f(x,y),y)])

3 4 4 3
gradiente ( , ) := [4 ,4 ]
3 4 4 3
(%o12) gradiente (x, y) := [4 x y ,4 x y ]

(%i13) g(x,y,z):=x^2+y^2+z^2

2 2 2
(%o13) g (x, y, z) := x + y + z

(%i14) define(gradiente(x,y,z),[diff(g(x,y,z),x),diff(g(x,y,z),y),diff(g(x,y,z),z)])

(%o14) gradiente (x, y, z) := [2 x, 2 y, 2 z]

2Planotangenteaumasuperfcie

SejaSaesferaquedefinidapelaequaox^2+y^2+z^2=3vamoscalcularoplanoTtangenteaSnoponto(1,1,1).

(%i15) P:[1,1,1]

(%o15) [1, 1, 1]

Umvectornormal(nonecessariamenteunitrio)emPdadopelogradiente.

(%i16) W:gradiente(1,1,1)

(%o16) [2, 2, 2]

OplanotangenteaTdadopelospontos[u,v,w]

(%i17) ([u,v,w]P).W=0

(%o17) 2 (w 1) + 2 (v 1) + 2 (u 1) = 0

(%i18) expand(%)

(%o18) 2 w + 2 v + 2 u 6 = 0

(%i19) wxdraw3d(
implicit(x^2+y^2+z^2=3,x,sqrt(3),sqrt(3),y,sqrt(3),sqrt(3),z,sqrt(3),sqrt(3))
)$

(%t19)

(%i20) wxdraw3d(
implicit(x^2+y^2+z^2=3,x,sqrt(3),sqrt(3),y,sqrt(3),sqrt(3),z,sqrt(3),sqrt(3)),
implicit(2*w+2*v+2*u6=0,u,3,3,v,3,3,w,3,3)

)$

(%t20)
(%t20)

(%i21) wxdraw3d(

/*configuraodeeixosalternativos*/
xtics=false,ytics=false,ztics=false,axis_3d=false,
vector([0,0,0],[5,0,0]),label(["x",5.5,0,0]),
vector([0,0,0],[0,5,0]),label(["y",0,5.5,0]),
vector([0,0,0],[0,0,5]),label(["z",0,0,5.5]),
/*FIMconfiguraodeeixosalternativos*/

colorbox=false,
implicit(x^2+y^2+z^2=3,x,sqrt(3),sqrt(3),y,sqrt(3),sqrt(3),z,sqrt(3),sqrt(3)),
implicit(2*w+2*v+2*u6=0,u,3,3,v,3,3,w,3,3)

)$

(%t21)

(%i5) wxdraw3d(

/*configuraodeeixosalternativos*/
xtics=false,ytics=false,ztics=false,axis_3d=false,
vector([0,0,0],[5,0,0]),label(["x",5.5,0,0]),
vector([0,0,0],[0,5,0]),label(["y",0,5.5,0]),
vector([0,0,0],[0,0,5]),label(["z",0,0,5.5]),
/*FIMconfiguraodeeixosalternativos*/

colorbox=false,
implicit(x^2+y^2+z^2=3,x,sqrt(3),sqrt(3),y,sqrt(3),sqrt(3),z,sqrt(3),sqrt(3)),
explicit(u+v3,u,3,3,v,3,3)

)$
2.1Integraismltiplos

(%i23) f(x,y):=x^33*x*y
3
(%o23) f (x, y) := x 3 x y

(%i24) 'integrate('integrate(f(x,y),y),x)=integrate(integrate(f(x,y),y),x)

4 2 2
3
x y 3 x y
(%o24) x 3 x ydydx =
4 4

(%i25) 'integrate('integrate(f(x,y),x),y)=integrate(integrate(f(x,y),x),y)

4 2 2
3
x y 3 x y
(%o25) x 3 x ydxdy =
4 4

(%i26) 'integrate('integrate(f(x,y),y,x^1/2,2x),x,0,1)=integrate(integrate(f(x,y),y,x^1/2,2x),x,0,1)

1 2x
3
173
(%o26) x 3 x ydydx =
0
x
160
2

(%i27) 'integrate('integrate('integrate(x^2*y*z,z,0,x+y),y,0,x),x,0,1)=
integrate(integrate(integrate(x^2*y*z,z,0,x+y),y,0,x),x,0,1)

1 x y+x
2
1
(%o27) x y zdzdydx =
0 0 0
168

(%i28) '((integrate(integrate(integrate(x^2*y*z,z,0,x+y),y,0,x),x,0,1)))=
integrate(integrate(integrate(x^2*y*z,z,0,x+y),y,0,x),x,0,1)

1 x y+x
2
1
(%o28) x y zdzdydx =
0 0 0
168

Mudanadevarivelx=u^3v^4ey=5uv.

(%i29) f(x,y):=x+y

(%o29) f (x, y) := x + y

(%i30) [x,y]:[u^3v^4,5*u*v]

3 4
(%o30) [u v , 5 u v]

(%i31) J:jacobian([x,y],[u,v])

2 3
3 u 4 v
(%o31) ( )
5 v 5 u

(%i32) J:determinant(J)

4 3
(%o32) 20 v + 15 u

(%i33) '(integrate(integrate(f(x,y)*J,u,1,2),v,3,4))=
integrate(integrate(f(x,y)*J,u,1,2),v,3,4)

4 2
113349305
(%o33) f (x, y) J dudv =
3 1
252

dxdy=Jdudv

2.2Polinmiodetaylor
(%i34) kill(all)

(%o0) done

(%i1) taylor(sin(x),x,a,6)

2 3 4 5
sin (a) (x a) cos (a) (x a) sin (a) (x a) cos (a) (x a)
(%o1)/T/ sin (a) + cos (a) (x a) + +
2 6 24 120

(%i2) f(x,y):=sin(x*y)

(%o2) f (x, y) := sin (x y)

ObservarnaanimaoseguintecomoopolinmiodeTaylordeorden`n`,naorigem,aproximasin(x)

(%i4) with_slider_draw(
n,makelist(n,n,1,20),
dimensions=[600,300],
line_width=2,
yrange=[4,4],
proportional_axes=xy,
explicit(sin(x),x,5*%pi,5*%pi),
color=red,
explicit(taylor(sin(x),x,0,n),x,5*%pi,5*%pi),
label([sconcat("n=",n),10,3])
)

(%t4)

(%o4)

>

CreatedwithwxMaxima.

You might also like