How to plot this in maple?

55 Views Asked by At

Consider this function: $f(x,y)=xy$ . How to plot the contour of this function and $x^2+y^2=1$ in a plane. I'm not familiar with maple coding but I need the code or at least some instructions on how to do it.

1

There are 1 best solutions below

0
On BEST ANSWER

It's clear to me what you mean.

with(plots): with(plottools,circle):

Perhaps something like this?

display(contourplot(x*y, x=-1..1, y=-1..1,
                    contours=21, grid=[101,101],
                    coloring=["SteelBlue","Gold"],
                    filledregions=true),
        circle([0,0], 1, thickness=2),
        axes=box, scaling=constrained);

enter image description here

Or perhaps like this?

display(contourplot(x*y, x=-1..1, y=-sqrt(1-x^2)..sqrt(1-x^2),
                    contours=21, grid=[151,101],
                    coloring=["SteelBlue","Gold"],
                    filledregions=true),
        circle([0,0], 1, thickness=2));

enter image description here

Of course, you can change various options to adjust the shading, resolution, ranges, etc. See the Help page for topic, plot,options which is also available in your Maple itself.