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

External forces, It is the catch all force. If there are some other forces ...

It is the catch all force. If there are some other forces which we decide we need to act on our object we lump them in now and call this good. We classically call F(t) the forcing

Find out the total number people and the total number car, A national park ...

A national park remains track of how many people per car enter the park. Today, 57 cars had 4 people, 61 cars had 2 people, 9 cars had 1 person, and 5 cars had 5 people. What is th

Describe graphing equations with a positive slope, Describe Graphing Equati...

Describe Graphing Equations with a Positive Slope? There are 3 steps to graphing a linear equation: 1. Identify and plot the y-intercept. 2. Determine the slope. Use the slope

Probability - Compound Events, David wants to rent a movie. He wants to wat...

David wants to rent a movie. He wants to watch either a comedy or a drama. The movie rental store has 18 comedies and dramas available for rent. Seven of the movies are comedies, a

Permuation and combination, how many words can be formed from letters of wo...

how many words can be formed from letters of word daughter such that word contain 2vowles and 3consonant

Shares and dividend, write a short note on shares and dividend under the fo...

write a short note on shares and dividend under the following heading: shares ,type of shares,face/nominal value of shares.

Difererntial equation, Ask queFind the normalized differential equation whi...

Ask queFind the normalized differential equation which has {x, xex} as its fundamental setstion #Minimum 100 words accepted#

#title.automotive cruise control system., What are some of the interestingm...

What are some of the interestingmodern developments in cruise control systems that contrast with comparatively basic old systems

Calculate the value of expected value, The owner of TMH Hospital wants to o...

The owner of TMH Hospital wants to open a new facility in a certain area. He usually builds 25-, 50-, or 100-bed facilities, depending on whether anticipated demand is low, medium

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