This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
\[ \int4e^u dx ... u=-7x \] \[ \frac{du}{dx}=-7... dx=-\frac{1}{7}du \]
\[ \int 4e^u*-\frac{1}{7}du \]
\[-\frac{4}{7} \int e^u du \]
\[-\frac{4}{7}e^{-7x}+c \]
\[\int-3150t^{-4}-220\] \[-\int3150t^{-4}dt-\int220dt\]
\[\frac{3150}{3t^3}-220t+c= 6530\]
6530-(3150/3-220)## [1] 5700
my_area <- sum(sapply(c(5,6,7,8),function(x)2*x-9))
print(my_area)## [1] 16
equation <- function(x) {x^2-2*x-2}
equation_2 <- function(x){x+2}
#plot(equation)
#lines(equation_2, col="blue")
total_1 <- integrate(equation,-1,4)
total_1## -3.333333 with absolute error < 1.2e-13
total_2 <- integrate(equation_2,-1,4)
curve(equation, -1,4)
plot (equation_2, -2, 4, add=TRUE)as.numeric(total_2[1])-as.numeric(total_1[1])## [1] 20.83333
## Checks on integral to confirm critical points are included in function call
root_1 <- uniroot(equation,c(0,-1))[1]
root_2 <- uniroot(equation,c(0,4))[1]
a <- as.numeric(integrate(equation,-1,4)[1])
b <- as.numeric(integrate(equation,-1,-.732)[1])
c <- as.numeric(integrate(equation,-.732,4)[1])
c+b## [1] -3.333333
8.25*110## [1] 907.5
sqrt(907.5/3.75)## [1] 15.55635
\[ \frac {ln(9x)*x^7}{7}- \int x^6/7 \]