title: How to resolve the Error in f(x, ...) : unused argument (x)
body: <pre><code>f &lt;- function(x) {((1/2)*((4*x)-1)*exp(-(1/2)*((3*x)+(2*x^2))))};
  f   # order of arguments reversed 
  h &lt;- function(x) integrate(f, lower=0, upper=Inf, x=x)$value;
  h 
  g &lt;- Vectorize(h);
  g 
  x &lt;- seq(0,100)
  plot(x,g(x), xlab="x", ylab="y", col="blue")
  </code></pre>