Posted: October 27th, 2022

# Process Control and Instrumentation Homework for Chemical Engineering

I need help on Process Control and Instrumentation homework for Chemical Engineering. There is a small part of the homework contain MatLab. Can you help please!

I have attached the book and the assignment.

Don't use plagiarized sources. Get Your Custom Essay on
Process Control and Instrumentation Homework for Chemical Engineering
Just from \$13/Page

CBE 43

0

Week 0

3

โข Ch. 3

Laplace Transforms
Mathematical models of real processes often result in systems of linear ODEs.

The Laplace transform can reduce the time required to find a solution, by
converting ODEs to equations.

Letโs review Laplace transforms!

โ ๐ ๐ก

= เถฑ
0

โ

๐ ๐ก ๐โ๐ ๐ก๐๐ก = ๐น

๐

โโ1 ๐น ๐  = ๐

๐ก

Laplace Domain

๐(๐ก) ๐น(๐ )

Time Domain

Slide 03.0

1

Topics
โข Laplace

transforms
โข Solving

ODEs
โข Properties

of

โ[ ]

โข Example

3.6
โข MATLAB

CBE 430
Week 03

โข Ch. 3

Laplace Transforms
Constant function:

Unit step function:

Exponential:

Rectangular

Pulse:

โ ๐ = เถฑ
0

โ

๐๐โ๐ ๐ก๐๐ก = โ

๐

๐
๐โ๐ ๐ก

0
โ

=
๐

๐

โ ๐ ๐ก

=
1

๐

Notice, the Laplace transform
doesnโt care what happens at ๐ก < 0! So the unit step at ๐ก = 0 is the same as the constant with ๐ = 1.

โ ๐(๐ก) = เถฑ
0

โ

๐โ๐๐ก๐โ๐ ๐ก๐๐ก = เถฑ
0

โ

๐โ(๐ +๐)๐ก๐๐ก = โ
๐โ ๐ +๐ ๐ก

๐  + ๐

0

โ
=
1
๐  + ๐

๐ ๐ก = แ
0 ๐ก < 0 โ 0 โค ๐ก <

๐ก๐ค

0 ๐ก โฅ ๐ก๐ค

โ ๐(๐ก) = เถฑ
0
๐ก๐ค

โ๐โ๐ ๐ก๐๐ก = โ
โ

๐
๐โ๐ ๐ก แ

0
๐ก๐ค

=
โ

๐
1 โ ๐โ๐ก๐ค๐

๐ ๐ก = ๐

๐ ๐ก = ๐ ๐ก = แ
0 ๐ก < 0 1 ๐ก โฅ 0

๐ ๐ก = ๐โ๐๐ก

Slide 03.0

2

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties

of โ[ ]
โข Example

3.6
โข MATLAB

CBE 430
Week 03
โข Ch. 3

How About a Time Delay (Lag).

In chemical and biological processes, one function is often related to another by
a time delay (lag). The simplest example is:

๐๐ ๐ก = ๐ ๐ก โ ๐ ๐ ๐ก โ ๐ ๐ ensures that ๐๐ = 0 before the lag
time. This can happen when ๐ and ๐

๐

measure the same thing (e.g. a
temperature or concentration) at
different points in a , for
example.

What is the Laplace transform of ๐๐(๐ก)?

Slide 03.03

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

CBE 430
Week 03
โข Ch. 3
How About a Time Delay (Lag).

๐๐ ๐ก = ๐ ๐ก โ ๐ ๐ ๐ก โ

๐

โ ๐๐ ๐ก = โ ๐ ๐ก โ ๐ ๐ ๐ก โ ๐

= เถฑ
0
โ

๐ ๐ก โ ๐ ๐ ๐ก โ ๐ ๐โ๐ ๐ก

๐๐ก

= เถฑ
0
๐

๐ ๐ก โ ๐ 0 ๐โ๐ ๐ก๐๐ก + เถฑ
๐

โ

๐ ๐ก โ ๐ ๐โ๐ ๐ก๐๐ก

= เถฑ
๐

โ

