Prof. Vladimir Dobrushkin
Department of Mathematics
TO SYLLABUS
TO GRADING
TO SOFT
TO BOOKS
TO QUIZZES
 

MTH243 (Calculus for Functions of Several Variables)
SAGE. Chapter 12:
Functions of Several Variables

Vladimir A. Dobrushkin,Lippitt Hall 202C, 874-5095,dobrush@uri.edu

In this course we will use Sage computer algebra system (CAS), which is a free software. The Sage projects are created to help you learn new concepts. Sage is very useful in visualizing graphs and surfaces in three dimensions. Matlab (commercial software) is also available at engineeering labs. Its free version is called Octave. The university has a license for computer algebra system Mathematica, so it is free to use for its students. A student can also use free CASs: SymPy (based on Python), or Maxima.

 

Section 12.4. Linear Functions

We start with plotting linear functions.
figure
pointA = [0,0,0];
pointB = [-10,-20,10];
pointC = [10,20,10];
plane1 = cross(pointA-pointB, pointA-pointC);
points=[pointA' pointB' pointC']; 
fill3(points(1,:),points(2,:),points(3,:),'r')
grid on
alpha(0.4)
title('12.78 PLANE') 
ContourPlot3D[x + y + z == 0, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}, ContourStyle -> Green]
ContourPlot3D[x + y + z == 1, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}]
a = .5; b = .5; c = .5; d = 2;
ContourPlot3D[ a*x + b*y + c*z == d, {x, -3, 3}, {y, -3, 3}, {z, -2, 2}, ColorFunction -> Hue]
ContourPlot3D[x + y + z == 1, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, MeshShading -> {Red, Blue, White}, MeshFunctions -> {Norm[{#1, #2}] & }]
a = .5; b = .5; c = .5; d = 2; ContourPlot3D[ a*x + b*y + c*z == d, {x, -3, 3}, {y, -3, 3}, {z, -2, 2}, ColorFunction -> Hue]
a = .5; b = .5; c = .5; d = 2; ContourPlot3D[ a*x + b*y + c*z == d, {x, -3, 3}, {y, -3, 3}, {z, -2, 2}, ContourStyle -> Blue]
Now we plot three planes:
ContourPlot3D[x + y + z, {x, 0, 1}, {y, 0, 1}, {z, 0, 1}]