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

Linear Equations, Tommy has a Nexus 4 that charges poorly. He placed his ph...

Tommy has a Nexus 4 that charges poorly. He placed his phone to charge,after 20 minutes the phone was 27% and after 85 minutes the phone was at 66%. Find how many percentage the p

Evaluate the subsequent inverse trigonometric functions, Evaluate the subse...

Evaluate the subsequent inverse trigonometric functions: Evaluate the subsequent inverse trigonometric functions. arcsin   0.3746 22° arccos  0.3746 69° arctan  0.383

What is the greatest value of the number, Five more than the quotient of a ...

Five more than the quotient of a number and 2 is at least that number. What is the greatest value of the number? Let x = the number. Notice that quotient is a key word for div

PR Plan for Bloomington Bombers softball team, I need to come up with a PR ...

I need to come up with a PR plan for a fictitious women''s softball team. How much would something like that cost?

Show inverse trigonometric functions, Q. Show Inverse Trigonometric Functio...

Q. Show Inverse Trigonometric Functions? Ans. Many functions, including trig functions, are invertible. The inverse of trig functions are called ‘inverse trig functions'.

Factoring out the greatest common factor, Factoring out the greatest common...

Factoring out the greatest common factor of following polynomials.                    8x 4 - 4 x 3 + 10 x 2  Solution Primary we will notice that we can factor out a

Ampltude and period, find the amplitude and period of y=3 sin 2 pi x

find the amplitude and period of y=3 sin 2 pi x

Statistics, if the sum of mean and variance of a binomial distribution is ...

if the sum of mean and variance of a binomial distribution is 4.8 for five trials, the distribution

The Theory of Set, Set M= {m''s/m is a number from 5 to 10}

Set M= {m''s/m is a number from 5 to 10}

Linear equation, The ratio between the length and breadth of a rectangular ...

The ratio between the length and breadth of a rectangular field is 11:7. The cost of fencing it is Rs. 75,000. Find the dimensions of the field

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