๐ ๐ก โ ๐ ๐โ๐  ๐กโ๐ ๐โ๐ ๐ ๐ ๐ก โ ๐

= ๐โ๐ ๐เถฑ
0

โ

๐ ๐กโ ๐โ๐ ๐ก
โ
๐๐กโ

โ[๐๐ ๐ก ] = ๐
โ๐ ๐๐น ๐

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.04

CBE 430
Week 03
โข Ch. 3

Now you try one:

Use the property:

and the Euler formula for the cosine:

To find

โ ๐ฅ ๐ก + ๐ฆ ๐ก = โ ๐ฅ ๐ก + โ ๐ฆ ๐ก

=
1
2
1

๐  โ ๐๐
+

1

๐  + ๐๐

cos ๐๐ก =
๐๐๐๐ก + ๐โ๐๐๐ก

2
; ๐ โก โ1

โ[cos ๐๐ก ] =
1

2
โ ๐๐๐๐ก +

1

2
โ ๐โ๐๐๐ก

=
1
2

๐  + ๐๐ + ๐  โ ๐๐

๐ 2 +๐2

=

๐
๐ 2 +๐2

โ[cos ๐๐ก ]

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.05

CBE 430
Week 03
โข Ch. 3

๐ข = ๐ก ๐๐ฃ = ๐โ ๐ +๐ ๐ก๐๐ก

๐๐ข = ๐๐ก ๐ฃ

= โ
1

๐  + ๐
๐โ ๐ +๐ ๐ก

โ ๐ก๐๐๐ก = โ
๐ก๐โ ๐ +๐ ๐ก

๐  + ๐
๐ก=0

๐ก=โ

+เถฑ
0

โ ๐โ ๐ +๐ ๐ก

๐  + ๐
๐๐ก

= 0 โ 0 โ
๐โ ๐ +๐ ๐ก

๐  + ๐ 2

๐ก=0

๐ก=โ
=
1
๐  + ๐ 2

โ ๐ก๐โ๐๐ก

Integration by parts! เถฑ
0

โ

๐ข๐๐ฃ = ๐ข๐ฃ โเถฑ
0

โ

๐ฃ๐๐ข

= เถฑ
0
โ

๐ก๐โ๐๐ก๐โ๐ ๐ก๐๐ก = เถฑ
0

โ

๐ก๐โ ๐+๐  ๐ก๐๐ก

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.06

CBE 430
Week 03
โข Ch. 3

One more important exampleโฆ

The impulse (with area ๐): ๐ ๐ก = ๐๐ฟ ๐ก

โ ๐(๐ก) = lim

๐ก๐คโ0

๐

๐ก๐ค๐
1 โ ๐โ๐ก๐ค๐

Where ๐ฟ ๐ก is the function. ๐ฟ ๐ก has an area of 1, a
height of infinity, and a width of 0. This can be modeled as a pulse
of โ = 1/๐ก๐ค as ๐ก๐ค โ 0. Using the result for the pulseโฆ

Apply lโHรดpitalโs rule (differentiate by ๐ก๐ค):

โ ๐๐ฟ ๐ก = lim
๐ก๐คโ0

๐ 1 โ ๐โ๐ก๐ค๐

๐ก๐ค๐
= lim

๐ก๐คโ0

๐๐ ๐โ๐ก๐ค๐

๐
= ๐

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.07

CBE 430
Week 03
โข Ch. 3

Why is this useful?

Finding Laplace transforms is fun and easy, but thatโs not
why we use them. In fact, we usually donโt bother finding
them at allโฆ we in a table (like Table 3.1
on pp. 40-41 of Seborg).

Laplace transforms are useful because they
help us to find solutions to differential
equations.

โฆhereโs howโฆ โ

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.08

CBE 430
Week 03
โข Ch. 3

Time-Derivatives
What is the Laplace transform of the time-derivative?

time derivative?

For the ๐๐กโ derivative:

โ

๐๐

๐๐ก
= เถฑ

0

โ๐๐

๐๐ก
๐โ๐ ๐ก๐๐ก = ๐๐โ๐ ๐ก แ

0

โ
โเถฑ

0
โ

