Elementary Signals: 1.1 Signals Described in Math Form
Elementary Signals: 1.1 Signals Described in Math Form
Orchard Publications
Chapter 1
Elementary Signals
his chapter begins with a discussion of elementary signals that may be applied to electric net-
works. The unit step, unit ramp, and delta functions are introduced. The sampling and sifting
properties of the delta function are defined and derived. Several examples for expressing a vari-
ety of waveforms in terms of these elementary signals are provided.
1.1 Signals Described in Math Form
Consider the network of Figure 1.1 where the switch is closed at time .
Figure 1.1. A switched network with open terminals.
We wish to describe in a math form for the time interval . To do this, it is conve-
nient to divide the time interval into two parts, , and .
For the time interval , the switch is open and therefore, the output voltage is zero. In
other words,
(1.1)
For the time interval , the switch is closed. Then, the input voltage appears at the output,
i.e.,
(1.2)
Combining (1.1) and (1.2) into a single relationship, we get
(1.3)
We can express (1.3) by the waveform shown in Figure 1.2.
T
t 0 =
+
v
out
v
S
t 0 =
R
open terminals
v
out
t + < <
t 0 < < 0 t < <
t 0 < < v
out
v
out
0 for t 0 < < =
0 t < < v
S
v
out
v
S
for 0 t < < =
v
out
0 t 0 < <
v
S
0 t < <
=
Chapter 1 Elementary Signals
1-2 Signals and Systems with MATLAB Applications, Second Edition
Orchard Publications
Figure 1.2. Waveform for as defined in relation (1.3)
The waveform of Figure 1.2 is an example of a discontinuous function. A function is said to be dis-
continuous if it exhibits points of discontinuity, that is, the function jumps from one value to another
without taking on any intermediate values.
1.2 The Unit Step Function
A well-known discontinuous function is the unit step function
*
that is defined as
(1.4)
It is also represented by the waveform of Figure 1.3.
Figure 1.3. Waveform for
In the waveform of Figure 1.3, the unit step function changes abruptly from to at .
But if it changes at instead, it is denoted as . Its waveform and definition are as
shown in Figure 1.4 and relation (1.5).
Figure 1.4. Waveform for
* In some books, the unit step function is denoted as , that is, without the subscript 0. In this text, however, we
will reserve the designation for any input when we discuss state variables in a later chapter.
0
v
out
v
S
t
v
out
u
0
t ( )
u
0
t ( )
u t ( )
u t ( )
u
0
t ( )
0 t 0 <
1 t 0 >
=
u
0
t ( )
0
1
t
u
0
t ( )
u
0
t ( ) 0 1 t 0 =
t t
0
= u
0
t t
0
( )
1
t
0
0
u
0
t t
0
( )
t
u
0
t t
0
( )
Signals and Systems with MATLAB Applications, Second Edition 1-3
Orchard Publications
The Unit Step Function
(1.5)
If the unit step function changes abruptly from to at , it is denoted as . Its
waveform and definition are as shown in Figure 1.5 and relation (1.6).
Figure 1.5. Waveform for
(1.6)
Example 1.1
Consider the network of Figure 1.6, where the switch is closed at time .
Figure 1.6. Network for Example 1.1
Express the output voltage as a function of the unit step function, and sketch the appropriate
waveform.
Solution:
For this example, the output voltage for , and for . Therefore,
(1.7)
and the waveform is shown in Figure 1.7.
u
0
t t
0
( )
0 t t
0
<
1 t t
0
>
=
0 1 t t
0
= u
0
t t
0
+ ( )
t
t
0
0
1
u
0
t t
0
+ ( )
u
0
t t
0
+ ( )
u
0
t t
0
+ ( )
0 t t
0
<
1 t t
0
>
=
t T =
+
v
out
v
S
t T =
R
open terminals
v
out
v
out
0 = t T < v
out
v
S
= t T >
v
out
v
S
u
0
t T ( ) =
Chapter 1 Elementary Signals
1-4 Signals and Systems with MATLAB Applications, Second Edition
Orchard Publications
Figure 1.7. Waveform for Example 1.1
Other forms of the unit step function are shown in Figure 1.8.
Figure 1.8. Other forms of the unit step function
Unit step functions can be used to represent other time-varying functions such as the rectangular
pulse shown in Figure 1.9.
Figure 1.9. A rectangular pulse expressed as the sum of two unit step functions
Thus, the pulse of Figure 1.9(a) is the sum of the unit step functions of Figures 1.9(b) and 1.9(c) is
represented as .
T
t
0
v
S
u
0
t T ( )
v
out
0
t
t
t
t
0
0 0
0
0
0
t
t t
0
0
t t
t
v t ( )
3T
A
0
A
T 2T
A t 0 = t T =
v
1
t ( ) A u
0
t ( ) u
0
t T ( ) [ ] =
A t T = t 2T =
v
2
t ( ) A u
0
t T ( ) u
0
t 2T ( ) [ ] =
A t 2T = t 3T =
v
3
t ( ) A u
0
t 2T ( ) u
0
t 3T ( ) [ ] =
A t 3T = t 4T =
v
4
t ( ) A u
0
t 3T ( ) u
0
t 4T ( ) [ ] =
Chapter 1 Elementary Signals
1-6 Signals and Systems with MATLAB Applications, Second Edition
Orchard Publications
(1.12)
Combining like terms, we get
(1.13)
Example 1.3
Express the symmetric rectangular pulse of Figure 1.11 as a sum of unit step functions.
Figure 1.11. Symmetric rectangular pulse for Example 1.3
Solution:
This pulse has height , starts at , and terminates at . Therefore, with reference to
Figures 1.5 and 1.8 (b), we get
(1.14)
Example 1.4
Express the symmetric triangular waveform of Figure 1.12 as a sum of unit step functions.
Figure 1.12. Symmetric triangular waveform for Example 1.4
Solution:
We first derive the equations for the linear segments and shown in Figure 1.13.
v t ( ) v
1
t ( ) v
2
t ( ) v
3
t ( ) v
4
t ( ) + + + =
A u
0
t ( ) u
0
t T ( ) [ ] A u
0
t T ( ) u
0
t 2T ( ) [ ] =
+A u
0
t 2T ( ) u
0
t 3T ( ) [ ] A u
0
t 3T ( ) u
0
t 4T ( ) [ ]
v t ( ) A u
0
t ( ) 2u
0
t T ( ) 2u
0
t 2T ( ) 2u
0
t 3T ( ) + + [ ] =
t
A
T 2
T 2
0
i t ( )
A t T 2 = t T 2 =
i t ( ) Au
0
t
T
2
--- +
Au
0
t
T
2
---
A u
0
t
T
2
--- +
u
0
t
T
2
---
= =
t
1
0
T 2
v t ( )
T 2
Signals and Systems with MATLAB Applications, Second Edition 1-7
Orchard Publications
The Unit Step Function
Figure 1.13. Equations for the linear segments of Figure 1.12
For line segment ,
(1.15)
and for line segment ,
(1.16)
Combining (1.15) and (1.16), we get
(1.17)
Example 1.5
Express the waveform of Figure 1.14 as a sum of unit step functions.
Figure 1.14. Waveform for Example 1.5.
Solution:
As in the previous example, we first find the equations of the linear segments and shown in Fig-
ure 1.15.
t
1
0
T 2
v t ( )
T 2
2
T
--- t 1 +
2
T
--- t 1 +
v
1
t ( )
2
T
--- t 1 +
u
0
t
T
2
--- +
u
0
t ( ) =
v
2
t ( )
2
T
--- t 1 +
u
0
t ( ) u
0
t
T
2
---
=
v t ( ) v
1
t ( ) v
2
t ( ) + =
2
T
--- t 1 +
u
0
t
T
2
--- +
u
0
t ( )
2
T
--- t 1 +
u
0
t ( ) u
0
t
T
2
---
+ =
1
2
3
1 2
3
0
t
v t ( )
Chapter 1 Elementary Signals
1-8 Signals and Systems with MATLAB Applications, Second Edition
Orchard Publications
Figure 1.15. Equations for the linear segments of Figure 1.14
Following the same procedure as in the previous examples, we get
Multiplying the values in parentheses by the values in the brackets, we get
or
and combining terms inside the brackets, we get
(1.18)
Two other functions of interest are the unit ramp function, and the unit impulse or delta function. We
will introduce them with the examples that follow.
Example 1.6
In the network of Figure 1.16 is a constant current source and the switch is closed at time .
Figure 1.16. Network for Example 1.6
1
2
3
1 2
3
0
2t 1 +
v t ( )
t
t 3 +
v t ( ) 2t 1 + ( ) u
0
t ( ) u
0
t 1 ( ) [ ] 3 u
0
t 1 ( ) u
0
t 2 ( ) [ ] + =
+ t 3 + ( ) u
0
t 2 ( ) u
0
t 3 ( ) [ ]
v t ( ) 2t 1 + ( )u
0
t ( ) 2t 1 + ( )u
0
t 1 ( ) 3u
0
t 1 ( ) + =
3u
0
t 2 ( ) t 3 + ( )u
0
t 2 ( ) t 3 + ( )u
0
t 3 ( ) +
v t ( ) 2t 1 + ( )u
0
t ( ) 2t 1 + ( ) 3 + [ ]u
0
t 1 ( ) + =
+ 3 t 3 + ( ) + [ ]u
0
t 2 ( ) t 3 + ( )u
0
t 3 ( )
v t ( ) 2t 1 + ( )u
0
t ( ) 2 t 1 ( )u
0
t 1 ( ) t u
0
t 2 ( ) t 3 ( )u
0
t 3 ( ) + =
i
S
t 0 =
v
C
t ( )
t 0 =
i
S
R
C
+
Signals and Systems with MATLAB Applications, Second Edition 1-9
Orchard Publications
The Unit Step Function
Express the capacitor voltage as a function of the unit step.
Solution:
The current through the capacitor is , and the capacitor voltage is
*
(1.19)
where is a dummy variable.
Since the switch closes at , we can express the current as
(1.20)
and assuming that for , we can write (1.19) as
(1.21)
or
(1.22)
Therefore, we see that when a capacitor is charged with a constant current, the voltage across it is a
linear function and forms a ramp with slope as shown in Figure 1.17.
Figure 1.17. Voltage across a capacitor when charged with a constant current source.
* Since the initial condition for the capacitor voltage was not specified, we express this integral with at the
lower limit of integration so that any non-zero value prior to would be included in the integration.
v
C
t ( )
i
C
t ( ) i
S
cons t tan = = v
C
t ( )
v
C
t ( )
1
C
---- i
C
( ) d
t
=
t 0 <
t 0 = i
C
t ( )
i
C
t ( ) i
S
u
0
t ( ) =
v
C
t ( ) 0 = t 0 <
v
C
t ( )
1
C
---- i
S
u
0
( ) d
t
i
S
C
---- u
0
( ) d
0
0
i
S
C
---- u
0
( ) d
0
t
+ = =
v
C
t ( )
i
S
C
----- tu
0
t ( ) =
i
S
C
v
C
t ( )
0
slope i
S
C =
t
Chapter 1 Elementary Signals
1-10 Signals and Systems with MATLAB Applications, Second Edition
Orchard Publications
1.3 The Unit Ramp Function
The unit ramp function, denoted as , is defined as
(1.23)
where is a dummy variable.
We can evaluate the integral of (1.23) by considering the area under the unit step function from
as shown in Figure 1.18.
Figure 1.18. Area under the unit step function from
Therefore, we define as
(1.24)
Since is the integral of , then must be the derivative of , i.e.,
(1.25)
Higher order functions of can be generated by repeated integration of the unit step function. For
example, integrating twice and multiplying by 2, we define as
(1.26)
Similarly,
(1.27)
and in general,
u
1
t ( )
u
1
t ( )
u
1
t ( ) u
0
( ) d
t
u
0
t ( )
to t
Area 1 t = = =
1
t
to t
u
1
t ( )
u
1
t ( )
0 t 0 <
t t 0
=
u
1
t ( ) u
0
t ( ) u
0
t ( ) u
1
t ( )
d
dt
-----u
1
t ( ) u
0
t ( ) =
t
u
0
t ( ) u
2
t ( )
u
2
t ( )
0 t 0 <
t
2
t 0
= or u
2
t ( ) 2 u
1
( ) d
t
=
u
3
t ( )
0 t 0 <
t
3
t 0
= or u
3
t ( ) 3 u
2
( ) d
t
=
Signals and Systems with MATLAB Applications, Second Edition 1-11
Orchard Publications
The Unit Ramp Function
(1.28)
Also,
(1.29)
Example 1.7
In the network of Figure 1.19, the switch is closed at time and for .
Figure 1.19. Network for Example 1.7
Express the inductor current in terms of the unit step function.
Solution:
The voltage across the inductor is
(1.30)
and since the switch closes at ,
(1.31)
Therefore, we can write (1.30) as
(1.32)
But, as we know, is constant ( or ) for all time except at where it is discontinuous.
Since the derivative of any constant is zero, the derivative of the unit step has a non-zero value
only at . The derivative of the unit step function is defined in the next section.
u
n
t ( )
0 t 0 <
t
n
t 0
= or u
n
t ( ) 3 u
n 1
( ) d
t
=
u
n 1
t ( )
1
n
---
d
dt
-----u
n
t ( ) =
t 0 = i
L
t ( ) 0 = t 0 <
R
i
S
t 0 =
L
v
L
t ( )
i
L
t ( )
+
i
L
t ( )
v
L
t ( ) L
di
L
dt
------- =
t 0 =
i
L
t ( ) i
S
u
0
t ( ) =
v
L
t ( ) Li
S
d
dt
-----u
0
t ( ) =
u
0
t ( ) 0 1 t 0 =
u
0
t ( )
t 0 =
Chapter 1 Elementary Signals
1-12 Signals and Systems with MATLAB Applications, Second Edition
Orchard Publications
1.4 The Delta Function
The unit impulse or delta function, denoted as , is the derivative of the unit step . It is also
defined as
(1.33)
and
(1.34)
To better understand the delta function , let us represent the unit step as shown in Figure
1.20 (a).
Figure 1.20. Representation of the unit step as a limit.
The function of Figure 1.20 (a) becomes the unit step as . Figure 1.20 (b) is the derivative of
Figure 1.20 (a), where we see that as , becomes unbounded, but the area of the rectangle
remains . Therefore, in the limit, we can think of as approaching a very large spike or impulse
at the origin, with unbounded amplitude, zero width, and area equal to .
Two useful properties of the delta function are the sampling property and the sifting property.
1.5 Sampling Property of the Delta Function
The sampling property of the delta function states that
(1.35)
or, when ,
(1.36)
t ( )
t ( ) u
0
t ( )
( ) d
t
u
0
t ( ) =
t ( ) 0 for all t 0 =
t ( ) u
0
t ( )
1
2
Figure (a)
Figure (b)
Area =1
1
t
t
0
0
0
0 1 2
1 t ( )
1
t ( )
f t ( ) t a ( ) f a ( ) t ( ) =
a 0 =
f t ( ) t ( ) f 0 ( ) t ( ) =
Signals and Systems with MATLAB Applications, Second Edition 1-13
Orchard Publications
Sifting Property of the Delta Function
that is, multiplication of any function by the delta function results in sampling the function
at the time instants where the delta function is not zero. The study of discrete-time systems is based
on this property.
Proof:
Since then,
(1.37)
We rewrite as
(1.38)
Integrating (1.37) over the interval and using (1.38), we get
(1.39)
The first integral on the right side of (1.39) contains the constant term ; this can be written out-
side the integral, that is,
(1.40)
The second integral of the right side of (1.39) is always zero because
and
Therefore, (1.39) reduces to
(1.41)
Differentiating both sides of (1.41), and replacing with , we get
(1.42)
1.6 Sifting Property of the Delta Function
The sifting property of the delta function states that
f t ( ) t ( )
t ( ) 0 for t 0 and t 0 > < =
f t ( ) t ( ) 0 for t 0 and t 0 > < =
f t ( )
f t ( ) f 0 ( ) f t ( ) f 0 ( ) [ ] + =
to t
f ( ) ( ) d
t
f 0 ( ) ( ) d
t
f ( ) f 0 ( ) [ ] ( ) d
t
+ =
f 0 ( )
f 0 ( ) ( ) d
t
f 0 ( ) ( ) d
t
=
t ( ) 0 for t 0 and t 0 > < =
f ( ) f 0 ( ) [ ]
0 =
f 0 ( ) f 0 ( ) 0 = =
f ( ) ( ) d
t
f 0 ( ) ( ) d
t
=
t
f t ( ) t ( ) f 0 ( ) t ( ) =
Sampling Property of t ( )
t ( )
Chapter 1 Elementary Signals
1-14 Signals and Systems with MATLAB Applications, Second Edition
Orchard Publications
(1.43)
that is, if we multiply any function by , and integrate from , we will obtain the
value of evaluated at .
Proof:
Let us consider the integral
(1.44)
We will use integration by parts to evaluate this integral. We recall from the derivative of products
that
(1.45)
and integrating both sides we get
(1.46)
Now, we let ; then, . We also let ; then, . By substitu-
tion into (1.46), we get
(1.47)
We have assumed that ; therefore, for , and thus the first term of the
right side of (1.47) reduces to . Also, the integral on the right side is zero for , and there-
fore, we can replace the lower limit of integration by . We can now rewrite (1.47) as
and letting , we get
(1.48)
f t ( ) t ( ) t d
f ( ) =
f t ( ) t ( ) to +
f t ( ) t =
f t ( ) t ( ) t where a b < < d
a
b
xy y x d
=
x f t ( ) = dx f t ( )
= dy t ( ) = y u
0
t ( ) =
f t ( ) t ( ) t d
a
b
f t ( )u
0
t ( )
a
b
u
0
t ( )f t ( )
t d
a
b
=
a b < < u
0
t ( ) 0 = a <
f b ( ) a <
a
f t ( ) t ( ) t d
a
b
f b ( ) f t ( )
t d
f b ( ) f b ( ) f ( ) + = =
a and b for any <
f t ( ) t ( ) t d
f ( ) =
Sifting Property of t ( )
Signals and Systems with MATLAB Applications, Second Edition 1-15
Orchard Publications
Higher Order Delta Functions
1.7 Higher Order Delta Functions
An nth-order delta function is defined as the derivative of , that is,
(1.49)
The function is called doublet, is called triplet, and so on. By a procedure similar to the
derivation of the sampling property of the delta function, we can show that
(1.50)
Also, the derivation of the sifting property of the delta function can be extended to show that
(1.51)
Example 1.8
Evaluate the following expressions:
a.
b.
c.
Solution:
a. The sampling property states that For this example, and
. Then,
b. The sifting property states that . For this example, and .
Then,
c. The given expression contains the doublet; therefore, we use the relation
nth u
0
t ( )
n
t ( )
n
dt
----- u
0
t ( ) [ ] =
' t ( ) '' t ( )
f t ( )' t a ( ) f a ( )' t a ( ) f
' a ( ) t a ( ) =
f t ( )
n
t ( ) t d
1 ( )
n d
n
dt
n
-------- f t ( ) [ ]
t =
=
3t
4
t 1 ( )
t t 2 ( ) t d
t
2
' t 3 ( )
f t ( ) t a ( ) f a ( ) t a ( ) = f t ( ) 3t
4
=
a 1 =
3t
4
t 1 ( ) 3t
4
t 1 =
{ } t 1 ( ) 3 t 1 ( ) = =
f t ( ) t ( ) t d
f ( ) = f t ( ) t = 2 =
t t 2 ( ) t d
f 2 ( ) t
t 2 =
2 = = =
Chapter 1 Elementary Signals
1-16 Signals and Systems with MATLAB Applications, Second Edition
Orchard Publications
Then, for this example,
Example 1.9
a. Express the voltage waveform shown in Figure 1.21 as a sum of unit step functions for the
time interval .
b. Using the result of part (a), compute the derivative of and sketch its waveform.
Figure 1.21. Waveform for Example 1.9
Solution:
a. We first derive the equations for the linear segments of the given waveform. These are shown in
Figure 1.22.
Next, we express in terms of the unit step function , and we get
(1.52)
Multiplying and collecting like terms in (1.52), we get
f t ( )' t a ( ) f a ( )' t a ( ) f
' a ( ) t a ( ) =
t
2
' t 3 ( ) t
2
t 3 =
' t 3 ( )
d
dt
-----t
2
t 3 =
t 3 ( ) =
9' t 3 ( ) 6 t 3 ( ) =
v t ( )
1 t 7 s < <
v t ( )
1
2
1
1
2
3
1 2 3 4 5
6
7
0
V ( )
t s ( )
v t ( )
v t ( ) u
0
t ( )
v t ( ) 2t u
0
t 1 + ( ) u
0
t 1 ( ) [ ] 2 u
0
t 1 ( ) u
0
t 2 ( ) [ ] + =
+ t 5 + ( ) u
0
t 2 ( ) u
0
t 4 ( ) [ ] u
0
t 4 ( ) u
0
t 5 ( ) [ ] +
+ t 6 + ( ) u
0
t 5 ( ) u
0
t 7 ( ) [ ]
Signals and Systems with MATLAB Applications, Second Edition 1-17
Orchard Publications
Higher Order Delta Functions
Figure 1.22. Equations for the linear segments of Figure 1.21
or
b. The derivative of is
(1.53)
From the given waveform, we observe that discontinuities occur only at , , and
. Therefore, , , and , and the terms that contain these
delta functions vanish. Also, by application of the sampling property,
and by substitution into (1.53), we get
1
2
1
1
2
3
1 2 3 4 5 6 7
0
v t ( )
t 6 +
t 5 +
2t
t s ( )
V ( )
v t ( )
v t ( ) 2tu
0
t 1 + ( ) 2tu
0
t 1 ( ) 2u
0
t 1 ( ) 2u
0
t 2 ( ) tu
0
t 2 ( ) =
+5u
0
t 2 ( ) tu
0
t 4 ( ) 5u
0
t 4 ( ) u
0
t 4 ( ) u
0
t 5 ( ) + +
tu
0
t 5 ( ) 6u
0
t 5 ( ) tu
0
t 7 ( ) 6u
0
t 7 ( ) + +
v t ( ) 2tu
0
t 1 + ( ) 2t 2 + ( )u
0
t 1 ( ) t 3 + ( )u
0
t 2 ( ) + + =
+ t 4 ( )u
0
t 4 ( ) t 5 + ( )u
0
t 5 ( ) t 6 ( )u
0
t 7 ( ) + +
v t ( )
dv
dt
------ 2u
0
t 1 + ( ) 2t t 1 + ( ) 2u
0
t 1 ( ) 2t 2 + ( ) t 1 ( ) + + =
u
0
t 2 ( ) t 3 + ( ) t 2 ( ) u
0
t 4 ( ) t 4 ( ) t 4 ( ) + + +
u
0
t 5 ( ) t 5 + ( ) t 5 ( ) u
0
t 7 ( ) t 6 ( ) t 7 ( ) + + +
t 1 = t 2 =
t 7 = t 1 ( ) 0 = t 4 ( ) 0 = t 5 ( ) 0 =
2t t 1 + ( ) 2t
t 1 =
{ } t 1 + ( ) 2 t 1 + ( ) = =
t 3 + ( ) t 2 ( ) t 3 + ( )
t 2 =
{ } t 2 ( ) t 2 ( ) = =
t 6 ( ) t 7 ( ) t 6 ( )
t 7 =
{ } t 7 ( ) t 7 ( ) = =
Chapter 1 Elementary Signals
1-18 Signals and Systems with MATLAB Applications, Second Edition
Orchard Publications
(1.54)
The plot of is shown in Figure 1.23.
Figure 1.23. Plot of the derivative of the waveform of Figure 1.21.
We observe that a negative spike of magnitude occurs at , and two positive spikes of
magnitude occur at , and . These spikes occur because of the discontinuities at
these points.
MATLAB
*
has built-in functions for the unit step, and the delta functions. These are denoted by the
names of the mathematicians who used them in their work. The unit step function is referred
to as Heaviside(t), and the delta function is referred to as Dirac(t). Their use is illustrated with
the examples below.
syms k a t; % Define symbolic variables
u=k*sym('Heaviside(t-a)') % Create unit step function at t = a
u =
k*Heaviside(t-a)
d=diff(u) % Compute the derivative of the unit step function
d =
k*Dirac(t-a)
* An introduction to MATLAB
is given in Appendix A.
dv
dt
------ 2u
0
t 1 + ( ) 2 t 1 + ( ) 2u
0
t 1 ( ) u
0
t 2 ( ) =
t 2 ( ) u
0
t 4 ( ) u
0
t 5 ( ) u
0
t 7 ( ) t 7 ( ) + + + +
dv dt
1
1
1
2
1 2 3 4 5 6 7
0
2 t 1 + ( )
dv
dt
------
V s ( )
t 2 ( )
t 7 ( )
t s ( )
2 t 1 =
1 t 2 = t 7 =
u
0
t ( )
t ( )
Signals and Systems with MATLAB Applications, Second Edition 1-19
Orchard Publications
Summary
int(d) % Integrate the delta function
ans =
Heaviside(t-a)*k
1.8 Summary
The unit step function that is defined as
The unit step function offers a convenient method of describing the sudden application of a volt-
age or current source.
The unit ramp function, denoted as , is defined as
The unit impulse or delta function, denoted as , is the derivative of the unit step . It is also
defined as
and
The sampling property of the delta function states that
or, when ,
The sifting property of the delta function states that
The sampling property of the doublet function states that
u
0
t ( )
u
0
t ( )
0 t 0 <
1 t 0 >
=
u
1
t ( )
u
1
t ( ) u
0
( ) d
t
=
t ( ) u
0
t ( )
( ) d
t
u
0
t ( ) =
t ( ) 0 for all t 0 =
f t ( ) t a ( ) f a ( ) t ( ) =
a 0 =
f t ( ) t ( ) f 0 ( ) t ( ) =
f t ( ) t ( ) t d
f ( ) =
' t ( )
f t ( )' t a ( ) f a ( )' t a ( ) f
' a ( ) t a ( ) =
Chapter 1 Elementary Signals
1-20 Signals and Systems with MATLAB Applications, Second Edition
Orchard Publications
1.9 Exercises
1. Evaluate the following functions:
a.
b.
c.
d.
e.
f.
2.
a. Express the voltage waveform shown in Figure 1.24, as a sum of unit step functions for
the time interval .
b. Using the result of part (a), compute the derivative of , and sketch its waveform.
Figure 1.24. Waveform for Exercise 2
t sin t
6
---
2t cos t
4
---
t
2
t
2
---
cos
2t tan t
8
---
t
2
e
t
t 2 ( ) t d
t
2
1
t
2
---
sin
v t ( )
0 t 7 s < <
v t ( )
10
20
10
20
1 2 3 4 5 6 7
0
v t ( )
t s ( )
e
2t
V ( ) v t ( )
Signals and Systems with MATLAB Applications, Second Edition 1-21
Orchard Publications
Solutions to Exercises
1.10 Solutions to Exercises
Dear Reader:
The remaining pages on this chapter contain the solutions to the exercises.
You must, for your benefit, make an honest effort to solve the problems without first looking at the
solutions that follow. It is recommended that first you go through and solve those you feel that you
know. For the exercises that you are uncertain, review this chapter and try again. If your results do
not agree with those provided, look over your procedures for inconsistencies and computational
errors. Refer to the solutions as a last resort and rework those problems at a later date.
You should follow this practice with the exercises on all chapters of this book.
Chapter 1 Elementary Signals
1-22 Signals and Systems with MATLAB Applications, Second Edition
Orchard Publications
1. We apply the sampling property of the function for all expressions except (e) where we apply
the sifting property. For part (f) we apply the sampling property of the doublet.
We recall that the sampling property states that . Thus,
a.
b.
c.
d.
We recall that the sampling property states that . Thus,
e.
We recall that the sampling property for the doublet states that
Thus,
f.
2.
a.
or
t ( )
f t ( ) t a ( ) f a ( ) t a ( ) =
t sin t
6
---
t
t 6 =
t
6
---
sin
6
--- t
6
---
sin 0.5 t
6
---
= = =
2t cos t
4
---
2t
t 4 =
t
4
---
cos
2
--- t
4
---
cos 0 = = =
t
2
t
2
---
cos
1
2
-- - 1 2t cos + ( )
t 2 =
t
2
---
1
2
--- 1 cos + ( ) t
2
---
1
2
-- - 1 1 ( ) t
2
---
0 = = = =
2t tan t
8
---
2t
t 8 =
tan t
8
---
4
--- t
8
---
tan t
8
---
= = =
f t ( ) t ( ) t d
f ( ) =
t
2
e
t
t 2 ( ) t d
t
2
e
t
t 2 =
4e
2
0.54 = = =
f t ( )' t a ( ) f a ( )' t a ( ) f
' a ( ) t a ( ) =
t
2
1
t
2
---
sin t
t 2 =
2
1
t
2
---
sin
d
dt
----- t
t 2 =
2
t
2
---
sin =
1
2
-- - 1 2t cos ( )
t 2 =
1
t
2
---
2t
t 2 =
t
2
---
sin =
1
2
-- - 1 1 + ( )
1
t
2
---
t
2
---
sin
1
t
2
---
= =
v t ( ) e
2t
u
0
t ( ) u
0
t 2 ( ) [ ] 10t 30 ( ) u
0
t 2 ( ) u
0
t 3 ( ) [ ] + =
+ 10 t 50 + ( ) u
0
t 3 ( ) u
0
t 5 ( ) [ ] 10t 70 ( ) u
0
t 5 ( ) u
0
t 7 ( ) [ ] +
Signals and Systems with MATLAB Applications, Second Edition 1-23
Orchard Publications
Solutions to Exercises
b.
(1)
Referring to the given waveform we observe that discontinuities occur only at , ,
and . Therefore, and . Also, by the sampling property of the delta
function
and with these simplifications (1) above reduces to
The waveform for is shown below.
v t ( ) e
2t
u
0
t ( ) e
2t
u
0
t 2 ( ) 10tu
0
t 2 ( ) 30u
0
t 2 ( ) 10tu
0
t 3 ( ) 30u
0
t 3 ( ) + + =
10tu
0
t 3 ( ) 50u
0
t 3 ( ) 10tu
0
t 5 ( ) 50u
0
t 5 ( ) 10tu
0
t 5 ( ) + + +
70u
0
t 5 ( ) 10tu
0
t 7 ( ) 70u
0
t 7 ( ) +
e
2t
u
0
t ( ) e
2t
10t 30 + ( )u
0
t 2 ( ) 20t 80 + ( )u
0
t 3 ( ) 20t 120 ( )u
0
t 5 ( ) + + + =
+ 10t 70 + ( )u
0
t 7 ( )
dv
dt
------ 2e
2t
u
0
t ( ) e
2t
t ( ) 2e
2t
10 + ( )u
0
t 2 ( ) e
2t
10t 30 + ( ) t 2 ( ) + + + =
20u
0
t 3 ( ) 20t 80 + ( ) t 3 ( ) 20u
0
t 5 ( ) 20t 120 ( ) t 5 ( ) + + +
10u
0
t 7 ( ) 10t 70 + ( ) t 7 ( ) +
t 2 = t 3 =
t 5 = t ( ) 0 = t 7 ( ) 0 =
e
2t
10t 30 + ( ) t 2 ( ) e
2t
10t 30 + ( )
t 2 =
t 2 ( ) = 10 t 2 ( )
20t 80 + ( ) t 3 ( ) 20t 80 + ( )
t 3 =
t 3 ( ) = 20 t 3 ( ) =
20t 120 ( ) t 5 ( ) 20t 120 ( )
t 5 =
t 5 ( ) = 20 t 5 ( ) =
dv dt 2e
2t
u
0
t ( ) 2e
2t
u
0
t 2 ( ) 10u
0
t 2 ( ) 10 t 2 ( ) + + =
20u
0
t 3 ( ) 20 t 3 ( ) 20u
0
t 5 ( ) 20 t 5 ( ) 10u
0
t 7 ( ) + +
2e
2t
u
0
t ( ) u
0
t 2 ( ) [ ] 10 t 2 ( ) 10 u
0
t 2 ( ) u
0
t 3 ( ) [ ] 20 t 3 ( ) + + =
10 u
0
t 3 ( ) u
0
t 5 ( ) [ ] 20 t 5 ( ) 10 u
0
t 5 ( ) u
0
t 7 ( ) [ ] +
dv dt
dv dt
20
10
V s ( )
t s ( )
20
10
1
2
3
4
5
6
7
10 t 2 ( )
20 t 3 ( )
20 t 5 ( )
2e
2t