Same-Base Logarithm Equations
Same-Base Logarithm Equations
Solve sums or differences of two logarithms with the same base and linear arguments. Check both positive-argument conditions and keep only valid real solutions.
- 324 bytes
- COMP mode
Worked examples
Example 1
Original practice. Solve the following and show the algebra. log₂(x+3)+log₂(5−x)=2.
Answer
x=1−2√3 ∨ x=1+2√3
Standard solution (without a calculator)
- −3<x<5; (x+3)(5−x)=4
- x²−2x−11=0 ⇒ x=1±2√3
- −3<1−2√3<1+2√3<5
- Expand or substitute to verify each equality above.
Example 2
Original practice. Solve the following and show the algebra. log₄(2x+5)−log₄(x+1)=1.
Answer
x=1/2
Standard solution (without a calculator)
- x>−1; (2x+5)/(x+1)=4
- 2x+5=4x+4 ⇒ x=1/2
- (2×0.5+5)/(0.5+1)=6/1.5=4
- Expand or substitute to verify each equality above.
Example 3
Original practice. Solve the following and show the algebra. log₅(3x+1)+log₅(1−3x)=0.
Answer
x=0
Standard solution (without a calculator)
- −1/3<x<1/3; (3x+1)(1−3x)=1
- 1−9x²=1 ⇒ x=0
- log₅1+log₅1=0
- Expand or substitute to verify each equality above.
When to use it
Solve sums or differences of two logarithms with the same base and linear arguments. Check both positive-argument conditions and keep only valid real solutions.
Input order
- M,b,A,B,C,D,k
- M=±1→r₁; X=b→b^k→r₂; A=a; B=b₀; C=c; D=d; Y=k→N
- Enter every value afresh; blank EXE retains old memory and is not zero. All working variables and Ans may be overwritten.
Output order
- N,x₁,…,xₙ; 0 / −1 / −2
- M must be +1 or −1 and base b>0,b≠1. All seven fields must be filled. Output 0 means no valid real solution; 1 or 2 is the distinct solution count followed by the roots; −1 means infinitely many solutions in the original domain and −2 means invalid mode or base. Both logarithm arguments must be positive. A repeated root is shown once. Extreme values, cancellation and near-domain-boundary roots require exact checking; this is not a general logarithm solver.
Conditions and limits
- Use COMP and Norm 1; the images use Deg, which does not change this algebra.
- M∈{1,−1}; b>0; b≠1; Ax+B>0; Cx+D>0
- M must be +1 or −1 and base b>0,b≠1. All seven fields must be filled. Output 0 means no valid real solution; 1 or 2 is the distinct solution count followed by the roots; −1 means infinitely many solutions in the original domain and −2 means invalid mode or base. Both logarithm arguments must be positive. A repeated root is shown once. Extreme values, cancellation and near-domain-boundary roots require exact checking; this is not a general logarithm solver.
- Use the original equation to check signs, excluded values and endpoint inclusion. Decimal screens are numerical approximations; preserve exact fractions or radicals in written answers.
Checking access…