title: How to find the maximum and minimum of a function using Maxima?
body: <p>I have trying to find a way to obtain the maximum and the minimum value of a function using Maxima (wxMaxima), but until now I have not found how to do it. </p>
  
  <p>Could you please tell me how would you do it? </p>
  
  <p>For example, suppose I have the following code: </p>
  
  <pre><code>f(x) := (3*x)/(x^2 - 2*x + 4);
  </code></pre>
  
  <p>And then I plot this function in the range -10, 10, and I obtain:</p>
  
  <p><img src="https://i.stack.imgur.com/9EdLN.png" alt="enter image description here"></p>
  
  <p>I know that the maximum is 3/2 and the minimum should be -1/2.</p>