๐ ๐ก
๐ ๐โ๐ ๐ก

๐๐ก
๐๐ก

= โ๐ 0 + เถฑ
0

โ

๐ ๐ก ๐ ๐โ๐ ๐ก๐๐ก

= โ๐ 0 + ๐ โ ๐ ๐ก

โ
๐2๐

๐๐ก2
= โ

๐๐

๐๐ก
; where ๐ =

๐๐
๐๐ก

= โ๐ 0 + ๐  ๐ ๐น ๐  โ ๐ 0

= โ๐ 0 + ๐ ๐น ๐

= ๐ 2๐น ๐  โ แค
๐๐

๐๐ก
๐ก=0

โ ๐ ๐ 0

This is awesome!
Now we can use
Laplace transforms
to replace first
derivatives!

๐๐ ๐ ๐ก

๐๐ก๐
= ๐ ๐๐น ๐  โ เท

๐=0

๐โ1

๐ ๐ เธญ
๐๐โ1โ๐๐ ๐ก

๐๐ก๐โ1โ๐
๐ก=0

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.09

CBE 430
Week 03
โข Ch. 3

A First-Order ODE Example

5

๐๐ฆ

๐๐ก
+ 4๐ฆ = 2; ๐ฆ 0 = 1

5โ
๐๐ฆ

๐๐ก
+ 4โ ๐ฆ = โ 2

5 ๐ ๐ ๐  โ ๐ฆ 0 + 4

๐ ๐  =
2

๐

5๐ ๐ ๐  โ 5 1 + 4๐ ๐  =
2

๐

5๐  + 4 ๐ ๐  =
2

๐
+ 5

๐ ๐  =
2

๐

5๐  +

4

+

5
5๐  + 4
โ[ ]

Solve
for ๐ ๐

Now invert using Table
3.1. Notice that entries 5
and 6, and 9 and 10 are
equivalent alternative
representations.

๐ ๐  =
2
5
1

๐  + 0

๐  +
4
5

+
1

๐  +
4
5

๐ฆ ๐ก = โ0.5 ๐โ0.8๐ก โ 1 + ๐โ0.8๐ก

= 0.5 1 โ ๐โ0.8๐ก

Transform
equation

โโ1[ ]

Notice the gets
used here!

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.10

CBE 430
Week 03
โข Ch. 3

A Higher-Order ODE Example

๐3๐ฆ

๐๐ก3
+ 6

๐2๐ฆ

๐๐ก2
+ 11

๐๐ฆ

๐๐ก
+ 6๐ฆ = 1;

๐ ๐  =
1

๐ (๐ 3 + 6๐ 2 + 11๐  + 6)

เธญ
๐2๐ฆ

๐๐ก2
0

= 0; แค
๐๐ฆ

๐๐ก
0

= 0; ๐ฆ 0 = 0

How many ICโs do we need?

โ
๐3๐ฆ

๐๐ก3
+ 6โ

๐2๐ฆ

๐๐ก2
+ 11โ

๐๐ฆ

๐๐ก
+ 6โ ๐ฆ = โ 1

๐ 3๐ ๐  + 6๐ 2๐ ๐  + 11๐ ๐ ๐  + 6๐ ๐  =
1

๐

Find the (4) roots of the (4th-order)
polynomial in the denominator, so it
can be factored!
Roots are ๐  = 0, -1, -2, and -3. ๐ ๐  =

1

๐ (๐  + 1)(๐  + 2)(๐  + 3)

Perform .
๐ ๐  =

๐ผ1
๐
+

๐ผ2

๐  + 1

+
๐ผ3

๐  + 2
+

๐ผ4

๐  + 3

๐ผ1 =
1

6
; ๐ผ2 = โ

1

2
; ๐ผ3 =

1

2
; ๐ผ4 = โ

1

6
Perform
Heaviside
expansion.

๐ฆ ๐ก =
1

6
โ
1

2
๐โ๐ก +

1

2
๐โ2๐ก โ

1

6
๐โ3๐ก

When did we
use the ICโs?!?!

โ[ ]
โโ1[ ]
Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.11

CBE 430
Week 03
โข Ch. 3

