B Can You Find the Function of a Random Curve on Graph Paper?

  • B
  • Thread starter Thread starter thetexan
  • Start date Start date
  • Tags Tags
    Curve Function
AI Thread Summary
It is possible to draw a random smooth curve on graph paper and approximate its defining function using polynomial interpolation, specifically by selecting multiple points and solving for coefficients. While this method provides a good approximation, it may not accurately represent the entire function if only a portion of the graph is drawn. For complex curves, cubic splines are commonly used, allowing for different cubic polynomials between points to ensure smooth transitions. Each segment's coefficients are adjusted to pass through the specified points, accommodating curves that may double back on themselves. Overall, cubic splines are effective for creating visually appealing and mathematically sound representations of curves.
thetexan
Messages
269
Reaction score
13
is it possible to draw a random curve on a piece of graph paper and find the function that defines that curve? Assuming smooth curves.

And if so,is it possible to do so with complex curves?

tex
 
Mathematics news on Phys.org
thetexan said:
is it possible to draw a random curve on a piece of graph paper and find the function that defines that curve? Assuming smooth curves.
Approximately, yes. You can choose as many points ##(x_i,y_i)## you like - the more the better - say ##n+1## many, then set ##p(x)=a_0x^n+a_1x^{n-1}+\ldots +a_{n-1}x+a_n## and solve ##p(x_i)=y_i## for the coefficients ##a_i##. That doesn't give you the correct answer in case your function is defined otherwise and you only drew a certain part of the graph, but it is a good approximation for what you have drawn.
And if so,is it possible to do so with complex curves?
How do you sketch a four dimensional graph, ##(Re(x_i)+i\cdot Im(x_i)\; , \;Re(y_i)+i\cdot Im(y_i))\,?##
 
In general the most common approach, the one that is used in computer graphics to go through an arbitrary set of points, is cubic splines. Between each pair of points is a different cubic polynomial ##y = a_0 + a_1 x + a_2 x^2 + a_3 x^3## with different coefficients. There are four free coefficients on each segment which are chosen so that the curves pass through the points and also meet smoothly.

For a complex curve, you'd use separate splines for the real and imaginary parts. I've done that on a number of occasions in fact.

Similarly, for a curve that doubles back on itself like a circle or something more complicated, you would use separate cubics for ##x## and ##y##.

There are infinitely many smooth curves that go through a given set of points, since you aren't restricting what happens between those points. But cubic splines usually give a natural looking curve, one that follows the points in a way you would expect.
 
Quiet helpful. thank you!
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top