title: Simplify equation after solving
body: <p>In Maxima I put:</p>
  
  <pre><code>   q_d: 1000-5*p_d;
     q_s: -250+2*p_s;
     p_d: (1+t)*p_s;
     eq:q_d = q_s;
     solve(eq,p_s);
     EC: 10*q_d + 0.01 * (q_d**2);
  </code></pre>
  
  <p>get the result </p>
  
  <pre><code>p_s=1250/(5*t+7)
  
  0.01*(1000-5*p_s*(t+1))^2+10*(1000-5*p_s*(t+1))
  </code></pre>
  
  <p>How do I further simplify EC in term of 't' only?</p>