0
$\begingroup$

This question already has an answer here:

Let $f(x,y) = \frac{x^2}{2}+\frac{y^2}{2}$ and $M:=\{(x,y)\in\mathbb R^2 | \frac{x^2}{2}+y^2\leq1\}$

I'd like to plot $f, M$ and the points $p_1=(0,0,1), \ p_2=(\sqrt{2},0,1), \ p_3=(-\sqrt{2},0,1)$

What I got:

u1 = Plot3D[x^2/2 + y^2/2, {x, -2, 2}, {y, -2, 2}]
u2 = RegionPlot3D[x^2/2 + y^2/2 <= 1, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]
Show[u1,u2]

I read a bit in the docs and that I can use Point[] for it. But I just can't figure out how this works. Also, I'd like to make them very bright. Any help is appreciated.

$\endgroup$

marked as duplicate by Kuba, Sascha, corey979, Feyre, MarcoB Jan 19 '17 at 14:41

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • $\begingroup$ Graphics3D + Point $\endgroup$ – Kuba Jan 19 '17 at 9:53
  • $\begingroup$ @Kuba epilog is for 2d only. $\endgroup$ – Feyre Jan 19 '17 at 9:55
  • $\begingroup$ @Feyre right, I was too hasty. $\endgroup$ – Kuba Jan 19 '17 at 9:56
  • $\begingroup$ hmm then I'd have been on the right track, since I tried that. I'll try it again. $\endgroup$ – xotix Jan 19 '17 at 9:57
  • $\begingroup$ Use something like Show[Plot3D[(* stuff *)], RegionPlot3D[(* stuff *)], Graphics3D[{Green, Point[(* stuff *)]}]] $\endgroup$ – J. M. is away Jan 19 '17 at 9:57

Browse other questions tagged or ask your own question.