The Wayback Machine - https://web.archive.org/web/20230812144511/https://www.geeksforgeeks.org/logarithms/
Skip to content
Related Articles
Open In App
Related Articles

Logarithms

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Logarithm is a way of writing numbers which are in exponential form. In Exponential Form, a number is raised to some power, and the value is calculated by multiplying the number by itself to the number of times equal to the power raised on it. In Logarithm we try to find what power a number is raised that resulted in a particular number. Let’s say we need to find 43 we find it as 4 × 4 × 4 = 64 by the basics of Exponents that we have learned. But what if we need to find out what power is four is raised so that the result is 64? In this case, we need to find out by hit and trial but this technique will fail for large numbers, hence we need to solve by logarithm log464 = 3. 

Thus, we write 43 = 64 as log464 = 3. In general terms, we can write it as an = b or logab = n. In this article, we will learn, about the history, and properties of logarithms along with techniques to solve questions also we will learn about logarithmic functions, their curve, differentiation, and integration in details

History of Logarithms

The creation of logarithms is credited to a Scottish Mathematician John Napier. In 1614 he presented his book named Canons of Logarithms which contained a table of trigonometric functions and their natural logarithms. The purpose of the book was to help in the multiplication of quantities. The creation of Logarithms is considered one of the important scientific discoveries in the history of science that were helpful in simplifying calculations of spherical trigonometry and celestial navigation.

What is Logarithm?

Logarithm is a way of determining the power to which a number is raised that gives a particular number. In simpler words, we can say that if a and b are two numbers such that ‘a’ is raised to some power that gives the number ‘b’ then logarithm is used to find what is the power that ‘a’ must be raised to yield ‘b’. Logarithm is often referred to as the inverse process of exponents.

Definition of Log

If an = b then log or logarithm is defined as the log of b at base a is equal to n. It should be noted that in both cases base is ‘a’ but in the log, the base is with the result and not the power.

an = b ⇒ logab = n

where 

  • a is the base
  • b is the argument
  • a and b positive real numbers
  • n is real number

Exp to Log

If a number is expressed in the exponential form for example an = b where a is the base, n is the exponent and b is the result of the exponent then to convert it into the logarithmic form the base ‘a’ remains base in logarithm, the result ‘b’ becomes an argument and the exponent ‘n’ becomes the result here.

an = b ⇒ logab = n

Log to Exponential Form

If the expression is in logarithmic form then we can convert it into exponential form by making the argument as a result and the result of logarithm becomes the exponent while the base remains the same. It can be better understood from the expression mentioned below:

logab = n ⇒ an = b

Types of Logarithm

Depending upon the base, there are two types of logarithm

  • Common Logarithm
  • Natural Logarithm

Common Logarithm

The logarithm with base 10 is known as Common Logarithm. It is written as log10X. The common logarithm is generally written as log only instead of log10. Let’s see some example

Log10 = log1010 = 1

log1 = log101 = 0

log1000 = log101000 = 3

Natural Logarithm

The logarithm with base e, where e is a mathematical constant is called Natural Logarithm. It is written as logeX. The natural logarithm is also written in the abbreviated form as ln i.e. logeX = ln X.

loge2 = X ⇒ eX = 2

loge5 = y ⇒ ey = 5

Difference between Log and ln

The basic difference between log and ln is tabulated below:

LogLn
Log is the logarithmic expression at base 10.Ln is the logarithmic expression at base e.
It is given as log10XIt is given as logex
It is called a common log and is represented as log x It is called natural log and is represented as ln x
It is mostly used for solving large numbers and simplifying calculations.It is less commonly used

Read, Difference Between Log and Ln

Euler’s Number

Euler’s Number is a mathematical constant whose value is 2.7182… It is a non-terminating and no repeating number represented by the letter e. Hence, e is an irrational number. It is used to represent exponential functions. It is used as a base in natural logarithms. Euler’s Number is named after Leonhard Euler.

Rules of Log

The common Properties of Log are mentioned below:

  • Product Rule
  • Division Rule
  • Power Rule
  • Change of Base Rule
  • Equality of Log
  • Number raised to Log Power

Product Rule of Log

Product rule of log states that if log is applied to the product of two numbers then it is equal to the sum of the individual logarithmic values of the numbers. The expression can be given as:

logxab = logxa + logxb

Example: loga10 = loga(5 ✕ 2) = loga5 + loga2

Quotient Rule of Log

Quotient Rule of log states that if log is applied to the quotient of two numbers then it is equal to the difference of the individual logarithmic value of the numbers. The expression can be given as:

logxa/b = logxa – logxb

Example: logx2 = logx(10/5) = logx10 – logx5

Power Rule of Log

Power Rule of log states that if the argument is raised to some power then the solution of logarithmic expression is given by the power of the argument multiplied by the log value of the argument. The expression can be given as:

