Convolution of u(t) and cos(t)

In summary, the conversation discusses the convolution of two signals, x(t) and h(t), where the output y(t) is given by y(t) = x(t)*h(t) = \int_{-\infty}^{+\infty}x(\tau)h(t-\tau)d\tau. The specific example given is the convolution of cos(t)*u(t), where u(t) is the unit step function. After some calculations, it is concluded that the result of this convolution is sin(t). However, there is confusion about the use of the notation u0(t) and the correct integration limits for the convolution. One possible solution using Laplace transform is also discussed.
  • #1
Jncik
103
0

Homework Statement


Hello, I'm revising this summer for signals and systems and I came across this convolution

[tex]cos(t)*u(t)[/tex]

Homework Equations



having two signals x(t) and h(t), where x(t) is the input signal and h(t) the impulse response

the output y(t) is given by [tex]y(t) = x(t)*h(t) = \int_{-\infty}^{+\infty}x(\tau)h(t-\tau)d\tau[/tex]

The Attempt at a Solution



[tex] cos(t)*u(t) = \int_{-\infty}^{+\infty}cos(\tau)u(t-\tau)d\tau[/tex] (1)

u(t-τ) is 1 for t-τ>0 => τ<t

hence
(1) is
[tex] \int_{-\infty}^{t}cos(\tau)d\tau = sin(\tau)|_{\tau->t, \tau->-\infty} = sin(t) - sin(-\infty) = sin(t) - undefined in [-1, 1]
[/tex]

now, I had 2 other integrals in the same exercise where the result was just sin(t), and I thought this was supposed to be sin(t) as well but I get this undefined number and I think it's wrong because I've never calculated an integral that gave me an undefined number, at least in signals and system course..

after searching in my book it had a similar integration

[tex]\int_{-\infty}^{+\infty}u_{0}(t)cos(t) dt [/tex]

[tex]u_{0}(t)[/tex] is just u(t)...

now again using the same method I would have

[tex]\int_{-\infty}^{+\infty}u_{0}(t)cos(t) dt
= \int_{0}^{+\infty}cos(t) dt = sin(t)|_{t->0,t->+\infty} = sin(0) - sin(+\infty) = -sin(+\infty)
[/tex]

which is undefined again

but he finds this result

[tex] \int_{-\infty}^{+\infty}u_{0}(t)cos(t) dt = \int_{-\infty}^{+\infty} \delta(t) dt = 1[/tex]

I'm wondering, what am I doing wrong and why does he find such result?

thanks in advance
 
Physics news on Phys.org
  • #2
Jncik said:
but he finds this result

[tex] \int_{-\infty}^{+\infty}u_{0}(t)cos(t) dt = \int_{-\infty}^{+\infty} \delta(t) dt = 1[/tex]

I'm wondering, what am I doing wrong and why does he find such result?

thanks in advance
Is that exactly what's written in the book? It doesn't look correct to me.
 
  • #3
thanks for the reply

yes I'm using oppenheim's book(2.20 exercise) about signals and systems and I saw this at the solution manual.. I may be looking at the wrong exercise, but Now I'm looking at it again and I don't think so...

so is my solution correct on this one?

actually about u0

I don't see why he uses this '0' in the notation, if I remember correct when we have a system

y(t) = x(t)

if the system is not time invariant we use this notation in order to show that the impulse response for example h2(t) comes for input δ(t-2)

and hence the convolution would be

[tex]\int_{-\infty}^{+\infty}x(\tau)*h_{\tau}(t) d\tau [/tex]

now I can't link these two facts for the notation he uses for u0.. but I don't think it affects the solution
 
  • #4
It seems strange to me too. It feels like the result should be 0.

[tex]\int_{-\infty}^\infty u(t-\tau)*cos(\tau)d\tau=\int_{t-T}^t cos(\tau)d\tau=sin(t)-sin(t-T)=0[/tex]
since
[tex]u(\tau)=0 \qquad \tau>t[/tex]
[tex]u(\tau)=1 \qquad \tau\leq t[/tex]
[tex]T=2\pi[/tex]
Sinus is periodical, that's why i integrate over one period instead of infinity. The
results should be the same = 0 for all periods.

Im not sure if I'm right. Anyone?

Maybe he have used distribution theory to solve that.
 
  • #5
