Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Mathematica cant graph

  1. Apr 4, 2005 #1

    Pengwuino

    User Avatar
    Gold Member

    Ok i got this problem in this file. Can someone help?

    If you dont wanan get the file the problem is basically this.

    Haave an f(x,y) equation. Find both partial derivatives. One graphs correctly, other partial derivative is just a straight line on y=0. Anyone know whats causing this?
     

    Attached Files:

  2. jcsd
  3. Apr 4, 2005 #2

    saltydog

    User Avatar
    Science Advisor
    Homework Helper


    Well, I didn't get the file but how about this:

    1. First calculate the partials manually first and then plot them.

    2. Verify the Mathematica code:

    fpartx[x_,y_]=D[f(x,y),x]
    fparty[x_,y_]=D[f(x,y),y]

    is actually calculating the partials.

    3. Use Plot3D and manually insert the partial directly first, you know, like:

    Plot3D[x^2+y+2 x y,{x,a,b},{y,a,b}] or whatever the partial is.

    4. Use Plot3D[fpartx[x,y],{x,a,b},{y,a,b}]

    gotta work.
     
  4. Apr 4, 2005 #3

    Pengwuino

    User Avatar
    Gold Member

    Plot3D works but the implicitplot doesnt, check it out.

    [​IMG]

    Whats going on :)
     
    Last edited: Apr 4, 2005
  5. Apr 4, 2005 #4

    saltydog

    User Avatar
    Science Advisor
    Homework Helper

    So the partial with respect to y is:

    [tex]f_y=4xy-64y[/tex]

    When you equate that to zero you get x=16. So ImplicitPlot graphs a vertical line at x=16. Extend the PlotRange to see it.
     
  6. Apr 4, 2005 #5

    Pengwuino

    User Avatar
    Gold Member

    Ok ill check it out later, sounds like that might be the problem though!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Mathematica cant graph
Loading...