Logarithmic Functions
Logarithmic Equations
log base 4 of x equals 2 at x = 16. Common log equals 2 at x = 100. Natural log equals 2 at e^2. An invalid base is reported instead of a substitute value.
log_4(x)=2, log₄(x)=2, log(x, 4)=2, ln(x)/ln(4)=2, and log(x)/log(4)=2 all have the real solution x=16. log_4(16) equals 2. The common equation log(x)=2 has solution x=100, and ln(x)=2 has solution e^2.
A base of 0, 1, or a negative number is rejected with the message that a logarithm base must be positive and not equal to 1. A negative argument stays undefined. Those results are errors, not substitute numbers.
Equation
log_4(x)=2
How a real logarithm is read
ln(x) is the natural logarithm, base e. log(x) in a graph or a high-school equation is the common logarithm, base 10. log_b(x), a subscript such as log_4(x), and log(x, b) are the logarithm of x in base b. The change-of-base identities ln(x)/ln(b) and log(x)/log(b) are the same function. A base greater than 1 increases, and a base between 0 and 1 decreases.
The real logarithm requires x > 0, a positive base, and a base other than 1. Samples outside that domain are left undefined and are not joined by a straight line. An unreadable logarithm or a forbidden base is an error. It is not replaced by the line y = x. Calculus expressions keep the historical one-argument natural logarithm unless a base is written explicitly.
Reading the input
log_4(x)=2— log_4(x)=2, log₄(x)=2, log(x, 4)=2, ln(x)/ln(4)=2, and log(x)/log(4)=2 all have the real solution x=16. log_4(16) equals 2. The common equation log(x)=2 has solution x=100, and ln(x)=2 has solution e^2.
Other versions of this example
These stay on this page so each version keeps the same explanation. Choose Try example to run a version in its Studio workflow, or copy it into the editable field below.
log base 4
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
log_4(x)=2
Change of base
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
ln(x)/ln(4)=2
Common log
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
log(x)=2
Natural log
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
ln(x)=2
Value of log base 4
This is a command. The name selects the routine, and the items inside the parentheses are its arguments.
log_4(16)
Try a change
- Graph y = log_4(x) and y = ln(x)/ln(4) on separate runs. Both pass through (1, 0), (4, 1), and (16, 2).
- Try y = log_1(x) or y = log(x, -2). The result names the base restriction and does not draw y = x.
Solve Equation accepts log_b(x), a subscript base, log(x, b), and the change-of-base quotients. ln stays natural and a one-argument log stays base 10. An invalid base or an unreadable logarithm is an error.