We need the number of real roots of the equations
f(x)=0⟺2x=x2
f′(x)=0⟺2xln2=2x
Case 1: Points where y=f(x) cuts the x-axis (roots of f(x))
Define g(x)=2x−x2. We inspect its sign in different regions.
• As x→−∞, 2x→0 while x2→∞, so
g(x)→−∞(negative).
• g(0)=20−02=1>0 (positive).
• g(−1)=2−1−(−1)2=0.5−1=−0.5<0 (negative).
Because g(−1)<0 and g(0)>0, by the Intermediate Value Theorem there is one root in (−1,0).
• g(2)=22−22=0 and g(4)=24−42=0.
A quick check of the sign between these points:
g(3)=23−32=8−9=−1<0, so the function changes sign at both x=2 and x=4 but not again between them.
• For x>4, the exponential term dominates: g(6)=26−62=64−36=28>0 and the value keeps increasing, so no more zeros occur.
Hence the three distinct real roots are
one in (−1,0), and the obvious ones x=2 and x=4.
Therefore m=3.
Case 2: Points where y=f′(x) cuts the x-axis (roots of f′(x))
Differentiate: f′(x)=2xln2−2x. Let
h(x)=2xln2−2x.
• h(0)=ln2(≈0.693)>0.
• As x→−∞: 2xln2→0 and −2x→+∞, hence
h(x)→+∞(positive).
• Evaluate at x=1: h(1)=2ln2−2≈1.386−2=−0.614<0.
So a sign change occurs between x=0 and x=1 ⇒ one root in (0,1).
• To check for more roots, find extrema of h(x):
h′(x)=2x(ln2)2−2.
Set h′(x)=0: 2x=(ln2)22≈4.166, giving
x0=log2(4.166)≈2.06.
Because h′′(x)=2x(ln2)3>0, this point is the unique minimum of h(x).
• Value at the minimum:
h(2.06)=22.06ln2−2(2.06)≈2.888−4.12≈−1.23<0.
Thus h(x) is negative in a neighborhood of this minimum.
• Check farther right: h(4)=24ln2−8=16ln2−8≈11.09−8=3.09>0.
So h(x) changes from negative to positive between x≈3 and x=4, giving a second root in (3,4).
• Since h(x) is positive for x<0 and again for sufficiently large x>4, and has only one minimum, no additional sign changes are possible.
Hence h(x)=0 has exactly two real solutions, so n=2.
Finally, m+n=3+2=5.
Answer : 5