What was that Heaviside thing?

๐ ๐  =

๐ ๐

๐ท ๐

=

1

๐ (๐  + 1)(๐  + 2)(๐  + 3)
=
๐ผ1
๐
+

๐ผ2
๐  + 1
+
๐ผ3
๐  + 2
+
๐ผ4
๐  + 3

Find the coefficients ๐ผ๐ using .

1. Multiply the whole equations by one of the terms in the denominator (for
example, the second one).

2. Choose ๐  so that all the remaining ๐ผ๐ are . In this case, we
set ๐  = โ1. Compute ๐ผ2.

๐  + 1

๐  ๐  + 1 ๐  + 2 ๐  + 3
= ๐ผ2 + ๐  + 1

๐ผ1
๐
+

๐ผ3
๐  + 2

+
๐ผ4

๐  + 3
1

โ1 โ1 + 2 [ โ1 + 3]
= ๐ผ2 =

1

โ1 ร 1 ร

2
= โ

1
2

In generalโฆ ๐ผ๐ = แค๐  + ๐

๐

๐ ๐

๐ท ๐
๐ =โ๐๐

repeated roots?…

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.12

CBE 430
Week 03
โข Ch. 3

An example with repeated roots
๐2๐ฆ

๐๐ก2
+ 4

๐๐ฆ

๐๐ก
+ 4๐ฆ = 1; เธญ

๐2๐ฆ
๐๐ก2
0
= 0; แค
๐๐ฆ
๐๐ก
0

= 1; ๐ฆ 0 = 0

๐ 2๐ ๐  โ ๐ ๐ฆ 0 โ แค
๐๐ฆ

๐๐ก
0

+ 4 ๐ ๐ ๐  โ ๐ฆ 0 + 4๐ ๐  =
1

๐

๐ 2๐ ๐  โ 1 + 4๐ ๐ ๐  + 4๐ ๐  =
1

๐

๐ 2 + 4๐  + 4 ๐ ๐  =
1

๐
+ 1 =

๐  + 1
๐

๐ ๐  =
๐  + 1

๐  ๐ 2 + 4๐  + 4

Use the Heaviside method
to find ๐ผ1 and ๐ผ3

๐ ๐  =
๐  + 1

๐  ๐ 2 + 4๐  + 4
=
๐ผ1
๐
+

๐ผ2
๐  + 2

+
๐ผ3

๐  + 2 2

Canโt use the Heaviside
method for ๐ผ2 because
multiplication by ๐  + 2 ,
and setting
doesnโt eliminate the ๐ผ3
term; it blows up.

๐ผ1 =
0 + 1

02 + 4 0 + 4
=
1

4
; ๐ผ3 =

โ2 + 1

โ2
=
1

2

Then just choose another ๐
to find ๐ผ2; choose ๐  = โ1

๐ผ2 =
๐  + 1

๐ (๐ 2 + 4๐  + 4)
โ

1

4๐
โ

1

2 ๐  + 2 2
; ๐ผ2 =

1

4
โ
1

2
= โ
1
4

The denominator is a 3rd-order
polynomial, so there must be 3 constants.

ICโs used here!

โ[ ]
Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.13

CBE 430
Week 03
โข Ch. 3

Or, you can take the derivative
๐ ๐  =

๐  + 1
๐  ๐ 2 + 4๐  + 4
=
๐ผ1
๐
+
๐ผ2
๐  + 2
+
๐ผ3
๐  + 2 2

For multiple repeated roots, or roots repeated several times, the derivative
method helps ensure you have to solve for all of the
unknown ๐ผ๐. The general formula that you can use in this case is:

๐ผ๐ =
1

๐ โ ๐ !
lim
๐ โโ๐

๐๐โ๐

๐๐ ๐โ๐
๐  + ๐ ๐

๐ ๐
๐ท ๐

๐ผ3 = แค๐  + 2
2
๐ ๐

๐ท ๐
๐ =โ2

; ๐ผ2 = เธญ
๐

๐๐
๐  + 2 2

๐ ๐

๐ท

๐
s=โ2

; ๐ผ1 = แค๐
๐ ๐

