I'll use my example from the other thread:
3000 units $50,000
2000 units $35,000
These are two points, with x representing units and y representing costs. Hence, (3000, 50000) and (2000,35000).
You need to find slope. The slop-point equation is:
Otherwise known as rise over run:
So you just plug in your points:
That $15 is actually the variable costs per unit. Fixed costs don't change no matter how many you produce. That's why it's a constant in the cost function and not multiplied by x. Variable costs occur with every unit produced. So the total variable will go up and down with production. That's why it's with the x in the cost function, cause it will be multiplied by the number of units made.
Since fixed is fixed, only variable costs can change with production changes. So the change in costs was caused by variable costs only, cause fixed can't change. So the $15,000 difference was caused by a rise in units of 1000. So variable must be $15 per unit.
Without even using algebra, from here you could multiply $15 by 2000 units = $30,000. So $30,000 of the $35,000 total costs for 2000 units must be variable costs. Leaving the other $5000 as fixed. So I have $15 variable and $5000 fixed. I could write my equation straight out from here if I wanted.
But if you don't get all that and continue in a graphing sort of fashion, plug a point back into the point-slop equation:
From here you try to isolate y to the left side and get the x and constant on the right, so it's in slope-intercept format.
Add y to both sides to get it on the left side:
Add 15x to both sides to move it to the right side:
Subtract 30,000 from both sides to move constant to right side:
Combine the 2 constants, and then you want to flip that and the x term around to be in proper format:
Since it's a cost function, we want a C(x) on there instead of a y, but that's still your slope-intercept form. Notice it's what I already figured out without all the algebra.
This is also how you can write an equation whenever you're given 2 points like that, or if you're given one point and slope. It doesn't matter if it's costs of units of what it is.
(And now Unky can come along and re-write that last part with his nice cancellations that I don't know how to do. ;))