| > | restart;with(plots):with(plottools):with(linalg); |
Warning, the name changecoords has been redefined
Warning, the assigned name arrow now has a global binding
Warning, the protected names norm and trace have been redefined and unprotected
![]()
![]()
![]()
| > |
Exercice 10
question b)
| > | f:=(x,y)->piecewise(y>=0,exp(x),y<0,exp(x)*cos(y)); |
| > | plot3d(f(x,y),x=-3..1,y=-3..1,axes=normal); |
![[Plot]](images/exo10_6.gif)
| > | F:=proc(t) plot(f(x,tan(t)*x),x=-3..3); end: |
| > | animate(F,[t],t=-1.5..1.5, axes=normal,frames=41); |
![[Plot]](images/exo10_7.gif)
Continiuté en (x,0)
| > | Limit('f'(x,y),y=0)=limit(f(x,y), y=0); |
Première dérivée en en (x,0)
| > |
| > | D_1(f)(x,0),"=",Limit(('f'(x+h,0)-'f'(x,0))/h,h=0)=limit((f(x+h,0)-f(x,0))/h,h=0); |
En effet
| > | Limit(('f'(x+h,0)-'f'(x,0))/h,h=0,right)=limit((f(x+h,0)-f(x,0))/h,h=0,right);Limit(('f'(x+h,0)-'f'(x,0))/h,h=0,left)=limit((f(x+h,0)-f(x,0))/h,h=0,left); |
Exemple en (1,0) dans la direction (Ox)
| > | plot(f(1+t*1,0),t=-1..1); |
![[Plot]](images/exo10_12.gif)
| > |
Deuxième dérivée en en (x,0)
| > |
| > | D_2(f)(x,0),"=",Limit(('f'(x,h)-'f'(x,0))/h,h=0)=limit((f(x,h)-f(x,0))/h,h=0); |
En effet
| > | Limit(('f'(x,h)-'f'(x,0))/h,h=0,right)=limit((f(x,h)-f(x,0))/h,h=0,right);Limit(('f'(x,h)-'f'(x,0))/h,h=0,left)=limit((f(x,h)-f(x,0))/h,h=0,left); |
Exemple en (1,0) dans la direction (Oy)
| > | plot(f(1,t*1),t=-1..1); |
![[Plot]](images/exo10_16.gif)
question c)
| > | f:=(x,y)->piecewise(x=0 and y=0,0,x<>0 or y<>0,(x^3+y^3)/(x^2+y^2)); |
| > | plot3d(f(x,y),x=-3..3,y=-3..3,axes=normal); |
![[Plot]](images/exo10_18.gif)
| > | F:=proc(t) plot(f(x,tan(t)*x),x=-3..3); end: |
| > | animate(F,[t],t=-1.5..1.5, axes=normal,frames=41); |
![[Plot]](images/exo10_19.gif)
Continiuté en (0,0)
| > | Limit('f'(x,y),{x=0,y=0})=limit(f(x,y), {x=0,y=0}); |
Première dérivée en en (0,0)
| > |
| > | D_1(f)(0,0),"=",Limit(('f'(0+h,0)-'f'(x,0))/h,h=0)=limit((f(0+h,0)-f(0,0))/h,h=0); |
En effet en (0,0) dans la direction (Ox)
| > | plot(f(0+t*1,0),t=-1..1); |
![[Plot]](images/exo10_22.gif)
| > |
Deuxième dérivée en en (0,0)
| > |
| > | D_2(f)(0,0),"=",Limit(('f'(0,h)-'f'(0,0))/h,h=0)=limit((f(0,h)-f(0,0))/h,h=0); |
En effet (0,0) dans la direction (Oy)
| > | plot(f(0,t*1),t=-1..1); |
![[Plot]](images/exo10_24.gif)
question d)
| > | f:=(x,y)->piecewise((y^2>=x^2),x^2,(y^2<x^2),y^2); |
| > | plot3d(f(x,y),x=-5..5,y=-5..5,axes=normal); |
![[Plot]](images/exo10_26.gif)
| > | F:=proc(t) plot(f(x,tan(t)*x),x=-3..3); end: |
| > | animate(F,[t],t=-1.5..1.5, axes=normal,frames=41); |
![[Plot]](images/exo10_27.gif)
Continiuté en (x,0)
| > | Limit('f'(x,y),{x=0,y=0})=limit(f(x,y), {x=0,y=0}); |
Première dérivée en en (x,x)
| > |
| > | D_1(f)(x,x),"=",Limit(('f'(x+h,x)-'f'(x,x))/h,h=0)=limit((f(x+h,x)-f(x,x))/h,h=0); |
Or
| > | droite:=limit((f(x+h,x)-f(x,x))/h,h=0,right):gauche:=limit((f(x+h,x)-f(x,x))/h,h=0,left): |
| > | Limit(('f'(x+h,x)-'f'(x,x))/h,h=0,right)=droite;plot(droite,x=-1..1,-1..0.5); |
![[Plot]](images/exo10_31.gif)
| > |
| > | Limit(('f'(x+h,x)-'f'(x,x))/h,h=0,left)=gauche;;plot(gauche,x=-1..1,-0.5..1); |
![[Plot]](images/exo10_33.gif)
Exemple en (1,1) dans la direction (Ox)
| > | plot(f(1+t*1,1),t=-1..1); |
![[Plot]](images/exo10_34.gif)
Il n'y a donc pas de première dérivée en (x,x) sauf en (0,0)
| > |
Deuxième dérivée en en (x,x)
| > |
| > | D_2(f)(x,x),"=",Limit(('f'(x,x+h)-'f'(x,x))/h,h=0)=limit((f(x,x+h)-f(x,x))/h,h=0); |
| > |
Or
| > | droite:=limit((f(x,x+h)-f(x,x))/h,h=0,right):gauche:=limit((f(x,x+h)-f(x,x))/h,h=0,left): |
| > | Limit(('f'(x,x+h)-'f'(x,x))/h,h=0,right)=droite;plot(droite,x=-1..1,-1..0.5); |
![[Plot]](images/exo10_37.gif)
| > |
| > | Limit(('f'(x,x+h)-'f'(x,x))/h,h=0,left)=gauche;;plot(gauche,x=-1..1,-0.5..1); |
![[Plot]](images/exo10_39.gif)
Exemple en (1,1) dans la direction (Oy)
| > | plot(f(1,1+t*1),t=-1..1); |
![[Plot]](images/exo10_40.gif)
Il n'y a donc pas de seconde dérivée en (x,x) sauf en (0,0)
| > |
Première dérivée en en (x,-x)
| > |
| > | D_1(f)(x,-x),"=",Limit(('f'(x+h,-x)-'f'(x,-x))/h,h=0)=limit((f(x+h,-x)-f(x,-x))/h,h=0); |
Or
| > | droite:=limit((f(x+h,-x)-f(x,-x))/h,h=0,right):gauche:=limit((f(x+h,-x)-f(x,-x))/h,h=0,left): |
| > | Limit(('f'(x+h,-x)-'f'(x,-x))/h,h=0,right)=droite;plot(droite,x=-1..1,-1..0.5); |
![[Plot]](images/exo10_43.gif)
| > |
| > | Limit(('f'(x+h,-x)-'f'(x,-x))/h,h=0,left)=gauche;;plot(gauche,x=-1..1,-0.5..1); |
![[Plot]](images/exo10_45.gif)
Exemple en (1,-1) dans la direction (Ox)
| > | plot(f(1+t*1,-1),t=-1..1); |
![[Plot]](images/exo10_46.gif)
Il n'y a donc pas de première dérivée en (x,-x) sauf en (0,0)
| > |
Deuxième dérivée en en (x,-x)
| > |
| > | D_2(f)(x,-x),"=",Limit(('f'(x,-x+h)-'f'(x,-x))/h,h=0)=limit((f(x,-x+h)-f(x,-x))/h,h=0); |
| > |
Or
| > | droite:=limit((f(x,-x+h)-f(x,-x))/h,h=0,right):gauche:=limit((f(x,-x+h)-f(x,-x))/h,h=0,left): |
| > | Limit(('f'(x,-x+h)-'f'(x,-x))/h,h=0,right)=droite;plot(droite,x=-1..1,-1..0.5); |
![[Plot]](images/exo10_49.gif)
| > |
| > | Limit(('f'(x,-x+h)-'f'(x,-x))/h,h=0,left)=gauche;;plot(gauche,x=-1..1,-0.5..1); |
![[Plot]](images/exo10_51.gif)
Exemple en (1-,1) dans la direction (Oy)
| > | plot(f(1,-1+t*1),t=-1..1); |
![[Plot]](images/exo10_52.gif)
Il n'y a donc pas de seconde dérivée en (x,-x) sauf en (0,0)
| > |
| > |
| > |