๐ท ๐
๐ =0

๐ผ3 =
1

2
; ๐ผ2 = แค

๐

๐๐
1 +

1
๐
s=โ2
= โ
1

โ2 2
= โ

1

4
; ๐ผ1 =

1
4

๐ ๐  =
๐ผ1

(๐  + ๐)
+

๐ผ2
๐  + ๐ 2

+โฏ
๐ผ๐

๐  + ๐ ๐
+โฏ =เท

๐

๐
๐ผ๐

๐  + ๐ ๐
+โฏ

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.14

CBE 430
Week 03
โข Ch. 3

Heaviside expansion will

give complex ๐ผ1,2 = โ
1

3
๐

๐ ๐  =
1

๐ 2 + ๐  + 2.5

=

๐ผ1
๐  + ๐1

+
๐ผ2

๐  + ๐2

๐ ๐  =
๐ ๐

๐ท ๐
; ๐ท ๐  = ๐๐ 2 + ๐๐  + ๐; ๐2 < 4๐๐ โ ๐๐๐๐๐๐๐ฅ ๐๐๐๐ก๐

๐1, ๐2 =
โ1 ยฑ 12 โ 4 1 2.5

2 1
= โ

1

2
ยฑ

โ9

2
= โ
1

2
ยฑ
3

2
๐

Find ๐1 and ๐2 from the roots of ๐ท ๐

Instead, lets put ๐(๐ ) in the form of one of the entries in the Table 3.1
on p. 42. โ How about number 17?

๐ ๐  = ๐
๐

๐  + ๐ 2 + ๐2
=

1
๐ 2 + ๐  + 2.5

This term has to give both

๐ 2 and ๐ . So ๐ =
1

2
.

Now the denominator is:

๐ท ๐  = ๐  +
1

2
2

+ ๐2 = ๐ 2 + s +
1

4
+ ๐2 = ๐ 2 + s + 2.5

๐2 = 2.25; ๐ =

1.5

๐๐ = 1; ๐ =
2

3
๐ ๐  =
2
3
1.5

๐  +
1
2

2

+ 1.52

๐ฆ ๐ก =
2

3
๐โ0.5๐กsin(1.5๐ก)

Find ๐:

Complex roots will always give in the time domain.

Find ๐:
โโ1[ ]

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.15

CBE 430
Week 03
โข Ch. 3

Some Properties of Laplace Transforms
1. The transform and reverse transform are both linear operations, allowing you to use superposition:

2. The theorem:

3. The initial value theorem:

4. The theorem:

5. Convolution:

6. When ๐น ๐  has positive real denominator roots (๐๐ < 0), ๐(๐ก) will grow exponentially.

7. When ๐น(๐ ) has complex denominator roots (๐๐
2< 0), ๐ ๐ก will oscillate .

8. When ๐น(๐ ) has an exponential in ๐ , ๐(๐ก) has a .

โ ๐ฅ ๐ก + ๐ฆ ๐ก = โ ๐ฅ ๐ก + โ ๐ฆ ๐ก

lim
๐กโโ

๐ฆ(๐ก) = lim
๐ โ0

[๐ ๐ ๐  ]

๐น ๐  = ๐บ ๐  ๐ป ๐

๐ ๐ก = โโ1 ๐บ ๐  ๐ป ๐  = เถฑ
0

๐ก

๐ ๐ โ ๐ก โ ๐ ๐๐ = เถฑ
0

๐ก

๐ ๐ก โ ๐ โ ๐ ๐๐

lim
๐กโ0

๐ฆ(๐ก) = lim
๐ โโ

[๐ ๐ ๐  ]

โ ๐ ๐ก โ ๐ก0 ๐ ๐ก โ ๐ก0 = ๐
โ๐ก0๐ ๐น(๐ )

Weโll make use of these a lot.

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.16

CBE 430
Week 03
โข Ch. 3

Letโs do Example 3.6

Check out how the CSTR works. (Are there
recirculation zones, dead zones, or other non-ideal
mixing?)

Do an impulse test with a tracer, compare the
concentration coming out, ๐2(๐ก), to the predicted
concentration assuming .