logxab = b.logxa

Change of Base Rule

In logarithm, the base can be changed in the following way

logxa = logya/logyb

or

logxa.logyb = logya

Read More on Change of Base Rule

Base Switch Rule

This log property states that Base and argument can be switched in the following manner

logxa = 1/logax

Equality of Logarithm

Equality of logarithm property states that if

logxa = logxb then a = b

Number Raised to Log

If a number is raised to log which has the same base as the number then the result of the expression is the argument. This can be expressed as

xlogxa = a

Negative Log Rule

The Negative Log Property states that if the logarithmic expression is of the form -logxa then we can convert it into a positive form by taking the reciprocal of the argument or by taking the reciprocal of the base as

-logxa = logx(1/a) = log1/xa

Read, Laws of Logarithm

Log 1

This property of log states that the value of Log 1 is always zero, no matter what the base is. This is because any number raised to power zero is 1. Hence, Log 1 = 0.

Logaa

This Property of Log states that if the base and augment of a logarithm are the same then the logarithm of that number is 1. This is because any number raised to power 1 results in the number itself. Hence,

ln e = logee = 1

log1010 = 1

Expanding and Condensing Logarithm

A logarithmic expression can be expanded and condensed using the following Properties of Log

Product Rule of Log: logxab = logxa + logxb

Quotient Rule of Log: logxa/b = logxa – logxb

Power Rule of Log: logxab = b.logxa

Expanding Log

Log can be expanded in the following manner

Example: Expand log(2a3b2)

Solution:

log(2a3b2) = log 2 + log a3 + log b2

= log 2 + 3 log a + 2 log b

Condensing Log

A log can be condensed in the following manner just by following the reverse of the properties of log.

Example: Condense log 2 + 3 log a + 2 log b

Solution:

log 2 + 3 log a + 2 log b

= log 2 + log a3 + log b2

= 2a3b2

Logarithm Formulas

The formulas for logarithm is tabulated below:

log10
logxx1
logx(ab)logxa + logxb
logx(a/b)= logxa – logxb
logx(a)b= b.logxa
logxa= logya/logyb
logxa= 1/logax
-logxalogx(1/a) = log1/xa

Read, Logarithm Formulas

Log Table

Log Table is used to find the value of the log without the use of a calculator. The log table provides the logarithmic value of a number at a particular base. A log table has mainly three columns. The first column contains two-digit numbers from 10 to 99, the second column contains differences for digits 0 to 9 and hence called the difference column and the third column contains mean difference from 1 to 9 and hence called mean difference column. The log table for base e is called the natural logarithm table and that for base 2 is called the binary log table.

The logarithmic value of a number contains two parts named characteristics and mantissa both separated by a decimal. Characteristic is the integral part written o the left side of the table and can be positive or negative while the mantissa is the fraction or decimal that is always positive. One needs to find characteristics and mantissa from the log table and combine them to get the logarithmic values. 
Log Table

Anti Log Table

Antilog is the process of finding the inverse of the log of the number. This is used when the number is already given in log value and we need to find out the number for which log value is given. If log a = b then a = antilog (b). The Antilog table is helpful in finding the Antilog value without using the calculator. The antilog table also consists of 3 columns among which the first column contains numbers from .00 to .99, the second block which is the difference column contains digits from 0 to 9, and the third block which is the mean difference column contains digits from 1 to 9.

Using Log Table we have find out the characteristics and mantissa of a number while using the antilog table we will separate the characteristics and mantissa of the number.

Antilog Table

Logarithmic Function

A function that is given in the form of y = f(x) = logax where a > 0 is called the logarithmic function. It is the inverse of the exponential function given as ay = x. The logarithmic function includes both natural and common logarithms.

Domain and Range of Logarithmic Function

Domain of a function is the input value for which it gives an output. The output obtained for the set of domains in which the function is defined is called the Range of the function. We have learned that we find the log only of a non-negative number, hence the domain of the logarithmic function is a set of all non-negative real numbers (0, ∞). The logarithmic function is both continuous and differentiable in its domain. We also observed that the logarithmic value of a logarithmic function is both positive and negative numbers. Hence, the range of the logarithmic function is a set of all Real Numbers i.e. (R).

Logarithmic Graph

We know that the domain of Logarithmic Function is (0, ∞) and its range is a set of all real numbers. If we plot the graph using the set of domain and range we find that the graph of the logarithmic function is just the inverse of the graph obtained for the exponential function. This indicates the inverse relationship between exponential and logarithmic functions. Also, the logarithmic graph is symmetric around the line y = x. We know that the value of log 1 is zero at any base value. Hence it has an intercept (1,0) on the x-axis and no intercept on the y-axis as log 0 is not defined.

Graph of Exponential and Logarithmic Function

Properties of Logarithmic Graph

