Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

logarithm of a sum or addition

Writer Olivia Zamora
$\begingroup$

I search a general rule for calculating the logarithm of a sum or addition. I know that $$\ln{(a+b)}=\ln{\left(a\left(1+\frac b a\right)\right)}=\ln{(a)}+\ln{\left(1+\frac b a\right)}$$ but when the sum implies more terms, how to generalize its calculation/computation? For example when $$\ln{(a+b+c)}$$ or when $$\ln{\left(\sum_i{a_i}\right)}$$ like when we have to compute the denominator of a Bayes formula using log-likelihoods? Thanks for your incoming help.

$\endgroup$ 3

1 Answer

$\begingroup$

Same thing you can do with more than three terms $$\ln { (a+b+c) } =\ln { \left( \left( a+b \right) \left( 1+\frac { c }{ a+b } \right) \right) } =\ln { \left( a+b \right) +\ln { \left( 1+\frac { c }{ a+b } \right) } } =$$ $$ =\ln { \left( a\left( 1+\frac { b }{ a } \right) \right) +\ln { \left( 1+\frac { c }{ a+b } \right) } } =\ln { a+\ln { \left( 1+\frac { b }{ a } \right) } +\ln { \left( 1+\frac { c }{ a+b } \right) } } $$

$\endgroup$ 0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy