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

  • Thread starter Thread starter nhrock3
  • Start date Start date
  • Tags Tags
    Cubic
Click For Summary

Homework Help Overview

The discussion revolves around finding a cubic spline approximation for the function f(x) = sin(x^2), particularly in the context of approximating the integral from 0 to π/2. Participants are exploring the requirements and implications of constructing a cubic spline without having a predefined set of points.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants are questioning the necessity of specific points (knots) for constructing a cubic spline and discussing the implications of choosing different numbers of points for approximation. There is also confusion regarding the relationship between cubic splines and other polynomial approximations.

Discussion Status

The discussion is ongoing, with participants raising questions about the nature of cubic splines and their dependence on chosen points. Some guidance has been offered regarding the flexibility in selecting interpolation points, but there remains uncertainty about the implications of these choices and the differences between cubic splines and other approximation methods.

Contextual Notes

Participants are working under the constraint of not having a table of points to use for the cubic spline, which is leading to questions about how to proceed with the approximation. There is also a mention of the integral that needs to be approximated, which adds to the complexity of the discussion.

nhrock3
Messages
403
Reaction score
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
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.
 
the question said to find the aproximation of the function in that integral
\int_{0}^{\pi/2}\sin(x^2)
 
and i don't have a table of points

how am i supposed to do spline without points
 
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
 
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.
 
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
?
 
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?
 
i need to know how could we solve any differential equation using the concept of splines ?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
4
Views
4K