\

Observe the figure,

\

\"\"

\

\"\".

\

(a) Write the cost function.

\

\"\".

\

Domain of the function is all real numbers.

\

\

(b)