2

I am very new to mathematica and was wondering how I could 3Dplot -5(x-2)-7y+3(z+4)=0 I've tried 3DPlot and Contour but neither have seemed to work. PLease help.

2 Answers2

2

I'm on 10.0 for Mac OS X x86 (64-bit) (December 4, 2014)

Plotting a Function see Function Visualization,

ContourPlot3D[-5 (x - 2) - 7 y + 3 (z + 4) == 0, {x, -10, 10}, {y, -10, 10}, {z, -10, 10}]

enter image description here

Adding a plan z an y,

cp1 = ContourPlot3D[{-5 (x - 2) - 7 y + 3 (z + 4) == 0, z, y}
, {x, -10, 10}, {y, -10, 10}, {z, -10, 10}
, ContourStyle -> {Red, Blue, Green}]

enter image description here

Solve for Intersections,

Solve[{-5 (x - 2) - 7 y + 3 (z + 4) == 0 && z == 0 && y == 0, z == 0}, {x, y, z}]

{{x->22/5,y->0,z->0}}

And Visualise the whole gang:

Show[cp1, Graphics3D[{White, Sphere[{22/5, 0, 0}]}]]

enter image description here

1

Try the following: first solve with respect to z:

sl = Solve[-5 (x - 2) - 7 y + 3 (z + 4) == 0, z]

(*  {{z -> 1/3 (-22 + 5 x + 7 y)}}  *)

Then plot it in 3D:

Plot3D[sl[[1, 1, 2]], {x, -1, 1}, {y, -1, 1}]

enter image description here

Have fun!

Alexei Boulbitch
  • 39,397
  • 2
  • 47
  • 96