This is some pretty freaky algebra I've got here... hopefully my derivative is right lol

I need to set C'(x) = 0 and isolate for x (it's an optimization).

0 = [(1000x - 200000) / (√(x2 - 400x + 44900)] + 500

What happened to the HTML and MATH code?