What is the equation for a polynomial curve connecting two straight tracks?

  • Thread starter Thread starter roadrunner
  • Start date Start date
  • Tags Tags
    Curve Polynomial
roadrunner
Messages
101
Reaction score
0
"let's consider the problem of connnecting a railroad track to make a smooth transition between sections of straight ttrack. Existing track along the negative x-axis is to be joined smoothly to a track on the line y=1 for x>=1.

find a polynomial P=P(x) of degree 5 such that the following function F is defined by

...0 if x<=1
F(x) =P(x) if 0<x)1
...1 if x>= 1



no idea how to start other than drawing a picture!

Code:
                ____________ (y=1)
               /\
(y=0)____      ||
        /\     ||
        ||     ||
      (x=0) (x=1)
**ignore all the peroids, they are for spacing as this does not put large amounts of spaces.**

and betwwen those two lines i need an equation for a line that looks kind of like a squished "S" on a 45 degree angle (hard to describe)

how do i go about making that equation? where do i even start?

edit...tried that code thing
 
Last edited:
Physics news on Phys.org
Use [ code ] ... [ /code ] around an ASCII picture: it will retain your spaces, and all characters will have an equal width.
 
ok thanks that worked...but I am stuill stuck on the problem! :D
 
So you want a polynomial P(x) of degree 5: P(x)= ax5+ bx4+ cx3+ dx2+ ex+ f such that:
P(0)= 0
P(1)= 1 so the tracks meet!
P'(0)= 0
P'(1)= 0 so there is not a "corner" where they meet.
That much should be obvious from your picture. But's that's only 4 conditions for 6 coefficients. You need two more. In order that the transition be smooth you also need:
P"(0)= 0
p"(1)= 0
That gives you 6 equations to solve for the 6 coefficients.
 
oh that makes sense thanks

but why does p''(0) and p''(1)mean smooth?
 
so i get
a=6
b= -15
c=10
d=0
e=0
f=0

that looks right to me?

so my equation is 6ax^5 -15x^4+10x^3=P(x)?

PS: how do u make the ^2 appear normal? (IE without using a ^)
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top