# Figuring out what you have to raise x by to get y on a scientific calculator

**URL:** https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531
**Category:** Factual Questions
**Created:** [October 6, 2013, 9:28pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531 "2013-10-06T21:28:45Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![D18](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@D18](https://boards.straightdope.com/u/D18)
#### Post date: [October 6, 2013, 9:28pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/1 "2013-10-06T21:28:45Z")

</div>

Not homework - trying to figure something out for work. How do I use a scientific calculator to figure out what power I have to raise a number by to get another number? Illustration: say I know that the answer is 256 and I want to know what power of 2 gets me there. Yes, I can work it out to being 2^8, but how do I use a scientific calculator to figure that out for something that isn’t as obvious.

I have a feeling I’m going to do a big :smack: once I know the answer, but there it is! 😉

---

<div class="post-metadata">

### Author: ![Smeghead](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@Smeghead](https://boards.straightdope.com/u/Smeghead)
#### Post date: [October 6, 2013, 9:34pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/2 "2013-10-06T21:34:23Z")

</div>

You just discovered the concept of logarithms.

---

<div class="post-metadata">

### Author: ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)
#### Post date: [October 6, 2013, 9:34pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/3 "2013-10-06T21:34:51Z")

</div>

The [log](http://en.wikipedia.org/wiki/Logarithm) function is what you’re looking for, if your calculator has one.

---

<div class="post-metadata">

### Author: ![Asympotically\_fat](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Asympotically\_fat](https://boards.straightdope.com/u/Asympotically_fat)
#### Post date: [October 6, 2013, 9:35pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/4 "2013-10-06T21:35:40Z")

</div>

If x[sup]y[/sup] = z, then (log z)/(log x) = y is probably what you’re looking for.

---

<div class="post-metadata">

### Author: ![D18](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@D18](https://boards.straightdope.com/u/D18)
#### Post date: [October 6, 2013, 10:08pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/5 "2013-10-06T22:08:25Z")

</div>

Ah yes! It’s only been about 25 years since I thought about logs! Thank you very much. I was trying to use the x root of y key.

---

<div class="post-metadata">

### Author: ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)
#### Post date: [October 6, 2013, 10:44pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/6 "2013-10-06T22:44:36Z")

</div>

Just knowing that it’s a log is the first step, but in practice you also need the formula **Asymptotically fat** gave, since most calculators only have a button for the log base e (generally labeled ln) and base 10 (generally just labeled log). For the log in any other base, you need to use log(z)/log(x) (and it doesn’t matter what base you use for those logs, as long as it’s the same).

---

<div class="post-metadata">

### Author: ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)
#### Post date: [October 6, 2013, 11:00pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/7 "2013-10-06T23:00:20Z")

</div>

> [@Asympotically\_fat](#):
>
> If x[sup]y[/sup] = z, then (log z)/(log x) = y is probably what you’re looking for.

In the interest of completeness, I should add that (ln z)/(ln x) = y would also work.

The derivation, in case you care:  
x[sup]y[/sup] = z  
log (or ln) x[sup]y[/sup] = log (or ln) z  
y log x = log z  
y = (log z)/(log x)

---

<div class="post-metadata">

### Author: ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)
#### Post date: [October 7, 2013, 12:13am UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/8 "2013-10-07T00:13:15Z")

</div>

Not all that useful a derivation, though, because it relies on you knowing that log(x[sup]y[/sup]) = y\*log(x). It’s just replacing one mysterious log identity with a different mysterious log identity.

---

<div class="post-metadata">

### Author: ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)
#### Post date: [October 7, 2013, 9:27am UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/9 "2013-10-07T09:27:43Z")

</div>

> [@Chronos](#):
>
> Not all that useful a derivation, though, because it relies on you knowing that log(x[sup]y[/sup]) = y\*log(x). It’s just replacing one mysterious log identity with a different mysterious log identity.

No, that is the definition of logarithms, not a mysterious log identity.

---

<div class="post-metadata">

### Author: ![bob\_2](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bob_2/32/3341_2.png) [@bob\_2](https://boards.straightdope.com/u/bob_2)
#### Post date: [October 7, 2013, 9:31am UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/10 "2013-10-07T09:31:35Z")

</div>

> [@Hari\_Seldon](#):
>
> No, that is the definition of logarithms, not a mysterious log identity.

The definition of logarithms is “The power to which a base, such as 10, must be raised to produce a given number.”

---

<div class="post-metadata">

### Author: ![eltro102](https://avatars.discourse-cdn.com/v4/letter/e/7cd45c/32.png) [@eltro102](https://boards.straightdope.com/u/eltro102)
#### Post date: [October 7, 2013, 7:27pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/11 "2013-10-07T19:27:58Z")

</div>

your calc might also have a log[sub][/sub] thing which will save you having to type that formula in

---

<div class="post-metadata">

### Author: ![Malacandra](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Malacandra](https://boards.straightdope.com/u/Malacandra)
#### Post date: [October 7, 2013, 7:35pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/12 "2013-10-07T19:35:35Z")

</div>

> [@bob\_2](#):
>
> The definition of logarithms is “The power to which a base, such as 10, must be raised to produce a given number.”

Logarithms are therefore indices, from which we deduce from known laws of indices that log x[sup]y[/sup] = y log x; with numbers expressed in index form, you multiply by adding indices, you raise to powers by multiplying indices.

---

<div class="post-metadata">

### Author: ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)
#### Post date: [October 7, 2013, 7:47pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/13 "2013-10-07T19:47:46Z")

</div>

Does the word “index”, in this context, have any meaning beyond being a synonym for “logarithm”?

---

<div class="post-metadata">

### Author: ![Indistinguishable](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@Indistinguishable](https://boards.straightdope.com/u/Indistinguishable)
#### Post date: [October 7, 2013, 9:18pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/14 "2013-10-07T21:18:37Z")

</div>

> [@bob\_2](#):
>
> The definition of logarithms is “The power to which a base, such as 10, must be raised to produce a given number.”

Well, that’s one way to define logarithms. Of course, different people may phrase their definitions differently, or even use wildly disparate (but, in suitable common contexts, equivalent) definitions. It wouldn’t be wrong to take the property “log(x[sup]y[/sup]) = y log(x)” as one’s definition of a logarithmic function, if one wanted to.

But, anyway, for an audience for whom rules are more familiar when phrased in terms of exponentiation than in terms of logarithms, we might make the observation as follows: recall that (A[sup]B[/sup])[sup]C[/sup] = A[sup]B \* C[/sup]. [If you have C many groups of B many groups of factors of A, it’s as good as having B \* C many groups of factors of A]

Thus, the power to which you must raise A to get a particular value is B times the power to which you must raise A[sup]B[/sup] to get that same value. That is, log[sub]A/sub = log[sub]A[sup]B[/sup]/sub \* B.

So logarithms in any two different bases are the same, except for a multiplicative factor. And what’s the factor? It’s the power to which you have to raise the one base to get the other (i.e., another logarithm).

Thus, we get our change of base formula: If we abbreviate A[sup]B[/sup] as D, so that B = log[sub]A/sub, our last identity becomes log[sub]A/sub = log[sub]D/sub \* log[sub]A/sub, which is equivalent to log[sub]A/sub/log[sub]A/sub = log[sub]D/sub.

[None of this is really any different than our starting observation that (A[sup]B[/sup])[sup]C[/sup] = A[sup]B \* C[/sup]; we’ve just rephrased it in terms of "To which power do I have to raise … to to get …?"s instead of "What do I get when I raise … to the …th power?"s now, just in case you happen to be talking in that manner already.]

---

<div class="post-metadata">

### Author: ![Tim\_R.Mortiss](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/tim_r.mortiss/32/142_2.png) [@Tim\_R.Mortiss](https://boards.straightdope.com/u/Tim_R.Mortiss)
#### Post date: [October 8, 2013, 2:31pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/15 "2013-10-08T14:31:45Z")

</div>

> [@D18](#):
>
> Ah yes! It’s only been about 25 years since I thought about logs! Thank you very much. I was trying to use the x root of y key.

That should work just as well as logarithms, and with far fewer keystrokes. if N = xth root of y, then y to the N would give you x.

---

<div class="post-metadata">

### Author: ![Asympotically\_fat](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Asympotically\_fat](https://boards.straightdope.com/u/Asympotically_fat)
#### Post date: [October 8, 2013, 3:03pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/16 "2013-10-08T15:03:38Z")

</div>

> [@Tim\_R.Mortiss](#):
>
> That should work just as well as logarithms, and with far fewer keystrokes. if N = xth root of y, then y to the N would give you x.

It would use fewer keystrokes, but it would generally give you the wrong answer.

---

<div class="post-metadata">

### Author: ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)
#### Post date: [October 8, 2013, 3:21pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/17 "2013-10-08T15:21:26Z")

</div>

> [@Tim\_R.Mortiss](#):
>
> That should work just as well as logarithms, and with far fewer keystrokes. if N = xth root of y, then y to the N would give you x.

Not for the kind of thing the OP is asking about. For example, you can’t use the “xth root of y” key to solve 4[sup]x[/sup] = 8192. Neither of the given numbers tells you what kind of root the xth root is.

---

<div class="post-metadata">

### Author: ![Malacandra](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Malacandra](https://boards.straightdope.com/u/Malacandra)
#### Post date: [October 8, 2013, 4:46pm UTC](https://boards.straightdope.com/t/figuring-out-what-you-have-to-raise-x-by-to-get-y-on-a-scientific-calculator/670531/18 "2013-10-08T16:46:17Z")

</div>

> [@Chronos](#):
>
> Does the word “index”, in this context, have any meaning beyond being a synonym for “logarithm”?

Technically no, but many people would use whole-number indices and the rules for multiplication, division and raising to powers without either using the word “logarithm” or any awareness that there could be fractional indices or any possible value of _x_ that would allow 10[sup]_x_[/sup] = 3, for instance.

An under-14s (year 9, 8th grade, take your pick) class I was with the other day was happily tackling standard-form representation and the arithmetic of same without logarithms ever getting a mention.
