Differentiate the function,
Set the derivative equal to 0 and solve for x.
Substitute this value of x into your function to get the minimum cost.
If you're not allowed to use a Calculus solution, then complete the square to get the function into turning point form. The turning point is the minimum value.