Can You Create a Single Equation for Multiple Time-Dependent Cosine Functions?

  • Thread starter Thread starter ACLerok
  • Start date Start date
  • Tags Tags
    Function Periodic
Click For Summary
SUMMARY

The discussion centers on the feasibility of creating a single equation for multiple time-dependent cosine functions defined over specific intervals. The proposed solution utilizes the Heaviside step function to combine the functions into one equation: f(t) = cos(2pi f1 t) + ((cos(2pi f2 t) - cos(2pi f1 t))H(t-4) + (cos(2pi f3 t) - cos(2pi f2 t))H(t-8)). This equation effectively transitions between the different cosine functions based on the value of t, providing a clear representation of the combined behavior over the specified intervals.

PREREQUISITES
  • Understanding of cosine functions and their properties
  • Familiarity with the Heaviside step function
  • Basic knowledge of piecewise functions
  • Experience with MATLAB for graphing and function manipulation
NEXT STEPS
  • Study the Heaviside step function and its applications in piecewise functions
  • Learn how to implement piecewise functions in MATLAB
  • Explore Fourier series and their relation to periodic functions
  • Investigate other mathematical tools for combining functions, such as Laplace transforms
USEFUL FOR

Mathematicians, engineers, and students working with signal processing or control systems who need to model time-dependent functions effectively.

ACLerok
Messages
194
Reaction score
0
Given:
x(t) =
cos(2*pi*f1*t) 0 <= t < 4
cos(2*pi*f2*t) 4 <= t < 8
cos(2*pi*f3*t) 8 <= t < 12

f1, f2, and f3 are given as well

Would it be possible to combine all three of these conditions into one convenient equation or am I just dreaming? I tried using Matlab to concatenate the three graphs, but it won't give me an equation of it.
 
Last edited:
Physics news on Phys.org
I'm not sure what you mean by a "convenient" equation. What you have is a perfectly good function, You could use the "Heaviside step function" which is defined by H(x)= 0 if x<= 0, H(x)= 1 if x> 0.

Then f(t)= cos(2pi f1 t)+ ((cos(2pi f2 t)- cos(2pi f1 t))H(t-4)+ (cos(2pi f3 t)- cos(2pi f2 t))H(t-8).

for 0<= t<= 4, both t-4< 0 and t-8< 0 so both H(t-4) and H(t-8) are 0 and only the first term, cos(2pi f1 t), is non zero. For 4< t<= 8, t-4> 0 so H(t-4)= 1 but H(t-8) is still 0: f(t)= cos(2pi f1 t)+ cos(2pi f2 t)- cos(2pi f1 t)= cos(2pi f2 t). If 8< t<= 12, both t-4> 0 and t-8>0 so both H(t-4) and H(t-8) are 1. f(t)= cos(2pi f1 t)+ cos(2pi f2 t)- cos(2pi f1 t)+ cos(2pi f3 t)- cos(2pi f2 t)= cos(2pi f3 t).

But is cos(2pi f1 t)+ ((cos(2pi f2 t)- cos(2pi f1 t))H(t-4)+ (cos(2pi f3 t)- cos(2pi f2 t))H(t-8) better than what you have?
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
6
Views
1K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K