Calcola ∫ 1 / √(21−4x−x2) dx (procedi "completando il quadrato")
21−4x−x2 = 21−(x2+4x) = 21+4−(x2+4x+4) = 25−(x+2)2 A destra la conferma grafica di quanto ottenuto: Per altri commenti: calcolo di integrali neGli Oggetti Matematici. |  : |
# Verifica con R # source("http://macosa.dima.unige.it/r.R") f = function(x) 1/sqrt(21-4*x-x^2) solpol(c(21,-4,-1)) # 3 -7 dove si azzera 21-4*x-x^2 Plane(-7,3, -3,3); graph(f, -7,3, "blue") Gintegra(f,0,3, "red"); Gintegra(f,0,-7, "seagreen") g = function(x) asin((x+2)/5); graph2(g, -7,3, "black") # La deriavata di g: deriv(g,"x") # 1/5/sqrt(1 - ((x + 2)/5)^2) che coincide con f(x) K = function(x) eval( deriv(g,"x") ) graph1(K, -7,3, "magenta") # OK anche graficamente