Compare the theoretical solutions of the responses
to (perfect) impulse, and (physically realizable)
rectangular pulse test.

Find:
a) The magnitude of an impulse that would model

the total amount of material added with the
pulse shown at the right.

b) The impulse and pulse responses of the reactant
concentration leaving the reactor, ๐.

๐ = 4 ๐3

๐ = 2 ๐3 ๐๐๐๐ข๐ก๐โ1

๐๐ = 1 ๐๐๐๐๐ ๐
โ3

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.17

CBE 430
Week 03
โข Ch. 3

Example 3.6(a)

Find:
a) The magnitude of an impulse that would

model the total amount of material added
with the pulse shown at the right.

๐๐ฟ ๐ก ; ๐ด๐๐๐๐ข๐๐ ๐ = ๐

Define the ๐๐ = ๐๐ โ เดฅ๐๐ and ๐ = ๐ โ าง๐
Where เดฅ๐๐ and าง๐ are the respective values.

๐๐,๐๐ข๐๐ ๐ = เต
6 โ 1 ๐๐๐๐๐ ๐โ3 0 โค ๐ก < 0.25

0 ๐๐๐๐๐ ๐โ3 ๐ก < 0; 0.25 โค ๐ก

๐ด๐๐ข๐๐ ๐ = 1.25 ๐๐๐๐๐ ๐๐๐๐ข๐ก๐๐  ๐
โ3

โด ๐๐,๐๐๐๐ข๐๐ ๐ = 1.25 ๐ฟ(๐ก)

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.18

CBE 430
Week 03
โข Ch. 3

Example 3.6(b)

Find:
b) The impulse and pulse responses of the reactant concentration

leaving the reactor, ๐. (Letโs find ๐, instead.)

๐
๐๐

๐๐ก
= ๐ ๐๐ โ ๐

Write a species mole balance on the tracer:

๐
๐ ๐ โ าง๐

๐๐ก
= ๐ ๐๐ โ เดฅ๐๐ โ ๐ โ าง๐

state: เดฅ๐๐ = าง๐

Convert this mole balance to a differential
equation for the ๐.

๐๐

๐๐ก
=
๐

๐
๐๐ โ ๐ =

1

๐
๐๐ โ ๐

๐ 0 = 0

Now replace the inlet
concentration (perturbation)
with ๐๐,๐๐ข๐๐ ๐ and ๐๐,๐๐๐๐ข๐๐ ๐.

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.19

๐
๐ าง๐

๐๐ก
= ๐ เดฅ๐๐ โ าง๐ = 0

CBE 430
Week 03
โข Ch. 3

Example 3.6(b) continued

Impulse:

๐๐

๐๐ก
=
1

๐
(๐๐ โ ๐)

๐๐
๐๐ก
=
1

๐
๐๐,๐๐๐๐ข๐๐ ๐ โ ๐

=
1

๐
๐๐ฟ ๐ก โ ๐

๐ ๐ ๐  โ ๐ 0 =
1

๐
๐ โ

๐ ๐

๐ ๐  = ๐
1

๐๐  + 1

๐ ๐ก =
๐

๐
๐โ ฮค๐ก ๐

Pulse:
๐๐
๐๐ก
=
1

๐
๐๐,๐๐ข๐๐ ๐ โ ๐ ๐ ๐ ๐  โ ๐ 0 =

5

๐๐
1 โ ๐โ0.25๐  โ

๐ ๐

๐1

๐ ๐  = 5
1

๐  ๐๐  + 1

โ ๐โ0.25๐

1
๐  ๐๐  + 1

๐ ๐ก = 5 1 โ ๐โ ฮค๐ก ๐ โ 5 1 โ ๐โ ๐กโ0.25 /๐ ๐(๐ก โ 0.25)

This is a time lag!

Transform this term,
then change ๐ก to ๐ก โ
0.25 and multiply by
the step function.๐ ๐ก = แ

5 1 โ ๐โ ฮค๐ก ๐ ; ๐ก < 0.25

