The function is .
(Substitute )
(Apply distributive property: a(b + c) = ab + ac)
(Multiply: )
(Subtract: )
The value of the function is .