Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to write a log function that intersects both the x and y axis at 100.

Through trial and error I have come up with this function, which is close to what I want. It appears to intersect the x axis at 99, and the y axis at 100.


I notice that for a function like:


  • A controls the slope
  • B shifts horizontally
  • C shifts vertically

I'd like to learn how to write a log function like this such that the intersections of the axis are whatever arbitrary points I choose.

Thank you!

share|cite|improve this question
up vote 2 down vote accepted

I'm not sure what you mean by $A^*-\log(x+B)+C$ - it's the $^*-$ that puzzles me. I'll assume you just mean $y=A\log(x+B)+C$.

So say you want the graph to intersect the $x$-axis at $r$ and the $y$-axis at $s$. That means you want $s=A\log B+C$ and $0=A\log(r+B)+C$. That's two equations in three unknowns, so there will be lots of solutions. You could even insist on, say, $B=1$. Then the 1st equation tells you $C=s$, and the second becomes $0=A\log(r+1)+s$, which says $A=-s/\log(r+1)$. So as long as $r\ge-1$ one answer to your problem is $y=-{s\over\log(r+1)}\log(x+1)+s$.

share|cite|improve this answer
Thanks Gerry. My first post here so I have a bit to learn about notation and formatting. I have amended my post. Great answer :) – doctororange Mar 22 '12 at 1:46

Your Answer


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.