The function is .
(Replace x with r)
(Apply distributive property: a(b + c) = ab + ac)
(Multiply: )
The value of the function is .