Finding the Cubic Spline for f(x) = sin(x^2) with M and S_i Formulas

  • Thread starter nhrock3
  • Start date
  • Tags
    Cubic
In summary, you need a table of points to approximate a function and you will get the same approximation if you use four or seven points to approximate the function.
  • #1
nhrock3
415
0
find the cubic spine of
f(x)=sin(x^2)

i have two formulas
one for the M's
the other for the sums S_i

but i need a table of points
to know what indexes to put and when
here i don have
it?
 
Physics news on Phys.org
  • #2
Your question is incomplete. The is no such thing as "the" cubic spline for a function. A cubic spline is an approximation to the function and different cubic splines will give different approximations. For what interval are you to find a cubic spline approximation for this function? Since this function is not periodic, there is no (finite) cubic spline that will accurately approximate it for all x. Are you given specific "knots" (points at which the cubic "pieces" meet)? If not you can select them yourself but there are an infinite number of different "correct" answers depending upon that selection.
 
  • #3
the question said to find the aproximation of the function in that integral
[tex]\int_{0}^{\pi/2}\sin(x^2)[/tex]
 
  • #4
and i don't have a table of points

how am i supposed to do spline without points
 
  • #5
in the solution i was told that i could find M1 and from it S1

but why there only M1
why not also M2 M3
which will give us S2 S3

each S_i represents subunterval
 
  • #6
Once again, there is no such thing as "the" approximation to any thing. There are many different approximations with accuracy depending on what method you use and how much work you want to do. If you are asked to approximate that integral, using a cubic spline, and no other information is given, then you are free to decide for yourself what interpolation points and knots to use and how many you want to use.
 
  • #7
so if i will deside to use 4 points or 7 points
f(x1)=y1 etc..
and i deside which are xi's

i will get the same quadratic polinomial
?
 
  • #8
nhrock3 said:
so if i will deside to use 4 points or 7 points
f(x1)=y1 etc..
and i deside which are xi's

i will get the same quadratic polinomial
?

No, you won't. Here you are talking about a quadratic polynomial approximation, such as used in Simpson's rule for evaluating integrals, and the title of the thread asks for a cubic spline. Which is it? They aren't the same thing. Are you really just asking about Simpson's rule or something else?
 
  • #9
i need to know how could we solve any differential equation using the concept of splines ?
 

FAQ: Finding the Cubic Spline for f(x) = sin(x^2) with M and S_i Formulas

What is a cubic spline?

A cubic spline is a mathematical function used to interpolate data points in order to create a smooth curve. It is commonly used in computer graphics, engineering, and data analysis.

How does a cubic spline work?

A cubic spline works by connecting a series of data points with a series of cubic polynomials. These polynomials are chosen to ensure that the resulting curve is smooth and continuous at each data point.

What is the purpose of using a cubic spline?

The purpose of using a cubic spline is to create a smooth and continuous curve that accurately represents the data points. This allows for easier analysis and visualization of the data.

What are the advantages of using a cubic spline over other interpolation methods?

One advantage of using a cubic spline is that it produces a smooth curve without being influenced by outliers in the data. It also allows for more control over the shape of the curve, as the number and placement of data points can be adjusted.

Are there any limitations to using a cubic spline?

One limitation of using a cubic spline is that it can be computationally intensive, especially for large datasets. Additionally, it may not accurately represent the data if there are significant gaps or irregularities in the data points.

Back
Top