let x = the number of cars that will not be sold if the price increases by 300 dollars a car.
let 300x = the number of times the price of a car will be increased by 300 dollars.
the dealer's cost is 4000 per car.
the dealer's profit is the sale price of the car minus the cost.
profit equals revenue minus cost.
the formula for profit will therefore be:
profit = (6400 + 300x) * (20 - x) - 4000 * (20 - x)
let's see what happens:
when x = 0:
profit = 6400 * 20 - 4000 * 20 = 48000
when x = 1:
profit = 6700 * 19 - 4000 * 19 = 51300
when x = 2:
profit = 7000 * 18 - 4000 * 18 = 54000
etc.
the equation of profit = (6400 + 300x) * (20 - x) - 4000 * (20 - x) is a quadratic equation.
simplify it to see what it comes out to be.
after simplification, the equation becomes profit = -300x^2 + 3600x + 48000.
this is a quadratic equation in standard form.
since the standard form of a quadration equation is ax^2 + bx + c = 0, then set this equation to 0 and solve using the quadratic formula amd / or the formula for finding the max / min point of the quadratic equation.
you can also graph the equation to see what it looks like.
setting the equation to 0, you get -300x^2 + 3600x + 48000 = 0
this results in:
a = -300
b = 3600
c = 48000
the quadratic formuls is:
x = (-b plus or minus sqrt(b^2 - 4ac)
---------------------------------
(2a)
the formula for the value of x for the max / min point is:
x = (-b)
----
(2a)
you can solve using these equations, or you can graph the equation and, if you have the right software, it will tell you what the solutions are.
the right software in this case, would be http://www.desmos.com/calculator.
there may be others, but this one is pretty good and fairly easy to use.
the graph of the equation looks like this:
if you solved using the formula, you would get the same answers.
when x = 0, the profit is 48000.
the profit is max at x = 6 when the profit is 58800.
the profit is 0 when x = 20.
on the graph, y represents the profit.