43
$\begingroup$

If you enter the following into Wolfram | Alpha, you get nice graphs:

graph 4 x^4 + y^2 = 2 

enter image description here

How do you do this in Mathmatica? I realize that these are not functions, because the graphs do not pass the straight line test. But what does Wolfram Alpha do to put these things into something that Mathematica can understand?

$\endgroup$
2
  • 5
    $\begingroup$ Welcome, Rollie, to Mathematica SE. Please don't be put off by the down votes you received. I realize that you just joined the web site today. When you examine the posted questions, you'll quickly get a sense of the sorts of issues typically raised. Generally speaking, you'll be expected to post a question that you have researched about on this site and in the Mathematica documentation. Furthermore, it's a good idea to show what you've already tried (including Mathematica code) and the results you got. $\endgroup$
    – DavidC
    Commented Oct 24, 2013 at 13:50
  • $\begingroup$ There's a great example here: forums.wolfram.com/mathgroup/archive/2008/May/msg00021.html $\endgroup$ Commented Apr 23, 2018 at 17:48

3 Answers 3

46
$\begingroup$

In v8, you can type input

= graph 4 x^4 + y^2 = 2

The first equal sign tells Mathematica to query WolframAlpha. The result is the command

ContourPlot[4*x^4 + y^2 == 2, {x, -1.1, 1.1}, {y, -1.8, 1.8}]

followed by the plot.

$\endgroup$
2
  • 7
    $\begingroup$ This answer is especially useful in pointing to how one can get WolframAlpha to show the corresponding Mathematica input. $\endgroup$
    – murray
    Commented Mar 17, 2014 at 22:01
  • 1
    $\begingroup$ In recent years, Wolfram|Alpha will have a "Show Code" option under many of its outputs. $\endgroup$
    – Max Coplan
    Commented Apr 23, 2018 at 19:10
28
$\begingroup$

The forms you wish to plot are called implicit equations. Type "implicit equation" into the search input field of the Mathematica Documentation Center. The second hit will be ContourPlot. On that documentation page, under Applications, you will find the following, which tells you everything you need to know about making the kind of plots you want.

ContourPlot.png

$\endgroup$
5
$\begingroup$

I had a similar cuestion so I am going to post my cuestion and the answer that I got to complete this post. Here is the link Projection on the xy–plane of the curve of intersection of both surfaces

Quiestion

REspuesta

$\endgroup$
1
  • $\begingroup$ a) attribution to the author would be on point. b) as well as a copyable code. c) wouldn't it be better to give an example using the equation from this question? $\endgroup$
    – Kuba
    Commented Apr 23, 2018 at 19:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.