Let $f: \mathbb{R} \rightarrow \mathbb{R}$ such that
$$f(x)= \int_{0}^{1} |t-x|^3dt$$
Then $f$ has a minimum value for $x$ equal to:
The correct answer should be $x=\cfrac 12$
I don't know how to approach this because I haven't encountered problems like this before.
If you know where I can find similar problems to practice, let me know. Thank you very much.
As a general strategy: remember how you do optimization (i.e. min/max) questions from early calculus. The big idea is to find a critical number of $f$, which mostly means to take a derivative of $f$, set it to 0, and solve. (You then have to ensure that you actually found the thing you want, which in this case would be a global minimum.)
So, that's an outline of your strategy here. You should be able to convince yourself that the optimizing $x$ must be in $[0, 1]$, and some argument for why that's true would probably be required. But once you've established that, consider breaking up the integral into two pieces: $$f(x) = \int_0^1 |t - x|^3 \, \textrm d t = \int_0^x |t - x|^3 \, \textrm d t + \int_x^1 | t - x|^3 \, \textrm d t$$ Then, consider what $|t-x|$ would mean on those respective integrals (i.e. rewrite each without absolute values), and do the integration. At that point, you'll have a tidy algebraic expression for $f(x)$, and you can use the strategy I outlined above.