Alright, let's tackle this problem step by step. It's a bit involved, so I'll break it down into manageable parts.
Understanding the Problem
We have a function defined as:
[ f(x) = \frac{x^2 - a x}{e^x} ]
where ( a ) is a positive number.
For a real number ( t ), we define ( g(t) ) as the number of distinct real roots ( x ) of the equation:
[ f(x) = f'(t)(x - t) + f(t) ]
We're given some conditions:
- ( g(5) + \lim_{t \to 5} g(t) = 5 )
- There exists some ( k ) where the left and right limits of ( g(t) ) as ( t ) approaches ( k ) are not equal: ( \lim_{t \to k^-} g(t) \neq \lim_{t \to k^+} g(t) ).
- The sum of all such ( k ) is ( \frac{q}{p} ), where ( p ) and ( q ) are coprime natural numbers.
- We need to find ( p + q ).
Step 1: Simplify the Equation ( f(x) = f'(t)(x - t) + f(t) )
This equation looks like the equation of the tangent line to ( f ) at ( x = t ), but it's set equal to ( f(x) ). So, it's asking for the intersections of ( f(x) ) with its tangent line at ( t ).
The right side is the tangent line at ( t ):
[ L(x) = f'(t)(x - t) + f(t) ]
So, the equation is:
[ f(x) = L(x) ]
which means:
[ f(x) - L(x) = 0 ]
This represents the difference between ( f ) and its tangent at ( t ). The roots of this equation are the ( x )-values where the function intersects its tangent line. Typically, ( x = t ) is always a root because the tangent touches the function at ( t ). The multiplicity of this root depends on how the function behaves near ( t ).
Step 2: Find ( f'(x) )
First, compute ( f'(x) ):
[ f(x) = \frac{x^2 - a x}{e^x} ]
Using the quotient rule:
[ f'(x) = \frac{(2x - a)e^x - (x^2 - a x)e^x}{e^{2x}} = \frac{(2x - a - x^2 + a x)}{e^x} = \frac{-x^2 + (a + 2)x - a}{e^x} ]
Step 3: Express ( f(x) - L(x) )
[ f(x) - L(x) = f(x) - f'(t)(x - t) - f(t) ]
[ = \frac{x^2 - a x}{e^x} - \frac{-t^2 + (a + 2)t - a}{e^t}(x - t) - \frac{t^2 - a t}{e^t} ]
This seems messy. Maybe a better approach is to consider that ( x = t ) is always a root, and the other roots come from the remaining polynomial after factoring out ( (x - t) ).
Step 4: Analyzing the Roots
The equation ( f(x) - L(x) = 0 ) can be seen as:
[ \frac{x^2 - a x}{e^x} - \frac{-t^2 + (a + 2)t - a}{e^t}(x - t) - \frac{t^2 - a t}{e^t} = 0 ]
Multiply both sides by ( e^x ) (since ( e^x \neq 0 )):
[ x^2 - a x - \frac{-t^2 + (a + 2)t - a}{e^t} e^x (x - t) - \frac{t^2 - a t}{e^t} e^x = 0 ]
This seems complicated. Alternatively, consider that ( f(x) - L(x) ) has ( x = t ) as a double root if ( f ) is smooth (which it is), because the tangent line matches the function's value and first derivative at ( t ). So, ( x = t ) is at least a double root.
Thus, the equation ( f(x) - L(x) = 0 ) can be written as:
[ (x - t)^2 \cdot h(x) = 0 ]
where ( h(x) ) is some function. The number of distinct real roots is then 1 (from ( x = t )) plus the number of distinct real roots of ( h(x) ).
But since ( f(x) - L(x) ) is a combination of exponential and polynomial terms, it's likely that ( h(x) ) is a linear function, making the total number of distinct roots either 2 or 1 (if the linear term has no root or coincides with ( t )).
However, given the complexity, perhaps a better approach is to consider specific values or properties.
Step 5: Given Conditions
We have:
[ g(5) + \lim_{t \to 5} g(t) = 5 ]
and ( g(t) ) has discontinuities at certain ( k ), where the left and right limits differ.
The function ( g(t) ) counts the number of distinct real roots of ( f(x) - L(x) = 0 ). The only way ( g(t) ) can change is if the nature of the roots changes, which typically happens when the tangent line is tangent to ( f ) at another point besides ( x = t ). That is, when ( f ) has a horizontal tangent (since the tangent line's slope is ( f'(t) ), and if ( f'(c) = f'(t) ) for some ( c \neq t ), then the tangent at ( t ) is also tangent at ( c )).
So, the points ( k ) where ( g(t) ) is discontinuous are likely where ( f'(x) ) has multiple points with the same slope, i.e., where ( f''(x) = 0 ) (critical points of ( f' )).
Step 6: Find ( f''(x) ) and Its Roots
Compute ( f''(x) ):
[ f'(x) = \frac{-x^2 + (a + 2)x - a}{e^x} ]
[ f''(x) = \frac{(-2x + a + 2)e^x - (-x^2 + (a + 2)x - a)e^x}{e^{2x}} ]
[ = \frac{-2x + a + 2 + x^2 - (a + 2)x + a}{e^x} ]
[ = \frac{x^2 - (a + 4)x + 2a + 2}{e^x} ]
Set ( f''(x) = 0 ):
[ x^2 - (a + 4)x + 2a + 2 = 0 ]
The roots are:
[ x = \frac{a + 4 \pm \sqrt{(a + 4)^2 - 4(2a + 2)}}{2} ]
[ = \frac{a + 4 \pm \sqrt{a^2 + 8a + 16 - 8a - 8}}{2} ]
[ = \frac{a + 4 \pm \sqrt{a^2 + 8}}{2} ]
Since ( a > 0 ), the discriminant ( a^2 + 8 > 0 ), so there are two distinct real roots. Let's call them ( k_1 ) and ( k_2 ), with ( k_1 < k_2 ).
These are the points where ( f' ) has horizontal tangents, i.e., where the slope ( f'(x) ) changes behavior, potentially causing ( g(t) ) to change.
Step 7: Determine ( g(t) )
The equation ( f(x) = L(x) ) can have multiple roots depending on how many times the tangent line intersects ( f ). Typically, besides ( x = t ), there might be another intersection unless the tangent is also tangent elsewhere.
At ( t = k_1 ) or ( t = k_2 ), the tangent line might be tangent to ( f ) at another point, causing ( g(t) ) to drop (since two roots coincide).
Thus, ( g(t) ) changes at ( t = k_1 ) and ( t = k_2 ), making these the points where ( \lim_{t \to k^-} g(t) \neq \lim_{t \to k^+} g(t) ).
Step 8: Use the Given ( g(5) + \lim_{t \to 5} g(t) = 5 )
This condition likely helps determine ( a ). Suppose that at ( t = 5 ), ( g(5) ) is one value, and the limit as ( t ) approaches 5 is another, summing to 5.
Given that ( g(t) ) is typically the count of roots, and the maximum number of roots ( f(x) - L(x) = 0 ) can have is 3 (since it's a combination of quadratic and exponential terms), the sum being 5 suggests