Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I've using Google search engine graphing tool for a while, but now I'm trying to plot a logarithm function like :$\log_2(x + 1) + 2$

How to pass this notation for the graphing tool ? Thanks

share|improve this question

2 Answers 2

Use the change of base formula:

$$ \log_b(a)=\frac{\log_c(a)}{\log_c(b)} $$

So for you example, you would do:

$$ \frac{\ln(x+1)}{\ln(2)}+2 $$

share|improve this answer

Just Google for lg(x+1) + 2. Here “lg” is the standard notation in computer science for a base-two logarithm.

If you didn’t know that, you could have got the same graph by typing log(x+1)/log(2) + 2, making use of the fact that $\log_k(x) = \log_n(x)/\log_n(k)$ for any base $n$.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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