You are on page 1of 8

OPGAVE 5.

1 b)

Funktionen f
f:=(x,y)->(4*x*y-3*y^2);
f := proc (x, y) options operator, arrow; 4*x*y-3*y^2 end proc
Et 3dplot af f:
plot3d(f(x,y),x=-15..15,y=-15..15, axes=boxed);

Et plot af uligheden 4xy-3y^2 >= 0:


plots[implicitplot](4*x*y-3*y^2>=0, x=-5..5, y=-5..5);
4

y
2

0 2 4
x

f2t3:=plottools[transform]((x,y)->[x,y,0]):
De to samlet i et enkelt 3dplot:
plots[display](plot3d(f(x,y),x=-5..5,y=-5..5, axes=boxed),
f2t3(plots[implicitplot](4*x*y-3*y^2>=0, x=-5..5, y=-5..5)));
OPGAVE 5.2 b)

Funktionen f
f:=x->x^4+6*x^2+1;
f := proc (x) options operator, arrow; x^4+6*x^2+1 end proc
Taylorpolynomiet T_1(f)
g:=mtaylor(f(x), x=1,2);
g := -8+16*x
Taylorpolynomiet T_2(f)
h:=mtaylor(f(x),x=1,3);
h := -8+16*x+12*(x-1)^2
Taylorpolynomiet T_3(f)
i:=mtaylor(f(x),x=1,4);
i := -8+16*x+12*(x-1)^2+4*(x-1)^3
De 4 funktioner samlet i et enkelt plot:
plot([f(x),g,h,i],x=-3..3,color=[black, red, green, magenta],
thickness=[1,1,1,1]);
100

50

0 1 2 3
x

OPGAVE 5.3 a)

f:=x->ln(x);
f := proc (x) options operator, arrow; ln(x) end proc
g:=mtaylor(f(x),x=1,10);
g := x-1-(1/2)*(x-1)^2+(1/3)*(x-1)^3-(1/4)*(x-1)^4+(1/5)*(x-1)^5
-(1/6)*(x-1)^6+(1/7)*(x-1)^7-(1/8)*(x-1)^8+(1/9)*(x-1)^9
h:=mtaylor(f(x),x=1,100):
plot([f(x),g,h],x=-10..10, y=-10..10,color=[black, red, green],
thickness=[1,1,1]);
10

y 5

0 5 10
x

OPGAVE 5.3 b)
i:=mtaylor(f(x),x=2,100):
plot(i, x=-10..10, y=-10..10);
10

y 5

0 5 10
x

j:=mtaylor(f(x),x=1.95,100):
plot(j, x=-10..10, y=-10..10);
10

y 5

0 5 10
x

k:=mtaylor(f(x),x=2.05,100):
plot(k, x=-10..10, y=-10..10);
10

y 5

0 5 10
x

You might also like