# Homework Help: Dumb log question

1. Apr 14, 2012

### e^(i Pi)+1=0

1. The problem statement, all variables and given/known data
27x+1=32x+1

3. The attempt at a solution

log(27x+1)=log(32x+1)

(x+1)log(27)=(2x+1)log(3)

2x+1=$\frac{(x+1)log(27)}{log(3)}$

$\frac{2x+1}{x+1}=\frac{log(27)}{log(3)}$

x=-2

I'm wondering how I would have continued solving this for the exact answer if $\frac{log(27)}{log(3)}$ had turned out to be irrational?

2. Apr 15, 2012

### Curious3141

If log(m)/log(n) was irrational (call it p), then you'd just have solved it with algebra the usual way to get x in terms of p.

i.e.

(2x+1) = px + p

x(2-p) = p-1

x = (p-1)/(2-p)

That would be an exact answer, but it wouldn't be a "nice number" (an integer or even a rational answer).

3. Apr 15, 2012

### cepheid

Staff Emeritus

Saying "log(a)" and "log(b)" IS exact, even if you can't express those as rational numbers.

xlog(a) + log(a) = 2x(log(b)) + log(b)

x[log(a) - 2log(b)] = log(b) - log(a)

$$x = \frac{\log(b) - \log(a)}{\log(a) - 2\log(b)}$$

and that would be your final answer, which is very much exact.

4. Apr 15, 2012

### e^(i Pi)+1=0

(2x+1) = px + p

x(2-p) = p-1

I am probably being incredibly dense, but I don't follow what you did here.

5. Apr 15, 2012

### e^(i Pi)+1=0

Yeah I realize that, it's like $\sqrt{2}$. The problem I'm having is with the algebra.

6. Apr 15, 2012

### e^(i Pi)+1=0

Got it, I really was being dense. Thank you.

7. Apr 15, 2012

### RoshanBBQ

$$\frac{2x+1}{x+1}=\frac{a}{b}$$
$$2x+1=\frac{a}{b}(x+1)$$
$$2x+1=\frac{a}{b}x+\frac{a}{b}$$
$$2x-\frac{a}{b}x+1=\frac{a}{b}$$
$$2x-\frac{a}{b}x=\frac{a}{b}-1$$
$$x\left (2-\frac{a}{b}\right )=\frac{a}{b}-1$$
$$x=\frac{\frac{a}{b}-1}{2-\frac{a}{b}}$$

edit: nvm, you got it