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

Rolles theorem, Rolle's Theorem  Assume f(x) is a function which satis...

Rolle's Theorem  Assume f(x) is a function which satisfies all of the following. 1. f(x) is continuous in the closed interval [a,b]. 2. f(x) is differentiable in the ope

Prove that its inclination is given by cot = b cot - a, Two stations due...

Two stations due south of a leaning tower which leans towards the north are at distances a and b from its foot.  If α ,  β be the elevations of the top of the tower from these

Permutations and Combinations, How many 4 digit number lass than 6000 can b...

How many 4 digit number lass than 6000 can be made with the digits 7,6,4 and 2 if digits are not repeated?

Definite integral, from 0->1: Int sqrt(1-x^2) Solution) I=∫sqrt(1-x 2 ...

from 0->1: Int sqrt(1-x^2) Solution) I=∫sqrt(1-x 2 )dx = sqrt(1-x 2 )∫dx - ∫{(-2x)/2sqrt(1-x 2 )}∫dx ---->(INTEGRATION BY PARTS)        = x√(1-x 2 ) - ∫-x 2 /√(1-x 2 ) Let

Example for pre-operational stage learning maths, E1) I have a three-year-o...

E1) I have a three-year-old friend. He has a lot of toy cars to play with. Playing with him once, I divided the cars into two sets. One set was more spread out and had 14 cars in i

Help me please, Cristiano Ronaldo runs 33.6 kilometres per hour. Usain Bolt...

Cristiano Ronaldo runs 33.6 kilometres per hour. Usain Bolt set world record for running 100 m at 9.58 sec. Show me how to compare these two sportsmen. Step by step.

Adding fractions with different denominators, Q. How to Add Fractions with ...

Q. How to Add Fractions with Different Denominators? Ans. Here's the main thing to remember about adding fractions with different denominators-you can't! Fractions with di

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