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

Normal approximation to binomial to approximate probability, A certain flig...

A certain flight arrives on time 78% of the time. Suppose 1000 flights are randomly selected. Use the normal approximation to the binomial to approximate the probability that a)

Shares and dividend, what all can be the table contents for my maths projec...

what all can be the table contents for my maths project on shares and dividend

Triangle, we have to find the perimeter when 1 rib is 7 cm and another rib...

we have to find the perimeter when 1 rib is 7 cm and another rib is 5 cm

MUTIPLYING FRACTIONS, EVERY TIME I TRY TO DO ANY KIND OF FRACTIONS WELL MUL...

EVERY TIME I TRY TO DO ANY KIND OF FRACTIONS WELL MULTIPLYING I ALWAYS GET IT WRONG

Cenamatic, a tire placed on a balancing machine in a service station starts...

a tire placed on a balancing machine in a service station starts from rest an d turns through 4.7 revolutions in 1.2 seconds before reaching its final angular speed Calculate its a

The invisible effort on learning maths, The Invisible Effort :   Although t...

The Invisible Effort :   Although the development of children is a process, what is noticed and given recognition to is the end-product. We usually speak of children having achieve

Learning, my math skills are keeping me from getting my ged need help in al...

my math skills are keeping me from getting my ged need help in all areas

Integration, ((1/x^1/2-(x-1)^1/2)+(1/(5-3(x-1)^2)^1/2)

((1/x^1/2-(x-1)^1/2)+(1/(5-3(x-1)^2)^1/2)

Write down the first few terms of the sequences, Write down the first few t...

Write down the first few terms of each of the subsequent sequences. 1. {n+1 / n 2 } ∞ n=1 2. {(-1)n+1 / 2n} ∞ n=0 3. {bn} ∞ n=1, where bn = nth digit of ? So

Minimax regret method -decision making under uncertainty, MINIMAX regret me...

MINIMAX regret method Minimax method assumes that the decision maker will experience 'regret' after he has made the decision and the events have happened. The decision maker ch

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