the piece-wise function could be written something like this.
f(x) = {.35 * 100,000 + .45 * 400,000 + .55 * (x - 500,000) if x > 500,000.
{.35 * 100,000 + .45 * (x - 100,000) if 100,000 < x <= 500,000.
{.35 * x if 0 < x <= 100,000
f(x) is the tax.
x is the income.
here's a reference on how to set up a piece-wise function.
https://www.mathsisfun.com/sets/functions-piecewise.html