Sunday, 29 September 2013

geometry - The Wobbling Staircase Function



Define the wobbling staircase function as follows:




Informally: The wobbling staircase function consists of 3 connected line segments with alternating 'size' of gradients. That is, the gradient of the second line segment is smaller than the first and that of the third is greater than the second.




Note: if you sketch this then it does look like a wobbly staircase!







Formally: Assume that the first line segment begins at the origin. If the endpoint of the first line segment is (a,d), that of the second is (b,e) aand that of the third is (c,f), then the wobbling staircase function is $$\begin{align}y=\begin{cases}\frac dax,\quad &0\le x\le a\\\frac{e-d}{b-a}x+\frac{d(b-a)-a(e-d)}{b-a},\quad & a\frac{e-d}{b-a}\implies \frac de>\frac ab$$




Define also the line joining the origin and (c,f): ytot=fcx.








Question: On what condition(s) is ytot always above each of the line segments, except for the points (0,0) and (c,f)?




Note that this is equivalent to asking when ytot does not cross the second line segment.




Bonus Question: What if I extend this is 2k+1 connected line segments? What would the constraints then be?




Answer



Informally, what you want is for the vector (cf) to lie "on the left" of the vector (ad).



Formally, this is saying that the basis ((cf),(ad)) is negatively oriented, which you check by computing the sign of its determinant. Hence ytot lies above all line segments if and only if cdaf<0.



For more line segments, you have more determinants to compute.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find limh0sin(ha)h without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...