Let C(x) be the cost to produce x batches of​ widgets, and let R(x) be the revenue in thousands of dollars. R(x) = − x² + 6x​, C(x) = x + 4.
Find the profit function. Show all work and give the profit function.