I have the function: x*(1+y)*(z-1)+(1-x)*(1+y),{x, 0, 1}, {y, 0, 2}, {z, 1, 2.5}
By plotting
ContourPlot[x(z-1)+(1-x),{x, 0, 1}, {z, 1, 2.5}]
Seems z limits gain of x when z<2
I tried to overlay the graphs to find when do the gain of y covers z by
p1=Plot3D[x(1+y)+(1-x)(1+y), {x, 0, 1}, {y, 0, 2}]
p2=Plot3D[x(z-1)+(1-x),{x, 0, 1}, {z, 1, 2.5}]
Show[p1,p2,PlotRange->All]
However they didn't show intersections, is there any way plotting the original function? Or other way to find y value for max output at certain z range?
Thank you!