0

I want to plot the implicit function $y=\log_2(1+x\,y)$ as a function of $x$.

I tried with ContourPlot and NSolve, but I'm getting a lot of errors.

m_goldberg
  • 107,779
  • 16
  • 103
  • 257

3 Answers3

1

Something like this?

f[x_, y_] := y - Log2[1 + x*y];

ContourPlot[f[x, y] == 0, {x, 0, 5}, {y, 0, 5}, ColorFunction -> Hue]
zhk
  • 11,939
  • 1
  • 22
  • 38
1

The straightforward approach works for me.

 ContourPlot[y == Log2[1 + x y], {x, 1, 100}, {y, 1, 10}]

plot

m_goldberg
  • 107,779
  • 16
  • 103
  • 257
1

Just to complete, solve the equation with respect to x, yeilding x=(2^y-1)/yand then use the parametric plot:

ParametricPlot[{(-1 + 2^y)/y, y}, {y, 0.1, 10}, AspectRatio -> 0.7]

enter image description here

Have fun!

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