All published worksheets from http://sagenb.org
x = var('x') price = 100-(0.01*x) R = x*price C = 50*x + 10000 P = R - C dP = diff(P,x) solve(dP == 0, x)
P(x=2500)
price(x=2500)
CI = C + 10*x PI = R - CI dPI = diff(PI,x) solve(dPI == 0, x)
PI(x=2000)
price(x=2000)