Class 12 Maths, Worked in Full Past papersGet updates
Chapter 5 · Continuity and Differentiability

Example 25: Is x=elog⁡xx=e^{\log x} for all real xx⁠?

ExamplesExponential and logarithmic functions · Section 5.4
The question

Is it true that x=elog⁡xx = e^{\log x} for all real xx⁠?

Exam answer

log⁡x\log x is defined only for x>0x > 0⁠. So for x≤0x \le 0⁠, the right side elog⁡xe^{\log x} is not defined.

For x>0x > 0⁠, let t=log⁡xt = \log x⁠. By the definition of logarithm, et=xe^t = x⁠, that is, elog⁡x=xe^{\log x} = x⁠.

No. x=elog⁡xx = e^{\log x} is true only for x>0x > 0⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

log⁡x\log x (to base ee⁠) is defined only for positive xx. For those xx⁠, log⁡x\log x is, by definition, the power to which ee must be raised to give xx⁠, so elog⁡x=xe^{\log x} = x automatically. For x≤0x \le 0 the right-hand side does not exist, so the equation cannot be true there. The answer is no: it holds exactly when x>0x > 0⁠.

Given, to find, and the plan
Given
The natural exponential exe^x (defined for all real xx⁠, always positive) and the natural logarithm log⁡x\log x (defined for x>0x > 0⁠).
To find
Whether x=elog⁡xx = e^{\log x} for every real xx⁠, and if not, exactly where it holds.
Plan
(1) Recall what log⁡x\log x means and where it is defined. (2) Deal with x≤0x \le 0⁠. (3) Prove the identity for x>0x > 0 from the definition. (4) Read the book's argument and see why each step is valid. (5) Conclude.

Basics you need

1Logarithm as an inverse

For base b>1b > 1⁠, log⁡ba=x\log_b a = x means bx=ab^x = a (Definition 4). In this chapter log⁡x\log x means log⁡ex\log_e x⁠, so log⁡x=t\log x = t means et=xe^t = x⁠. Basics: exponentials and logarithms

2Domains

ete^t is defined for every real tt and is always positive. log⁡\log is defined on R+=(0,∞)\R^+ = (0,\infty) only, because no power of ee is zero or negative. Basics: exponentials and logarithms

3Log rules

log⁡pn=nlog⁡p\log p^n = n\log p for p>0p > 0⁠; log⁡e=1\log e = 1⁠; and log⁡\log is ever increasing, hence one-one: log⁡y=log⁡x⇒y=x\log y = \log x \Rightarrow y = x⁠. Basics: exponentials and logarithms

Solution

  1. Where does each side make sense?

    The left side, xx⁠, makes sense for every real xx⁠. The right side, elog⁡xe^{\log x}⁠, needs log⁡x\log x first, and log⁡x\log x is defined only when x>0x > 0⁠. So the right side exists exactly for

    x∈(0,∞).x \in (0, \infty).
    An equation can only be true at an xx where both sides have a value. Before asking whether two expressions are equal, always ask where each one is defined. The book's observation (1) after Definition 4 says it plainly: there is no meaningful logarithm of a non-positive number.
    Domain of log⁡\log is R+\R^+ (Section 5.4, observation (1) about the log function). Basics: exponentials and logarithms
  2. For x≤0x \le 0 the statement fails

    Take x=−2x = -2⁠. Then log⁡(−2)\log(-2) would have to be a number tt with et=−2e^t = -2⁠. But et>0e^t > 0 for every real tt⁠, so there is no such tt⁠. The expression elog⁡(−2)e^{\log(-2)} has no value, and "−2=elog⁡(−2)-2 = e^{\log(-2)}" is not a true statement. The same happens for x=0x = 0 (no tt gives et=0e^t = 0⁠) and for every negative xx⁠.

    One counterexample is enough to show that a "for all xx" statement is false. We have in fact found that it fails for every x≤0x \le 0⁠, which tells us exactly where the trouble is.
    Range of the exponential function is the set of positive reals (Section 5.4, salient feature (2)). Basics: exponentials and logarithms
  3. For x>0x > 0 the statement is true

    Let x>0x > 0 and put t=log⁡xt = \log x⁠. By the definition of the logarithm,

    t=log⁡xmeanset=x.t = \log x \quad\text{means}\quad e^t = x.

    Replacing tt by log⁡x\log x⁠: elog⁡x=xe^{\log x} = x⁠. So the equation holds for every positive xx⁠.

    This is the most direct proof: the logarithm was defined as the exponent that ee needs to produce xx⁠. Raising ee to that exponent therefore produces xx⁠. The functions exe^x and log⁡x\log x are inverses of each other, and elog⁡x=xe^{\log x} = x is "undo after do".
    Definition 4 (Section 5.4) with b=eb = e⁠. Lesson: exponential and logarithmic functions
  4. The book's argument, step by step

    The book argues differently. For x>0x > 0 let y=elog⁡xy = e^{\log x}⁠. Then y>0y > 0 (every power of ee is positive), so we may take its logarithm:

    log⁡y=log⁡(elog⁡x)=log⁡x⋅log⁡e=log⁡x.\begin{aligned} \log y &= \log\left(e^{\log x}\right) \\ &= \log x\cdot\log e \\ &= \log x. \end{aligned}

    Since log⁡\log is ever increasing, two different positive numbers have different logarithms, so log⁡y=log⁡x\log y = \log x forces y=xy = x⁠.

    Each line needs a justification. Taking log⁡y\log y needs y>0y > 0⁠. The second line uses log⁡pn=nlog⁡p\log p^n = n\log p with p=ep = e and n=log⁡xn = \log x (the book proves it for positive integers nn and states, without proof, that it holds for every real nn⁠). The third uses log⁡e=1\log e = 1⁠, which is Definition 4 with base ee⁠: e1=ee^1 = e⁠. The last step needs log⁡\log to be one-one, which follows from it being ever increasing (observation (4)). Both arguments reach the same conclusion.
    log⁡bpn=nlog⁡bp\log_b p^n = n\log_b p and the observations about log⁡\log (Section 5.4). Basics: exponentials and logarithms
  5. Conclude

    x=elog⁡xx = e^{\log x} is not true for all real xx⁠. It is true exactly for x>0x > 0⁠, and meaningless for x≤0x \le 0⁠.

    x y −3 −2 −1 1 2 3 −3 −2 −1 1 2 3 x = 2: log 2 ≈ 0.6931, e^0.6931 ≈ 2 y = e^(log x), x > 0 dashed: y = x for x ≤ 0, not part of y = e^(log x) open dot at (0, 0): x = 0 is excluded
    The graph of y=elog⁡xy = e^{\log x} (equal scales) is the half-line y=xy = x for x>0x > 0 only, with an open dot at the origin. The dashed half-line is part of y=xy = x but not of y=elog⁡xy = e^{\log x}⁠. So the two functions are equal only where both are defined.
    Two functions are equal only if they have the same domain and agree at every point. xx and elog⁡xe^{\log x} agree on (0,∞)(0,\infty) but have different domains (R\R and (0,∞)(0,\infty)⁠). This matters later: logarithmic differentiation (Section 5.5) writes uv=evlog⁡uu^v = e^{v\log u}⁠, which is only allowed where u>0u > 0⁠.
    Equality of functions: same domain and same value at each point (Chapter 1). Basics: exponentials and logarithms
