Question
Question: If the number of real solution(s) of the equation $x^2 + 3x + 2 = min\{|x-3|, |x + 2|\}$ is n, then ...
If the number of real solution(s) of the equation x2+3x+2=min{∣x−3∣,∣x+2∣} is n, then a function f:R→R defined by f(x)=logm{2(sinx−cosx)+m−2}, for some m, such that the range of f is [0,n], then value of (m+n) is equal to

5
6
7
8
7
Solution
The problem consists of two main parts: first, finding the number of real solutions (n) for a given equation, and second, using 'n' to determine the value of 'm' from a function whose range is specified. Finally, we calculate (m+n).
Part 1: Find n
The given equation is x2+3x+2=min{∣x−3∣,∣x+2∣}.
Let's analyze the term min{∣x−3∣,∣x+2∣}. The critical point where ∣x−3∣=∣x+2∣ is found by solving x−3=−(x+2), which gives 2x=1⟹x=1/2.
- If x<1/2: For example, if x=0, ∣0−3∣=3 and ∣0+2∣=2. So, min{∣x−3∣,∣x+2∣}=∣x+2∣.
- If x≥1/2: For example, if x=1, ∣1−3∣=2 and ∣1+2∣=3. So, min{∣x−3∣,∣x+2∣}=∣x−3∣.
Now we solve the equation in two cases:
Case 1: x<1/2
The equation becomes x2+3x+2=∣x+2∣.
Subcase 1.1: −2≤x<1/2 (i.e., x+2≥0)
x2+3x+2=x+2
x2+2x=0
x(x+2)=0
This gives x=0 or x=−2. Both values satisfy the condition −2≤x<1/2. So, x=0 and x=−2 are solutions.
Subcase 1.2: x<−2 (i.e., x+2<0)
x2+3x+2=−(x+2)
x2+3x+2=−x−2
x2+4x+4=0
(x+2)2=0
This gives x=−2. However, this value does not satisfy the condition x<−2. So, there are no solutions in this subcase.
Case 2: x≥1/2
The equation becomes x2+3x+2=∣x−3∣.
Subcase 2.1: 1/2≤x<3 (i.e., x−3<0)
x2+3x+2=−(x−3)
x2+3x+2=−x+3
x2+4x−1=0
Using the quadratic formula, x=2(1)−4±42−4(1)(−1)=2−4±16+4=2−4±20=−2±5.
5≈2.236.
x1=−2+5≈−2+2.236=0.236. This value does not satisfy x≥1/2.
x2=−2−5≈−2−2.236=−4.236. This value does not satisfy x≥1/2.
So, there are no solutions in this subcase.
Subcase 2.2: x≥3 (i.e., x−3≥0)
x2+3x+2=x−3
x2+2x+5=0
The discriminant is D=b2−4ac=22−4(1)(5)=4−20=−16. Since D<0, there are no real solutions in this subcase.
Combining all cases, the real solutions for the equation are x=0 and x=−2.
Therefore, the number of real solutions, n=2.
Part 2: Find m
The function is f(x)=logm{2(sinx−cosx)+m−2}.
The range of f is given as [0,n], which is [0,2].
Let's analyze the argument of the logarithm: Y=2(sinx−cosx)+m−2.
The expression sinx−cosx can be written as 2(21sinx−21cosx)=2(sinxcos4π−cosxsin4π)=2sin(x−4π).
So, 2(sinx−cosx)=2⋅2sin(x−4π)=2sin(x−4π).
The range of 2sin(x−4π) is [−2,2].
Therefore, the argument Y has a range of [−2+m−2,2+m−2], which is [m−4,m].
For the logarithm to be defined:
- The base m must be greater than 0 and not equal to 1. This implies m>0 and m=1.
- The argument Y must be positive. So, Y>0. Since the minimum value of Y is m−4, we must have m−4>0⟹m>4.
This condition m>4 automatically satisfies m>0 and m=1.
Since m>4, the base m>4=2. As the base is greater than 1, the logarithm function f(x) is an increasing function of its argument Y.
Thus, the minimum value of f(x) occurs when Y is minimum (m−4), and the maximum value occurs when Y is maximum (m).
Given range of f(x) is [0,2]:
fmin=logm(m−4)=0
fmax=logm(m)=2
From fmin=0:
logm(m−4)=0⟹m−4=(m)0=1.
m−4=1⟹m=5.
Let's check if m=5 is consistent with fmax=2:
If m=5, then m=5.
fmax=log5(5). Since 5=(5)2, log5(5)=2.
This is consistent. Also, m=5 satisfies m>4.
So, m=5.
Part 3: Calculate (m+n)
We found n=2 and m=5.
Therefore, m+n=5+2=7.
The final answer is 7.