I am attempting to graph a logarithmic function using the following code;

Plot[{Log[1/(2-e^(-2 x))^.5]},{x,-6,6}]

however, I am getting only axis with no displayed graph. Thank you in advance to anyone who can help!

I have also tried

f[x_]=Log[1/(2-e^(-2x))^.5]
Plot[{f[x]},{x,-6,6}]

The domain [-6,6] was a random selection with no particular significance.

Thank you for your time.

closed as off-topic by Henrik Schumacher, Bob Hanlon, Jason B., m_goldberg, Chris K Oct 11 at 22:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Henrik Schumacher, Bob Hanlon, Jason B., m_goldberg, Chris K
If this question can be reworded to fit the rules in the help center, please edit the question.

The problem is with the way you wrote the Euler constant. Most builtin functions and variables in Mathematica are capitalized, so it should be E, not e. When Mathematica sees the lower case e it just seems like an undefined variable and switches to symbolic computation, which doesn't return a number so there is nothing to plot, hence the empty graph. So writing

Plot[{Log[1/(2 - E^(-2 x))^.5]}, {x, -6, 6}]

should solve your problem

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