To find the maximum value of \( f(x) = \int_0^1 e^{|t-x|} \, dt \) for \( 0 \leq x \leq 1 \), we need to evaluate the integral by considering the definition of the absolute value function. The expression \( |t-x| \) can be split into cases depending on the value of \( t \) relative to \( x \).
Consider the following cases:
Now, let's evaluate both integrals and combine them:
\(\int_0^x e^{x-t} \, dt = e^x \left[ -e^{-t} \right]_0^x = e^x (1 - e^{-x})\)
\(\int_x^1 e^{t-x} \, dt = e^{-x} \left[ e^t \right]_x^1 = e^{-x} (e - e^x)\)
Combining both results, we find:
\[f(x) = e^x (1 - e^{-x}) + e^{-x} (e - e^x) = e^x - 1 + e - e^x = e - 1.\]The expression \(f(x) = e - 1\) is constant and does not depend on \( x \) within the interval \([0,1]\).
Therefore, the maximum value of \( f(x) \) is:
Answer: \( e - 1 \).