thanks, this looks correct to me.. but I'm not 100% sure either because

according to the solution, the integration of d(t) will give us 1...
 
  • #6
Solutions aren't always right in books :)

I'm not 100% but if you think in the discrete case:
[tex]\sum_{m=-\infty}^\infty u(m)*cos(n-m)=\sum_0^{\infty} cos(n-m)=0[/tex]
This sum will be zero for all n, since the cos function is symmetric around the x-axis. Equally amount of positive cos values as negative cos values.
 
  • #7
Hmm... here's how I'd go about it -

[tex]y(t) = \int\limits_0^t h(t-\tau)q(\tau) \mathrm{d}\tau[/tex]

where [tex]h(t) = 1[/tex] and the limits have been adjusted accordingly. Then,

[tex]y(t) = \int\limits_0^t cos(\tau)\mathrm{d}\tau[/tex] Which of course leads to the simple integration of:

[tex]y(t) = sin(t)[/tex]

Which seems a bit trivial... but, I think we can use the Laplace Transform to take a look at this as well. Both the FT and LT are used when looking at differential and integral equations, which I think this qualifies as. If we consider that the convolution in the time domain is the same as multiplication in the Frequency domain, then taking use of these LT pairs:

[tex]u(t) = \frac{1}{s}[/tex] and [tex]cos(\alpha\,t) = \frac{s}{s^2 + \alpha^2}[/tex]

Then simply multiplying these two:

[tex]Y(s) = \frac{1}{s} \frac{s}{s^2 + \alpha^2} = \frac{1}{s^2 + \alpha^2}[/tex]

But since [tex]\alpha = 1[/tex] and the LT [tex]sin(t) = \frac{\alpha}{s^2 + \alpha^2}[/tex] we can say that:

[tex]y(t) = sin(t)[/tex]


I dunno... these are my thoughts. I definitely think your book's final last two terms for the answer are incorrect though.
 
  • #8
How did you get [tex]u(t-\tau)=u(t)[/tex]?

Of course Laplace is the best to use. Works every time :)
 
  • #9
Jaynte said:
Of course Laplace is the best to use. Works every time :)

So true... *sigh* haha

But anyways, perhaps it'd be easier to think about getting the answer if we did the shifting in the cosine term:

[tex]y(t) = \int\limits_0^t cos(t - \tau)\mathrm{d}\tau[/tex]

Now using a couple trig identities...

[tex]y(t) = \int\limits_0^t cos(\tau)cos(t) + sin(t)sin(\tau) \mathrm{d}\tau[/tex]

[tex]y(t) = [cos(t)sin(t) - sin(t)cos(t)] - [0 - sin(t)][/tex]

Then things start canceling out all prettily...

[tex]y(t) = cos(t)sin(t) - sin(t)cos(t) + sin(t)[/tex]

Yielding, once more:

[tex]y(t) = sin(t)[/tex]Perhaps that's a little clearer? I'm not one hundred percent sure on this but the solution feels right and looks right at the moment, lol.
 
Last edited:
  • #10
thanks that looks nice but I still have one more question

Ecthelion said:
Hmm... here's how I'd go about it -

[tex]y(t) = \int\limits_0^t h(t-\tau)q(\tau) \mathrm{d}\tau[/tex]

where [tex]h(t) = 1[/tex] and the limits have been adjusted accordingly. Then,

[tex]y(t) = \int\limits_0^t cos(\tau)\mathrm{d}\tau[/tex] Which of course leads to the simple integration of:

[tex]y(t) = sin(t)[/tex]

since [tex]cos(t)*u(t) = \int_{-\infty}^{+\infty} cos(\tau - t)u(\tau) d\tau [/tex]

and u(τ) is 0 for τ<0 shouldn't it be

[tex]\int_{0}^{+\infty}cos(\tau - t)d\tau = \int_{0}^{+\infty}cos(t-\tau)d\tau [/tex]

my question is about this t instead of infinity that you have on your next post, how did you find it?
 
  • #11
Well if you think about convolution - what it's doing graphically - you are shifting one of the waveforms over the other. This is the tau, but the 't' is the so-called 'limit' you're integrating to when moving one of the said waveforms across the other - presumably to infinity, which of course makes this system have an unbounded response as it should be.

If this is too vague let me know.
 
  • #12
Jncik said:
actually about u0

I don't see why he uses this '0' in the notation, if I remember correct when we have a system

y(t) = x(t)

if the system is not time invariant we use this notation in order to show that the impulse response for example h2(t) comes for input δ(t-2)

and hence the convolution would be

[tex]\int_{-\infty}^{+\infty}x(\tau)*h_{\tau}(t) d\tau [/tex]

now I can't link these two facts for the notation he uses for u0.. but I don't think it affects the solution
I dug my old linear systems analysis book out of storage to refresh my memory, and I ran across this notation as well. In this convention, u0(t) is the Dirac delta function, u-1(t) is the unit step function, etc. In this light, that integral makes sense
[tex]\int_{-\infty}^\infty u_0(t) \cos t \, dt = \int_{-\infty}^\infty \delta(t)\cos t\,dt = \int_{-\infty}^\infty \delta(t)\cos 0\,dt = \int_{-\infty}^\infty \delta(t)\,dt = 1[/tex]
 
  • #13
Jncik said:
thanks that looks nice but I still have one more question

since [tex]cos(t)*u(t) = \int_{-\infty}^{+\infty} cos(\tau - t)u(\tau) d\tau [/tex]

and u(τ) is 0 for τ<0 shouldn't it be

[tex]\int_{0}^{+\infty}cos(\tau - t)d\tau = \int_{0}^{+\infty}cos(t-\tau)d\tau [/tex]

my question is about this t instead of infinity that you have on your next post, how did you find it?
Ecthelion is actually looking at the convolution of (cos t)u(t) and u(t). These one-sided functions are what you implicitly use when working with Laplace transforms. Using them avoids the difficulties you're running into, but it also means you're not solving the original problem as given.
 
  • #14
Ahhh... I was not aware of that notation at all... definitely makes a lot more sense now, good find.
 
  • #15
What do you mean with "implicitly use"? Laplace works for all t. (both sides)

And when you use a unit step u(t) the function y(t)=cos(t)*u(t) will be one sided?
 
  • #16
Laplace transforms usually are defined with an integral from 0 to infinity. (See, for example, the second paragraph of http://mathworld.wolfram.com/LaplaceTransform.html.) Consequently, when you use them to solve a problem, you only find the solution for t≥0.

You could use the bilateral Laplace transformation. In that case, however, the transform
[tex]F(s) = \frac{s}{s^2+\omega^2}[/tex]
for instance, corresponds to the function [itex]f(t)=(\cos \omega t) u(t)[/itex], which is 0 for t<0.
 

Related to Convolution of u(t) and cos(t)

1. What is the meaning of "Convolution of u(t) and cos(t)"?

The convolution of u(t) and cos(t) is a mathematical operation that combines two functions to produce a third function. It is often used in signal processing and system analysis to model the behavior of linear systems.

2. How is the convolution of u(t) and cos(t) calculated?

The convolution of u(t) and cos(t) is calculated by integrating the product of the two functions over all possible values of the variable t. This can be represented mathematically as u(t) * cos(t) = ∫[u(τ)cos(t-τ)]dτ.

3. What is the significance of u(t) in the convolution of u(t) and cos(t)?

u(t) is known as the unit step function, which represents a sudden change in a system at time t=0. It is often used in convolution to account for the starting point of the system's response to a given input.

4. Can the convolution of u(t) and cos(t) be used to solve practical problems?

Yes, the convolution of u(t) and cos(t) can be used to solve practical problems in various fields such as engineering, physics, and economics. It is a powerful tool for analyzing system behavior and predicting future outcomes.

5. What are some real-life examples of the convolution of u(t) and cos(t)?

The convolution of u(t) and cos(t) can be seen in many real-life applications, such as predicting the response of a mechanical system to an external force, analyzing the behavior of an electrical circuit, or modeling the spread of a virus in a population.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
340
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
375
  • Calculus and Beyond Homework Help
Replies
1
Views
753
  • Calculus and Beyond Homework Help
Replies
3
Views
686
  • Calculus and Beyond Homework Help
Replies
31
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
727
  • Calculus and Beyond Homework Help
Replies
16
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
2K
  • Calculus and Beyond Homework Help
Replies
15
Views
831
Back
Top