Find the integral of a function, Mathematics

Assignment Help:

We want to find the integral of a function at an arbitrary location x from the origin. Thus,

1486_find the integral of a function.png

where I(x=0) is the value of the integral for all times less than 0. (Essentially, I(x=0) is the unknown constant of integration or the initial condition.) From the class lecture on the trapezoidal rule for numerical integration, it can be seen that this function can be approximated by

2413_find the integral of a function1.png

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule. Your function should accept two vectors as inputs, x and f.

The first vector (x) contains the independent variable data (the points at which the values of the function are known. The second vector (f) should contain the values of the function at the points provided in the first vector. Your function should return the integral of f with respect to x, as a function of x.


Related Discussions:- Find the integral of a function

Determine the determinant of matrix, Example Determinant:   Determine ...

Example Determinant:   Determine the determinant of each of the following matrices. Solution : For the 2 x 2 there isn't much to perform other than to plug this in

Comercial maths, solve a trader purchases coffee at the rate of Rs. 350 per...

solve a trader purchases coffee at the rate of Rs. 350 per kg and mixes it with chicory bought at the rate of Rs.750 per kg in the ratio 5:2.If he sells the mixture at the rate of

Determine the nand gate, Find out the two inputs when the NAND gate output ...

Find out the two inputs when the NAND gate output will be low. Ans. The output of NAND gate will be low if the two inputs are 11. The Truth Table of NAND gate is shown

Complex root - fundamental set of solutions, Example : Back into the comple...

Example : Back into the complex root section we complete the claim that y 1 (t ) = e l t cos(µt)        and      y 2 (t) = e l t sin(µt) Those were a basic set of soluti

Largest number of vertices in a graph, a) Specify that a tree has at least ...

a) Specify that a tree has at least 2 vertices of degree 1.                               b) What is the largest number of vertices in a graph with 35 edges if all vertices are

Trigonometry, sin^2alpha *sec^2beta +tan^2 beta *cos^2alpha=sin^2alpha+tan^...

sin^2alpha *sec^2beta +tan^2 beta *cos^2alpha=sin^2alpha+tan^2 beta

Complex number, The points A,B,C and D represent the numbers Z1,Z2,Z3 and Z...

The points A,B,C and D represent the numbers Z1,Z2,Z3 and Z4.ABCD is rhombus;AC=2BD.if  Z2=2+i ,Z4=1-2i,find Z1 and Z3 Ans) POI of diagonals: (3-i)/2. Using concept of rotation:

Inverse functions, Inverse Functions : In the last instance from the pr...

Inverse Functions : In the last instance from the previous section we looked at the two functions   f ( x ) = 3x - 2 and g ( x ) = x /3+ 2/3 and saw that ( f o g ) ( x )

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd