SOLUTION: make n the subject if :s=a(1-r)^n/1-r

Algebra ->  Equations -> SOLUTION: make n the subject if :s=a(1-r)^n/1-r       Log On


   



Question 1210706: make n the subject if :s=a(1-r)^n/1-r

Found 4 solutions by Edwin McCravy, ikleyn, math_tutor2020, mccravyedwin:
Answer by Edwin McCravy(20089) About Me  (Show Source):
You can put this solution on YOUR website!
I had this wrong before, but Ikleyn pointed it out. So rather that leave
a wrong answer posted, I thought it would be better to correct it.

I'll bet you didn't mean this;
cross%28s=a%281-r%29%5En%2F1%5E%22%22-r%29

I'll bet you meant this

s%22%22=%22%22a%281-r%29%5En%2F%281-r%5E%22%22%29

Nobody teaching algebra would intentionally put 1 as a denominator under a term
except in the most basic math problems.  Notice that the denominator on the
right is actually the same as (1-r) raised to the 1 power

s%22%22=%22%22a%281-r%29%5En%2F%281-r%29%5E1

So we can simply subtract the exponents of (1-r)

s%22%22=%22%22a%281-r%29%5E%28n-1%29

Take the natural logarithm of both sides:

ln%28s%29%22%22=%22%22ln%28+a%281-r%29%5E%28n-1%29+%29

Use rules for natural logs of a product on the right side;

ln%28s%29%22%22=%22%22ln%28a%29%2Bln%28%281-r%29%5E%28n-1%29%29

Use the rule for the natural log of a power on the last term.

ln%28s%29%22%22=%22%22ln%28a%29%2B%28n-1%29ln%281-r%29

ln%28s%29-ln%28a%29%22%22=%22%22%28n-1%29ln%281-r%29

Use the distributive law on the right side. 

ln%28s%29-ln%28a%29%22%22=%22%22n%2Aln%281-r%29-ln%281-r%29

Isolate the only term containing n

ln%28s%29-ln%28a%29%2Bln%281-r%29%22%22=%22%22n%2Aln%281-r%29

Divide both sides of the equation by ln(1-r)

%28ln%28s%29-ln%28a%29%2Bln%281-r%29%29%2Fln%281-r%29%22%22=%22%22%28n%2Across%28ln%281-r%29%29%29%2Fcross%28ln%281-r%29%29

Isolate the term that contains n

%28ln%28s%29-ln%28a%29%2Bln%281-r%29%29%2Fln%281-r%29%22%22=%22%22n

Swap sides:

n%22%22=%22%22%28ln%28s%29-ln%28a%29%2Bln%281-r%29%29%2Fln%281-r%29

That is a correct and legitimate answer, but there are other
correct forms it could be changed to.

Edwin

Answer by ikleyn(54017) About Me  (Show Source):
You can put this solution on YOUR website!
.
make n the subject if :s=a(1-r)^n/1-r
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


The original formula is 

    s = %28a%2A%281-r%29%5En%29%2F%281-r%29.     (1)


In this formula, r must be different from 1 due to the Mathematical grammar rules; so, we accept this.


If so, we can reduce the factor (1-r) in the numerator and the denominator. We get then

    s = a%2A%281-r%29%5E%28n-1%29.    (2)


Next, we assume that a =/= 0.  

    (If a = 0, then s = 0, and 'n' can be any value; as such, it can not be determined from the formula).


Under this assumption, we can divide both sides of formula (2) by 'a'.  We get then

    s%2Fa = %281-r%29%5E%28n-1%29.     (3)


Now, the next natural assumption is that r < 1 and s%2Fa > 0 

    (i.e., the ratio s/a is positive, or, in other words, real numbers 'a' and 's' are of the same sign).


Then we can safely take the logarithm of both sides in formula (3)

    ln%28s%2Fa%29 = (n-1)*ln(1-r)


It gives 

    n-1 = ln%28s%2Fa%29%2Fln%281-r%29,

    n   = ln%28s%2Fa%29%2Fln%281-r%29 + 1.



ANSWER.  Under natural assumptions r < 1, a =/= 0, s%2Fa > 0,  the formula for 'n' is  

         n = ln%28s%2Fa%29%2Fln%281-r%29 + 1.

Solved.



Answer by math_tutor2020(3847) About Me  (Show Source):
You can put this solution on YOUR website!

Tutor Edwin is slightly on the right track when mentioning the geometric sum, but has made a typo.

The expression for the geometric sum is not %28a%281-r%29%5En%29%2F%281-r%29 but should be a%2A%281+-+r%5En%29%2F%281+-+r%29

That is assuming you are adding up these terms matrix%281%2C3%2Ca+%2B+ar+%2B+ar%5E2%2C+%22%2B+...+%2B+%22%2Car%5E%28n-1%29%29


In other words

The exponent "n" applies to "r" only; instead of all of (1-r) up top.

--------------------------------------------------------------------------

Proof

matrix%281%2C3%2CS+=+a+%2B+ar+%2B+ar%5E2%2C+%22%2B+...+%2B+%22%2Car%5E%28n-1%29%29 is the sum of terms a, ar, ar^2, etc up to ar^(n-1)

I'll place them into a table or spreadsheet row
Saarar^2...ar^(n-1)


Then in the next row below it, we'll have the terms for the expression rS
This is where we multiply each term of S by r
matrix%281%2C3%2CrS+=+ar+%2B+ar%5E2%2C+%22%2B+...+%2B+%22%2Car%5E%28n-1%29%2Bar%5En%29
Each exponent bumps up by 1. The "a" at the start became ar.

Let's align things like so
Saarar^2...ar^(n-1)
rSarar^2...ar^(n-1)ar^n

I'll mark in red when the top and bottom of a given column are the same.
Saarar^2...ar^(n-1)
rSarar^2...ar^(n-1)ar^n

Those red columns cancel out when you subtract straight down to compute S+-+rS

This cancellation leads to S+-+rS+=+a+-+ar%5En and that solves to S+=+a%2A%281+-+r%5En%29%2F%281+-+r%29

-----------------------------------------------------------------

The proof for

will follow the same idea.
Note the "n" changes to "n+1". Everything else stays the same.

Answer by mccravyedwin(422) About Me  (Show Source):