Result

No. x=elog⁡xx = e^{\log x} holds exactly for x>0x > 0⁠. For x≤0x \le 0⁠, log⁡x\log x is not defined, so the right-hand side does not exist. (This is the book's conclusion: "true only for positive values of xx".)

Check it with numbers

x=2x = 2⁠: log⁡2=0.6931472…\log 2 = 0.6931472\ldots and e0.6931472=2.0000000…e^{0.6931472} = 2.0000000\ldots ✓. x=0.1x = 0.1⁠: log⁡0.1=−2.3025851…\log 0.1 = -2.3025851\ldots (negative, which is fine) and e−2.3025851=0.1e^{-2.3025851} = 0.1 ✓. x=−2x = -2⁠: a calculator reports an error for log⁡(−2)\log(-2)⁠, because no real power of ee equals −2-2⁠.

Common mistakes
  1. "elog⁡xe^{\log x} and xx cancel, so they are equal everywhere." Cancelling an inverse only works where the inverse is defined.
  2. Confusing "log⁡x\log x is negative" with "xx is negative". log⁡0.1<0\log 0.1 < 0 is fine; it is xx itself that must be positive.
  3. In the book's argument, skipping why log⁡y=log⁡x\log y = \log x gives y=xy = x⁠. It needs log⁡\log to be one-one.
What to take away
  1. elog⁡x=xe^{\log x} = x for x>0x > 0⁠, and log⁡(ex)=x\log(e^x) = x for every real xx⁠. The domains differ.
  2. Always ask where each side of an identity is defined before claiming it holds "for all xx".
  3. Any positive base can be rewritten through ee⁠: a=elog⁡aa = e^{\log a} for a>0a > 0⁠. Example 28 uses this to differentiate axa^x⁠.

Every fact used, and where it comes from

FactUsed inSource
log⁡ba=x  ⟺  bx=a\log_b a = x \iff b^x = a⁠; here b=eb = eSteps 2, 3Definition 4, Section 5.4 (Lesson: exponential and logarithmic functions)
Domain of log⁡\log is R+\R^+⁠; log⁡\log is ever increasingSteps 1, 4Section 5.4, observations (1) and (4) on the log function
et>0e^t > 0 for all real ttSteps 2, 4Section 5.4, salient features (1) and (2) of exponential functions
log⁡pn=nlog⁡p\log p^n = n\log p (for real nn stated without proof)Step 4Section 5.4 (properties of log, after property (2))
log⁡e=1\log e = 1Step 4Definition 4, Section 5.4, since e1=ee^1 = e
Equality of functionsStep 5Chapter 1
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →