YouTube2Text

11. Difference Equations—Inverse Z Transforms—Using Partial Fractions -21MAB201T — Transcript

by Dr. E. Suresh · 2,409 words · 294 segments · language en · Watch on YouTube

Full transcript

  1. 0:00Dear students, welcome to the problem
  2. 0:01solving session. In today's session, we
  3. 0:03are going to solve difference equation
  4. 0:06using Z-transform.
  5. 0:09A difference equation is a mathematical
  6. 0:12expression that relates the value of a
  7. 0:14discrete function at different point in
  8. 0:17time or space. It involves the sequence
  9. 0:19of values typically represented by YN,
  10. 0:22where N is integer. Sometime, it may be
  11. 0:25expressed as Y of N also. Recurrence
  12. 0:28relation, it express the value in terms
  13. 0:31of its previous value. For example, you
  14. 0:34can see YN is equal to function of Y N
  15. 0:38minus 1. There are two types of
  16. 0:40difference equation. Linear difference
  17. 0:42equation, you can see the example. All
  18. 0:45my AN, AN minus 1, etc., A naught and GN
  19. 0:49are constant, then it is going to be
  20. 0:52linear difference equation. Otherwise,
  21. 0:54it is going to be a non-linear
  22. 0:56difference equation. It is widely used
  23. 0:59in computer science engineering for
  24. 1:01algorithms, codes, biology, etc. Let us
  25. 1:04take a simple example. Everyone knows
  26. 1:07the Fibonacci numbers, where the
  27. 1:09relation is FN is equal to FN minus 1
  28. 1:13plus FN minus 2 with the starting value
  29. 1:15F naught equal to 0 and F1 equal to 1.
  30. 1:19Now, let us go into the problem solving
  31. 1:22point of view. Solving difference
  32. 1:24equation using Z-transform. Here, we are
  33. 1:26going to consider Y of N is my basic
  34. 1:30unit. Z of Y of N is F of Z, then Z of
  35. 1:34YN plus 1 is going to be Z into F of Z,
  36. 1:39and we need one initial condition Y of 0
  37. 1:42into Z. Now, Z of YN plus 2 is going to
  38. 1:47be very easy. It needs two conditions,
  39. 1:50that is two initial condition. So, now
  40. 1:52multiply this by Z. We'll be getting
  41. 1:55small Z squared F of z minus z squared y
  42. 1:58naught and subtract with z into y one.
  43. 2:02And similarly, z of y n plus three, now
  44. 2:06you would have guessed, just multiply by
  45. 2:08z in the previous formula, z cubed f of
  46. 2:11z minus z cubed y naught minus z squared
  47. 2:14y one and subtract z into y of two. Hope
  48. 2:18you understand. You can see the typed
  49. 2:20version. So, we are going to apply z
  50. 2:22transform on the difference equation and
  51. 2:25then inverse, find the solution for the
  52. 2:27difference equation. Let us go into the
  53. 2:30problem. Now, it is very important in
  54. 2:32exams, they give u n, u of n, y n, y of
  55. 2:37n, z of n, omega of n, etc., etc. in
  56. 2:41various notations. We are going to
  57. 2:43follow the standard notation y of n. If
  58. 2:47u naught is given, how can I convert
  59. 2:49this? I can write it as y of zero. u one
  60. 2:52means y of one. Hope you understand.
  61. 2:55Now, let us write the given difference
  62. 2:57equation and write in our format. Let us
  63. 3:00write in our format. y of n plus two
  64. 3:02minus five times y of n plus one plus
  65. 3:05six times y of n is equal to four power
  66. 3:08n with the conditions y naught is equal
  67. 3:11to zero, y of one is equal to one. Once
  68. 3:14you rewrite the problem in our format,
  69. 3:17write the formulas. Here, we need z of y
  70. 3:20n, z of y n plus one and z of y n plus
  71. 3:23two. Let us write the formula one by
  72. 3:25one. This is the very important
  73. 3:27assumption. z of y n is f of z. Then, z
  74. 3:31of y n plus one is z into f of z minus z
  75. 3:34into y of zero. Similarly, z of y n plus
  76. 3:37two is z squared f of z minus z squared
  77. 3:40y naught minus z into y of one. Now, let
  78. 3:44us take this equation as one. Applying z
  79. 3:48transform on both sides, we'll be
  80. 3:50getting the new data. Now, we know the
  81. 3:53formula. Just we have to write it. Z
  82. 3:56squared capital F of Z minus Z squared Y
  83. 4:00of zero minus Z into Y of one minus five
  84. 4:04times Z into F of Z minus Z into Y
  85. 4:07naught then plus six times Z of Y N is
  86. 4:10simply capital F of Z and we know that Z
  87. 4:14of A power N is going to be Z by Z minus
  88. 4:18A. So we are getting now Z by Z minus
  89. 4:21four. Now the condition is given to us Y
  90. 4:23of zero is zero, Y of one is one. Now Y
  91. 4:27of zero is zero, this term is going to
  92. 4:29be zero and this is going to be zero and
  93. 4:31this is equal to one. Now substituting
  94. 4:34and simplifying we need to isolate
  95. 4:37capital F of Z alone. So first let us
  96. 4:39take this terms Z squared F of Z minus
  97. 4:42five Z F of Z plus six F of Z. So Z
  98. 4:45squared minus five Z plus six F of Z.
  99. 4:49Since this terms are zero, only Y of one
  100. 4:52exists. This is nothing but Z into one
  101. 4:55that is equal to Z by Z minus four. Now
  102. 4:58simplifying this will be getting Z minus
  103. 5:01two, Z minus three. Taking LCM on the
  104. 5:04right hand side and we'll be getting Z
  105. 5:06squared minus three Z and we take Z
  106. 5:09outside we'll be getting Z into Z minus
  107. 5:12three divided by Z minus four. As I said
  108. 5:15I want capital F of Z. Push the all the
  109. 5:18other things to the other side. Now Z
  110. 5:20minus three Z minus three get cancelled.
  111. 5:22I'll be getting Z by Z minus two into Z
  112. 5:26minus four. If you are going to solve by
  113. 5:28partial fraction method, I need to
  114. 5:30always reserve one Z. Otherwise I cannot
  115. 5:33apply inverse. Therefore whatever the
  116. 5:36problem comes, reserve one Z from the
  117. 5:38numerator and move to the denominator of
  118. 5:40F of Z like this. So now F of Z is equal
  119. 5:44to one by Z minus two into Z minus 4.
  120. 5:48I'm going to apply partial fraction. See
  121. 5:50the highest denominator power. It's
  122. 5:53going to be two because here we have Z
  123. 5:56into Z. And the numerator power is going
  124. 5:58to be zero. So, I can apply partial
  125. 6:01fraction because the rule is highest
  126. 6:03denominator power should be greater than
  127. 6:06highest numerator power. Now, I can
  128. 6:08split this fraction as A by Z minus 2
  129. 6:11plus B by Z minus 4. I'm just reserving
  130. 6:15Z here. Now, taking LCM, we'll be
  131. 6:17getting A into Z minus 2 plus B into Z
  132. 6:21minus 4. Both sides denominator get
  133. 6:23cancelled. We'll be getting one. Now, I
  134. 6:25want to find the values of A and B. It
  135. 6:28is very easy. If you put Z equal to 4, A
  136. 6:32term will become zero. So, B into 4
  137. 6:35minus 2 is equal to 1. Therefore, B
  138. 6:38equal to 1 by 2. Now, when you put Z
  139. 6:40equal to 2, then B into 0, B term will
  140. 6:44get eliminated. We have 2 minus 4 is
  141. 6:47equal to 1. Therefore, A equal to minus
  142. 6:501 by 2. We found both A and B. Next, now
  143. 6:54substitute the value of A and B in a
  144. 6:57legible way. Write like f of Z by Z is
  145. 7:00going to be A value is minus 1 by 2 1 by
  146. 7:04Z minus 2 plus 1 by 2 1 by Z minus 4. We
  147. 7:09know that all our Z transform formulas
  148. 7:12numerator has an Z. That's why we
  149. 7:15reserve this Z in the denominator. So,
  150. 7:17now taking the Z to the other side,
  151. 7:20we'll be getting capital f of Z is minus
  152. 7:231 by 2 Z by Z minus 2 plus 1 by 2 Z by Z
  153. 7:29minus 4. From the formula of Z transform
  154. 7:32of the difference equation, we know that
  155. 7:34Z of Y of N is capital f of Z. I said Y
  156. 7:38of N is my solution. So, if you apply Z
  157. 7:42inverse on both sides, we'll be getting
  158. 7:45Y of N is equal to Z inverse of f of Z.
  159. 7:49Therefore, applying Z inverse on both
  160. 7:52sides of this equation will give the
  161. 7:55final solution. So, now we know Z
  162. 7:58inverse of Z by Z minus A is A power N.
  163. 8:02So, Z by Z minus 2 is going to be 2
  164. 8:05power N. Z inverse of Z by Z minus 4 is
  165. 8:084 power N. Therefore, my answer is minus
  166. 8:121 by 2 2 power N plus 1 by 2 4 power N.
  167. 8:16If you take this 1 by 2 commonly out,
  168. 8:18we'll be getting 4 power N minus 2 power
  169. 8:22N. This is my final answer. Next, we go
  170. 8:25for a different problem
  171. 8:28where both initial conditions are zero.
  172. 8:31First, let us write in our proper format
  173. 8:34and then write the Z transform formula.
  174. 8:37Z of YN, Z of YN plus 1, and Z of YN
  175. 8:40plus 2. Now, take this as equation 1.
  176. 8:43Apply Z transform on both sides of the
  177. 8:46equation. Now, substituting the value of
  178. 8:50Z of YN plus 2, YN plus 1, YN etc.,
  179. 8:54we'll be getting like this. And the
  180. 8:55right hand side is Z of 2 power N. And
  181. 8:58the right hand side is Z of 2 power N.
  182. 9:00We know that Z of 2 power N is going to
  183. 9:03be Z by Z minus 2. Since all my initial
  184. 9:07conditions are zero, everything is going
  185. 9:09to be zero. We'll be getting Z squared
  186. 9:11plus 6 Z plus 9 into capital f of Z is Z
  187. 9:16by Z minus 2. Now, keep f of Z on left
  188. 9:19hand side, push all the things to the
  189. 9:21right hand side. As I said, if you want
  190. 9:24to do by partial fraction, if you want
  191. 9:26to solve the problem by partial
  192. 9:28fraction, then we have to reserve this Z
  193. 9:30to the denominator of f of Z. So, f of Z
  194. 9:34by Z is going to be 1 by Z minus 2 into
  195. 9:37z squared plus 6 z plus 9. Now, we know
  196. 9:40that z squared plus 6 z plus 9 is
  197. 9:43nothing but z plus 3 whole squared.
  198. 9:46Therefore, next we have to do partial
  199. 9:49fraction. Since my highest denominator
  200. 9:52power is going to be 3 and highest
  201. 9:54numerator power is going to be 0. So,
  202. 9:57highest denominator power is greater
  203. 9:58than highest numerator power, I can
  204. 10:00apply partial fraction. And we know how
  205. 10:03to apply partial fraction. z minus 2 z
  206. 10:06plus 3 whole squared. For z minus 2, it
  207. 10:09is unique, so I'm writing a by z minus
  208. 10:122. For z plus 3 whole squared, I'm
  209. 10:14writing b by z plus 3 plus c by z plus 3
  210. 10:19whole squared. Now, just take the LCM
  211. 10:21and don't write the denominator like
  212. 10:23your school days. Just write the
  213. 10:24numerator alone, denominator
  214. 10:26automatically get cancelled. So, a into
  215. 10:29z plus 3 whole squared because it has
  216. 10:31only z minus 2 term. b into z minus 2 z
  217. 10:36plus 3. c into z minus 2 alone. Next, we
  218. 10:40have to find the values of a b c. As I
  219. 10:43said, we have to substitute some z value
  220. 10:46such that it make any one of the term at
  221. 10:48least 0. Now, put z equal to minus 3.
  222. 10:51When you substitute z equal to minus 3,
  223. 10:54this term will get 0, this term will get
  224. 10:560. I'll be getting c directly. So, minus
  225. 10:593 minus 2 is going to be minus 5.
  226. 11:02Therefore, c equal to minus 1 by 5.
  227. 11:06Next, we have to put z equal to 2. When
  228. 11:09you put z equal to 2, this both terms
  229. 11:11will get 0. So, we'll be getting a into
  230. 11:142 plus 3 whole squared is 1. So, a equal
  231. 11:18to 1 by 25. Next, don't go for a random
  232. 11:22value or don't go for 0 because if you
  233. 11:25put the 0 or random value, you'll be
  234. 11:27getting equation in terms of a b c. So,
  235. 11:30the
  236. 11:31takes a
  237. 11:32time. So, in this situation, we use our
  238. 11:34handy tool. Just compare the
  239. 11:37coefficients of either
  240. 11:39power or the constant. Highest power is
  241. 11:42the wisest decision here. So,
  242. 11:43coefficient of z squared, the highest
  243. 11:45power is z squared. So, the coefficient
  244. 11:47of z squared is going to be A in this
  245. 11:50term. Similarly, coefficient of highest
  246. 11:53term is z into z squared into B. Here,
  247. 11:55it is going to be B. And for the third
  248. 11:58term, there is no z squared. So, it is
  249. 12:00going to be zero. And right hand side is
  250. 12:02also there is no z squared term. That is
  251. 12:04also zero. We know A already, so B equal
  252. 12:08to -1/25.
  253. 12:10Immediately, we found all the three
  254. 12:12values, A, B, and C. Now, it's our job
  255. 12:16is to substitute this ABC in a legible
  256. 12:19way, like this. Next, we have to push
  257. 12:22the z to the numerator to apply z
  258. 12:25inverse. We know that z inverse of z by
  259. 12:28z minus A is A power n. Therefore,
  260. 12:32answer for this is going to be 2 power
  261. 12:34n. On the other side, we know the
  262. 12:36formula z inverse of z by z plus A is
  263. 12:41going to be minus A whole power n.
  264. 12:44Therefore, the answer for the second
  265. 12:46term is minus three whole power n. Now,
  266. 12:49I can write the answer directly for the
  267. 12:52first two terms. But for the third term,
  268. 12:55I don't know the formula. Now, just
  269. 12:57recall the z inverse formula. z inverse
  270. 13:00of Az divided by z minus A whole squared
  271. 13:04is going to be n into A power n. But
  272. 13:07here, we have plus term. So, I can
  273. 13:10rewrite the formula z inverse of z plus
  274. 13:13A whole squared is going to be minus A
  275. 13:16into z. That is equal to n into minus A
  276. 13:20whole power n. So, for this problem, I
  277. 13:22need this minus three in the numerator.
  278. 13:24-1/5, I multiply and divide by minus
  279. 13:28three, you'll be getting Z inverse of
  280. 13:30minus three into Z divided by Z plus
  281. 13:34three whole square. Now, I can apply
  282. 13:36this formula directly and I'll be
  283. 13:39getting the answer as N into minus three
  284. 13:42whole power N because just now I said Z
  285. 13:44inverse of minus A Z divided by Z plus A
  286. 13:48whole square as N into minus A whole
  287. 13:52power N. This is my solution. And we
  288. 13:55know that Z inverse of F of Z is nothing
  289. 13:57but Y of N. That is my answer. Hope you
  290. 14:00understand. We see some more problems on
  291. 14:02the next session.
  292. 14:04Thanks for watching. Subscribe our
  293. 14:06channel and share to your friends. See
  294. 14:09you in the next video. Bye-bye.

About this transcript

This page contains the full transcript of 11. Difference Equations—Inverse Z Transforms—Using Partial Fractions -21MAB201T by Dr. E. Suresh, generated from the public captions YouTube serves with the video. The transcript has 2,409 words across 294 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.