Any equation that fits in this shape? (variable concavity)

  • Context: Undergrad 
  • Thread starter Thread starter mikejm
  • Start date Start date
  • Tags Tags
    Shape
Click For Summary
SUMMARY

The discussion focuses on deriving an equation for audio synthesis that passes through the points (0,1) and (1,0) while allowing for variable concavity and convexity. The proposed equation is based on the transformation of a circle centered at (b,b) with a radius defined to intersect the specified points. The final equation, y = 1 - (1 - (1 - x)^a)^{1/a}, demonstrates how varying the parameter a alters the shape of the curve, with a=1 yielding a straight line and a=2 producing a quarter-circle. This approach ensures symmetry along the line y=x.

PREREQUISITES
  • Understanding of basic algebra and geometry
  • Familiarity with audio synthesis concepts
  • Knowledge of parametric equations
  • Experience with mathematical modeling of curves
NEXT STEPS
  • Explore the implications of varying the parameter a in the equation y = 1 - (1 - (1 - x)^a)^{1/a}
  • Research the application of parametric equations in audio synthesis techniques
  • Investigate the mathematical properties of symmetric curves
  • Learn about circle equations and their transformations in coordinate geometry
USEFUL FOR

Audio engineers, mathematicians, and developers involved in audio synthesis projects who require a mathematical foundation for creating variable concavity and convexity in waveforms.

mikejm
Messages
40
Reaction score
2
I'm working on an audio synthesis project and I need an equation that can create these lines:

equation.PNG


That is, I would like an equation that describes a line that always passes through (0,1) and (1,0), and has a single coefficient parameter that can be varied to create functions of intermediate concavity/convexity like the red line shown.

The concavity/convexity should be symmetric as if mirrored along the line of y=x between the boundaries of (0,1) and (1,0). Anything outside that range is irrelevant.

Is there an equation that can do this?
 

Attachments

  • equation.PNG
    equation.PNG
    10.6 KB · Views: 871
Last edited:
Mathematics news on Phys.org
If I set the center of circle to be (x,y) = (b,b) for b>=1, and then set the radius of the circle to cross through (1,0) and (0,1):
r = sqrt(bb+ (bb-1)) = sqrt(2bb - 1)
then the equation for the circle will be:
(x-b)^2 + (y-b)^2 = bb +(b-1)^2
xx-2xb+bb+yy-2yb+bb = 2bb-2b+1
xx-2xb+bb+yy-2yb+bb-2bb+2b-1 = 0
xx-2xb+yy-2yb+2b-1 = 0
y = (2b+/-sqrt(2bb-4(xx-2xb+2b-1)))/2
y = b+/-sqrt(bb-(xx-2xb+2b-1))

but we only want the bottom of the circle, so:
y = b-sqrt(bb-(xx-2xb+2b-1))
 
##(1-x)^a + (1-y)^a = 1## - this can be solved for y if you prefer that: ##y=1-(1-(1-x)^a)^{1/a}##

a=1 gives a straight line, a=2 gives a quarter-circle, larger a give something that passes closer to (0,0). It is always symmetric as you can see from the first equation.
Example curves.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K