How do solve for q for the following and find the derivative for them?

1) pq+p+100q=50000

2) (p+1)(�ã q+1)=1000

3) p=(1/2)ln((5000-q)/(q+1))