Finding equation of a curve

  • #1
davidmandis
1
0
Hi,
I need to find a single equation to represent the curve shown in the attached figure. I have access to MATLAB if that will help. Can anyone help me out?

Thanks,
David
 

Attachments

  • curve.JPG
    curve.JPG
    19.7 KB · Views: 419

Answers and Replies

  • #2
HallsofIvy
Science Advisor
Homework Helper
43,021
970
What exactly do you mean by "a single equation"? That can be simply written as a "piecewise linear function": f(x)= x/2000 if x[itex]\le[/itex] 4000, f(x)= 2 if x> 4000.

If you want a "single expression", use the Heaviside function H(x) which is defined by "H(x)= 0 if x[itex]\le[/itex] 0, H(x)= 1 if x> 1". We can fit it to f by taking H(x- 4000).

f(x)= x/20000 + H(x- 4000)(4000- x/2000)

If x[itex]\le[/itex]4000, H(x- 4000)= 0 so f(x)= 1/2000. If x> 4000, H(x- 4000)= 1 so f(x)= 1/2000+ 4000- x/2000= 4000.
 

Suggested for: Finding equation of a curve

  • Last Post
Replies
1
Views
431
Replies
49
Views
2K
Replies
4
Views
853
  • Last Post
Replies
1
Views
381
Replies
17
Views
663
Replies
3
Views
380
Replies
2
Views
239
Replies
1
Views
493
  • Last Post
Replies
5
Views
305
  • Last Post
Replies
17
Views
871
Top