There are the following properties of the logarithmic Graph of function logax

  • In logarithmic function base a > 0 and a ≠ 1
  • The graph of logarithmic function increases when a > 1 and decreases in the range 0 < a < 1.
  • The domain of the function is a set of all positive numbers greater than zero.
  • The range of the curve is a set of all real numbers.

Properties of Logarithmic Function

The logarithmic function has the following properties

  • log xy = log x + log y
  • log x/y = log x – log y
  • log ab = logcb/logca
  • log 1 = 0
  • log 0 = Not defined
  • logaa = 1

Limit of Logarithmic Function

The fundamental formula for the limit of the logarithmic function is mentioned below:

Iimx→0 logex = 1

Iimx→0 loge(1 + x)/x = 1

Iimx→0 logb(1 + x)/x = 1/logeb = logbe

Iimx→0 loge(1 – x)/x = -1

Derivative of Log

Derivative refers to the change in one quantity let’s say ‘y’ with respect to another quantity let’s say ‘x’. The derivative of a function y = f(x) is given by f'(x) = dy/dx. Below are some standard derivative formulas that involve the use of Euler’s number or a logarithmic function.

d/dx{ex} = ex

d/dx(ax) = ax.logea where a > 0 and a ≠ 1

d/dx(logex) = 1/x, x > 0

d/dx(logax) = 1/x(logae) = 1/xlogea where x > 0

Logarithmic Differentiation

Logarithmic Differentiation is used to find the derivative of a composite function using the concept of logarithm. In order to differentiate a composite function with the technique of logarithmic differentiation, first simplify the function using log formulas and then differentiate it using the chain rule. Derivative of some composite functions using logarithmic differentiation is mentioned below:

FunctionDerivative
y = f(x)g(x)dy/dx = d/dx{f(x)g(x)} = y[g'(x).logf(x) + g(x).f'(x)/f(x)]
y = f(x) = g(x) × h(x)dy/dx = f'(x) = h(x)×g'(x) + g(x)×h'(x)
y = f(x) = g(x)/h(x)dy/dx = f'(x) = f'(x) = [g'(x)×h(x) – g(x)×h'(x)] / h2(x)

The following articles should be referred to for details of the differentiation of the logarithmic function

Integration of Log x

The integration of log x gives the area under the logarithmic curve. Here we integrate the natural log and not the common log i.e. the log with base e. The integration of a logarithmic function is done by the technique of integration by parts. The priority order of taking functions as first and second is decided using the ILATE rule. Here, the logarithmic function is second in priority order. The formula for indefinite and definite integration of logex or ln x is given below:

Indefinite Integral of logex: ∫logex dx = ∫ln x dx = x.lnx – x + C where C is constant

Definite Integral of logex: \int_{0}^{1}      ln x dx = -1

Also Read,

Solved Examples on Logarithm

Example 1: Find loga16 + 1/2 loga225 – 2loga2

Solution:

loga16 + 1/2 ✕ 2loga15 – loga22

⇒ loga16 + loga15 – loga4

⇒ loga(16 ✕ 15) – loga4

⇒ loga(16 ✕ 15/4) = loga60

Example 2: Solve logb3 – logb27

Solution:

log23 – log248

⇒ log2(3/48)

⇒ log2(1/16)

⇒ log2(-16)

⇒ -log224

⇒ -4log22 = -4

Example 3: Find x in logbx + logb(x – 3) = logb10

Solution:

Given logbx + logb(x – 3) = logb10

⇒ logb(x)(x – 3) = logb10

⇒ (x)(x – 3) = 10

⇒ x2 – 3x – 10 = 0

⇒ x2 – 5x + 2x – 10 = 0

⇒ x(x – 5) + 2(x – 5)

⇒ (x – 5)(x + 2) = 0

⇒ x = 5, -2

Example 4: Find the derivative of log(sin x)

Solution:

Given that y = log(sin x)

dy/dx = (1/sin x) × cos x = cos x/sin x = tan x

FAQs on Logarithm

Q1: What are Logarithms?

Answer:

Logarithm is the inverse of exponential which is used to find out to what power a base must be raised to yield a particular value.

Q2: Who invented Logarithm?

Answer:

Logarithm was invented by Scottish Mathematician John Napier in 1614.

Q3: Can Logarithm be Negative?

Answer:

No the argument of logarithm can’t be negative, however, log of any number can give a negative value.

Q4: What are Logarithms used for?

Answer:

Logarithm is used to find the power a number must be raised to yield a particular result. It is useful in finding pH level, exponential growth or decay, etc.

Q5: What is the value of loga0?

Answer:

Logarithm does not take 0 and negative numbers as its input hence loga0 is not defined.


Last Updated : 26 Jul, 2023
Like Article
Save Article
Similar Reads
Related Tutorials