5 ๐โ ฮค๐กโ0.25 ๐ โ ๐โ ฮค๐ก ๐ ; ๐ก โฅ 0.25

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.20

CBE 430
Week 03
โข Ch. 3
Example 3.6(b) continued
๐๐
๐๐ก
=
1
๐
(๐๐ โ ๐)
๐ ๐ก =
๐

๐1
๐โ ฮค๐ก ๐

๐ ๐ก = แ
5 1 โ ๐โ ฮค๐ก ๐ ; ๐ก < 0.25

5 ๐โ ฮค๐กโ0.25 ๐ โ ๐โ ฮค๐ก ๐ ; ๐ก โฅ 0.25
Impulse:
Pulse:

0.6

0.5

0.4

0.3

0.2

0.1

0.0

๏ฃ

1086420

Time, t (min)

impulse
pulse

๐ = 1.25

๐ =
๐

๐
= 2 ๐๐๐๐ข๐ก๐๐

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.21

CBE 430
Week 03
โข Ch. 3

Laplace transforms using MATLAB

MATLAB can really help with
Laplace transforms!

Use symbolic math toolbox
and commands

laplace

ilaplace

Consider from slide 04.06 โฆ

>>syms t f(t)

>>f =

t*exp(-t)

f =

t*exp(-t)

>> F = laplace(f)

F =

1/(s + 1)^2

>> f = ilaplace(F)

f =

t*exp(-t)
Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.22

CBE 430
Week 03
โข Ch. 3
Laplace transforms using MATLAB

Consider from slide 03.10:

>>syms t y(t)

>>dydt = diff(y,t)

dydt(t) =

diff(y(t), t)

>>laplace(5*dydt + 4*y==2)

ans =

5*s*laplace(y(t), t, s) – 5*y(0) + 4*laplace(y(t), t, s) == 2/s

Interpret this:

5
๐๐ฆ

๐๐ก
+ 4๐ฆ = 2; ๐ฆ 0 = 1

Define t and y(t) as symbolic variables. Make
sure to tell MATLAB that y is a function of t.

Next, create a symbolic variable for
the . (You can also define
higher order derivatives with diff.)

Take the Laplace transform of the defining
equation! Remember to use ==.

5๐ ๐ ๐  โ 5๐ฆ 0 + 4๐ ๐  =
2

๐
Compare to slide 03.10

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.23

CBE 430
Week 03
โข Ch. 3
Laplace transforms using MATLAB

Take care defining constants and variables!

>>syms t y1(t) a

>>Y1 = laplace(y1)

Y1 =

laplace(y(t), t, s)

>>A = laplace(a)

A = 1/s^2

Matlab didnโt know what you wanted the independent variable to be, so it a. This
is the Laplace transform of .

To take the Laplace transform of a constant, a:

>>syms a, t, s

>>laplace(a, t, s)

ans =

a/s

Expected behavior. What will happen for a?

???
What is this ?!!

y1 is a function, a is just another variable.

This tells MATLAB everything it needs to know:
โข Take the Laplace transform of a;
โข Use t as the independent variable;
โข Use s is the Laplace-domain independent variable.
(Otherwise, MATLAB has to guess what you want!)

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.24

CBE 430
Week 03
โข Ch. 3

Summary
1. Laplace transforms convert time-domain functions to equivalent functions in a Laplace

domain. The independent variable ๐  is .

2. This is useful for solving differential equations, because derivatives are converted to
algebraic equations when converting from the time domain to the Laplace domain.

3. Conversion to the Laplace domain decomposes a function helps to find characteristic ,
frequencies, and .

4. Some features of the time-domain solution can be easily identified in the Laplace domain (e.g.
an exponential decay, a sinusoidal oscillation, a time lag). Weโll get more practice at identifying
these. โWith experience you can tell a lot about time-domain dynamics without inverting the
Laplace-domain equations!

5. You can use MATLAB laplace and ilaplace

Topics
โข Laplace
transforms
โข Solving
ODEs
โข Properties
of โ[ ]
โข Example
3.6
โข MATLAB

Slide 03.25

### Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

## Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
\$0.00

Order your essay today and save 30% with the discount code ESSAYHELP