\( \definecolor{colordef}{RGB}{249,49,84} \definecolor{colorprop}{RGB}{18,102,241} \)
Consider the following calculation program:
  1. Choose a number.
  2. Square the chosen number.
  3. Multiply the result by \(2\).
Let \(x\) be the number chosen initially. Determine the function \(f\) that corresponds to the result obtained with this program.
\(f(x)=\)