title: How to store mathematical expressions/explanations into database
body: <p>I am given a task to develop a website for maths students with questions and their explanations.The site will have around 20,000 questions.And I need an effective way(easy storage,faster querying and fast rendering) to store those questions into the database.</p>
  
  <p>Sample Question </p>
  
  <p>In the first 10 overs of a cricket game, the run rate was only 3.2. What should be the run rate in the remaining 40 overs to reach the target of 282 runs? </p>
  
  <pre><code>Required run rate = 282 - (3.2 x 10)        =   250        = 6.25
                      ----------------           -----
                             40                    40
  </code></pre>
  
  <p>Questions is a simple string and can easily be stored.But the real problem is to store those expressions with brackets and divide into the database? </p>