Plotting contour diagrams? how do i do that?

  • Context: Undergrad 
  • Thread starter Thread starter starsiege
  • Start date Start date
  • Tags Tags
    Diagrams Plotting
Click For Summary

Discussion Overview

The discussion centers around the process of plotting contour diagrams, specifically for functions of two variables such as f(x,y) = x + y and f(x,y) = x^2 - y^2. Participants express confusion about how to begin drawing these plots, how to determine contour lines from given values, and the methods used to visualize these functions.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant expresses confusion about how to start plotting contour diagrams and how to assign values to c in the equation x + y = c.
  • Another participant suggests a basic approach of connecting the dots for plotting but does not elaborate on the method.
  • Several participants discuss the challenge of determining which points to use for drawing separate contour lines and suggest using linear interpolation from a table of values.
  • One participant mentions that the first example results in a straight line and provides a method for finding intercepts to plot it, while another participant corrects the slope interpretation.
  • There is a discussion about the second function, f(x,y) = x^2 - y^2, where one participant describes it as a hyperbola and discusses its properties, including vertices and asymptotes.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method for plotting contour diagrams, and multiple viewpoints on how to approach the problem are presented. Confusion remains regarding the application of the concepts and the interpretation of the functions.

Contextual Notes

Some participants mention the use of graphing calculators and programming to automate the plotting process, indicating that the task may not be straightforward. There are also references to potential misunderstandings about the nature of the functions being plotted.

starsiege
Messages
6
Reaction score
0
im learning about contour diagrams in my calculus text but I am totally confused as to how one should start drawing those plots?

for example f(x,y) = x+y
then its supposed to go like

x+y = c
y = -x +c

^^i can see that the slope is 1
but how do i plot this graph?..im told that i should give values to c and plot it...but I am totally confused as to how i should do that (the answer is there too but i donno how they drew the graph/which method they used to draw it)



also I am totally confused as to how one can draw a contour diagram from the data given in a table

table of values for f(x,y) = X^2 - Y^2

i have attached the table here too


thank you
 

Attachments

  • contour.jpg
    contour.jpg
    5.4 KB · Views: 745
Physics news on Phys.org
Connect the dots.
 
well..my main issue is how to find each separate contour line?

if i were to draw one line which dots/values should i use

:confused:
 
starsiege said:
well..my main issue is how to find each separate contour line?

if i were to draw one line which dots/values should i use

:confused:

Well, your curves are easy. Your first example is a straight line so you can use slope and intercept. Your second example looks like a hyperbolic functions so you could find the asymptotes and the point where it crosses the axis.

In general though it is not much different then plotting any function. Pick some x values, find the corresponding y values and plot. If you can find roots, asymptotes and extreme values that can reduce the number of points you need to find. You could use a graphing calculator if you are having trouble.
 
starsiege said:
well..my main issue is how to find each separate contour line?

if i were to draw one line which dots/values should i use

:confused:
Here is one procedure to find approximate dots from values in a table: Look along
each row and each column in the table to find the "box" through which the contour
might pass. Then do a linear interpolation to find the coordinates. Then connect the dots.

For example, suppose you look for the contour -1 in your table. Looking along the first
row in your table, this contour would have approximate dots at the
coordinates (-2.8, 3.0) and (2.8,3.0). Now do this for every row and
every column, collect the dots and connect them.

Now, write a computer programme to do this automatically and you will see that it is not as easy as the above instructions seem!
 
starsiege said:
im learning about contour diagrams in my calculus text but I am totally confused as to how one should start drawing those plots?

for example f(x,y) = x+y
then its supposed to go like

x+y = c
y = -x +c

^^i can see that the slope is 1
I would hope that you could see the slope was -1!

but how do i plot this graph?..im told that i should give values to c and plot it...but I am totally confused as to how i should do that (the answer is there too but i donno how they drew the graph/which method they used to draw it)
Surely, if you are looking at functions of more than 1 variable, you learned long ago that the graph of y= -x+ c is a straight line! You only need two points to determine a straight line. when x= 0, y= c and when y= 0, x= c. Draw the straight line through the intercepts (0, c) and (c, 0). Do that for several different values of c.

also I am totally confused as to how one can draw a contour diagram from the data given in a table

table of values for f(x,y) = X^2 - Y^2

i have attached the table here too


thank you
Why make a table? That's what you do with functions you've never seen before! That's what a calculator does! You are supposed to be smarter than a calculator.

For any c, f(x,y)= c is x2- y2= c. You should recognise immediately that that is a hyperbola. If c is positive, the vertices are at [itex](\sqrt{c}, 0)[/itex] and [itex](-\sqrt{c},0)[/itex] and the asymptotes are the lines [itex]y= x+ \sqrt{c}[/itex] and [itex]y= -x+ \sqrt{c}[/itex]. If c is negative, the vertices are at [itex](0, \sqrt{c})[/itex] and [itex](0, -\sqrt{c})[/itex] and the same asymptotes as above. If c= 0, the asymptotes are the graph. It should take you about 3 minutes to draw several of those contours.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 19 ·
Replies
19
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 8 ·
Replies
8
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K