title: Using the output of Solve
body: <p>I had a math problem I solved like this:</p>
  
  <pre><code>In[1]:= Solve[2x(a-x)==0, x]
  Out[1]= {{x-&gt;0}, {x-&gt;a}}
  
  In[2]:= Integrate[2x(a-x), {x,0,a}]
  Out[2]= (a^3)/3
  
  In[3]:= Solve[(a^3)/3==a, a]
  Out[3]= {{a-&gt;0}, {a-&gt;-Sqrt[3]}, {a-&gt;Sqrt[3]}}
  </code></pre>
  
  <p>My question is if I could rewrite this to compute it in one step, rather than having to manually input the result from the previous line. I could easily replace the integral used in step three with the <code>Integrate</code> command from step two. But what I can't figure out is how I would use the result from step 1 as the limits of integration in the integral. </p>