1 00:00:00,000 --> 00:00:00,750 2 00:00:00,750 --> 00:00:04,320 Let's keep building our table of Laplace transforms. And now 3 00:00:04,320 --> 00:00:07,910 we'll do a fairly hairy problem, so I'm going to have 4 00:00:07,910 --> 00:00:12,500 to focus so that I don't make a careless mistake. 5 00:00:12,500 --> 00:00:16,089 But let's say we want to take the Laplace transform-- and 6 00:00:16,089 --> 00:00:18,629 this is a useful one. 7 00:00:18,629 --> 00:00:20,619 Actually, all of them we've done so far are useful. 8 00:00:20,620 --> 00:00:23,740 I'll tell you when we start doing not-so-useful ones. 9 00:00:23,739 --> 00:00:27,649 Let's say we want to take the Laplace transform of the sine 10 00:00:27,649 --> 00:00:31,699 of some constant times t. 11 00:00:31,699 --> 00:00:35,200 Well, our definition of the Laplace transform, that says 12 00:00:35,200 --> 00:00:37,210 that it's the improper integral. 13 00:00:37,210 --> 00:00:38,890 And remember, the Laplace transform is just a 14 00:00:38,890 --> 00:00:39,350 definition. 15 00:00:39,350 --> 00:00:41,439 It's just a tool that has turned out to 16 00:00:41,439 --> 00:00:43,409 be extremely useful. 17 00:00:43,409 --> 00:00:46,000 And we'll do more on that intuition later on. 18 00:00:46,000 --> 00:00:50,659 But anyway, it's the integral from 0 to infinity of e to the 19 00:00:50,659 --> 00:00:53,750 minus st, times-- whatever we're taking the Laplace 20 00:00:53,750 --> 00:01:01,560 transform of-- times sine of at, dt. 21 00:01:01,560 --> 00:01:07,379 And now, we have to go back and find our integration by 22 00:01:07,379 --> 00:01:08,009 parts neuron. 23 00:01:08,010 --> 00:01:12,590 And mine always disappears, so we have to reprove 24 00:01:12,590 --> 00:01:13,530 integration by parts. 25 00:01:13,530 --> 00:01:14,939 I don't recommend you do this all the time. 26 00:01:14,939 --> 00:01:16,719 If you have to do this on an exam, you might want to 27 00:01:16,719 --> 00:01:17,969 memorize it before the exam. 28 00:01:17,969 --> 00:01:20,280 But always remember, integration by parts is just 29 00:01:20,280 --> 00:01:21,950 the product rule in reverse. 30 00:01:21,950 --> 00:01:23,290 So I'll just do that in this corner. 31 00:01:23,290 --> 00:01:24,760 So the product rule tells us if we have two 32 00:01:24,760 --> 00:01:28,219 functions, u times v. 33 00:01:28,219 --> 00:01:32,439 And if I were take the derivative of u times v. 34 00:01:32,439 --> 00:01:34,200 Let's say that they're functions of t. 35 00:01:34,200 --> 00:01:35,290 These are both functions of t. 36 00:01:35,290 --> 00:01:37,560 I could have written u of x times u of x. 37 00:01:37,560 --> 00:01:41,140 Then that equals the derivative of the first times 38 00:01:41,140 --> 00:01:45,140 the second function, plus the first function times the 39 00:01:45,140 --> 00:01:46,599 derivative of the second. 40 00:01:46,599 --> 00:01:50,539 Now, if I were to integrate both sides, I get uv-- this 41 00:01:50,540 --> 00:01:54,780 should be review-- is equal to the integral of u prime v, 42 00:01:54,780 --> 00:01:56,579 with respect to dt-- but I'm just doing a little bit of 43 00:01:56,579 --> 00:02:01,569 shorthand now-- plus the integral of uv prime. 44 00:02:01,569 --> 00:02:04,789 I'm just trying to help myself remember this thing. 45 00:02:04,790 --> 00:02:07,460 And let's take this and subtract it from both sides. 46 00:02:07,459 --> 00:02:17,239 So we have this integral of u prime v is going to be equal 47 00:02:17,240 --> 00:02:24,620 to this, uv minus the integral of uv prime. 48 00:02:24,620 --> 00:02:25,920 And, of course, this is a function of t. 49 00:02:25,919 --> 00:02:27,369 There's a dt here and all of that. 50 00:02:27,370 --> 00:02:29,770 But I just have to do this in the corner of my page a lot, 51 00:02:29,770 --> 00:02:32,780 because I always forget this, and with the primes and the 52 00:02:32,780 --> 00:02:34,460 integrals and all that, I always forget it. 53 00:02:34,460 --> 00:02:38,070 One way, if you did want to memorize it, you said, OK, the 54 00:02:38,069 --> 00:02:40,579 integration by parts says if I take the integral of the 55 00:02:40,580 --> 00:02:44,530 derivative of one thing and then just a regular function 56 00:02:44,530 --> 00:02:47,560 of another, it equals the two functions times each other, 57 00:02:47,560 --> 00:02:50,170 minus the integral of the reverse. 58 00:02:50,169 --> 00:02:50,519 Right? 59 00:02:50,520 --> 00:02:54,080 Here, when you take the subtraction, you're taking the 60 00:02:54,080 --> 00:02:55,530 one that had a derivative, now it doesn't. 61 00:02:55,530 --> 00:02:58,370 And the one that didn't have a derivative, now it does. 62 00:02:58,370 --> 00:03:01,610 But anyway, let's apply that to our problem at 63 00:03:01,610 --> 00:03:03,730 hand, to this one. 64 00:03:03,729 --> 00:03:07,060 Well, we could go either way about it. 65 00:03:07,060 --> 00:03:12,930 Let's make u prime is equal to-- we'll do our definition-- 66 00:03:12,930 --> 00:03:19,580 u prime is equal to e to the minus st, in which case you 67 00:03:19,580 --> 00:03:22,890 would be the antiderivative of that, which is equal to minus 68 00:03:22,889 --> 00:03:30,414 1 over s e to the minus st, right? 69 00:03:30,414 --> 00:03:33,949 And actually, this is going to be an integration by parts 70 00:03:33,949 --> 00:03:36,169 twice problem, so I'm just actually going to define the 71 00:03:36,169 --> 00:03:38,949 Laplace transform as y. 72 00:03:38,949 --> 00:03:40,239 That'll come in useful later on. 73 00:03:40,240 --> 00:03:43,810 And I think I actually did a very similar example to this 74 00:03:43,810 --> 00:03:45,620 when we did integration by parts. 75 00:03:45,620 --> 00:03:47,659 But anyway, back to the integration by parts. 76 00:03:47,659 --> 00:03:48,759 So that's u. 77 00:03:48,759 --> 00:03:50,979 And let me do v in a different color. 78 00:03:50,979 --> 00:03:54,959 So when v-- if this is u prime, right? 79 00:03:54,960 --> 00:03:56,510 This is u prime, then this is v. 80 00:03:56,509 --> 00:04:01,394 So v is equal to sine of at. 81 00:04:01,395 --> 00:04:04,320 And then what is v prime? 82 00:04:04,319 --> 00:04:07,930 Well, that's just a cosine of at, right? 83 00:04:07,930 --> 00:04:09,110 The chain rule. 84 00:04:09,110 --> 00:04:12,120 And now, we're ready to do our integration. 85 00:04:12,120 --> 00:04:17,519 So the Laplace transform, and I'll just say that's y, y is 86 00:04:17,519 --> 00:04:21,528 equal to-- y is what we're trying to solve for, the 87 00:04:21,528 --> 00:04:24,069 Laplace transform of sine of at-- that is 88 00:04:24,069 --> 00:04:27,209 equal to u prime v. 89 00:04:27,209 --> 00:04:28,879 I defined u prime in v, right? 90 00:04:28,879 --> 00:04:29,649 That's equal to that. 91 00:04:29,649 --> 00:04:31,939 The integral of u prime times v. 92 00:04:31,939 --> 00:04:34,259 That equals uv. 93 00:04:34,259 --> 00:04:46,699 So that's minus 1 over s e to the minus st, times v, sine of 94 00:04:46,699 --> 00:04:52,579 at, minus the integral. 95 00:04:52,579 --> 00:04:57,969 And when you do the integration by parts, this 96 00:04:57,970 --> 00:05:00,540 could be an indefinite integral, an improper 97 00:05:00,540 --> 00:05:01,950 integral, a definite integral, whatever. 98 00:05:01,949 --> 00:05:03,079 But the boundary stays. 99 00:05:03,079 --> 00:05:10,209 And we can still say, from 0 to infinity of uv prime. 100 00:05:10,209 --> 00:05:20,799 So u is minus 1 over s e to the minus st, times v prime, 101 00:05:20,800 --> 00:05:32,350 times a cosine of at-- fair enough-- dt. 102 00:05:32,350 --> 00:05:33,720 Well, now we have another hairy 103 00:05:33,720 --> 00:05:35,210 integral we need to solve. 104 00:05:35,209 --> 00:05:37,939 So this might involve another integration by 105 00:05:37,939 --> 00:05:42,360 parts, and it does. 106 00:05:42,360 --> 00:05:43,889 Let's see if we can simplify it at [? all. ?] 107 00:05:43,889 --> 00:05:45,339 Let's take the constants out first. Let me 108 00:05:45,339 --> 00:05:46,889 just rewrite this. 109 00:05:46,889 --> 00:05:54,439 So we get y is equal to minus e to the minus st 110 00:05:54,439 --> 00:06:00,089 over s, sine of at. 111 00:06:00,089 --> 00:06:09,699 So you have a minus minus plus a over s-- a divided by s, and 112 00:06:09,699 --> 00:06:12,250 then these two negative signs cancel out-- times the 113 00:06:12,250 --> 00:06:19,420 integral from 0 to infinity, e to the minus st, 114 00:06:19,420 --> 00:06:23,080 cosine of at, dt. 115 00:06:23,079 --> 00:06:25,109 Let's do another integration by parts. 116 00:06:25,110 --> 00:06:27,250 And I'll do this in a purple color, just so you know this 117 00:06:27,250 --> 00:06:29,519 is our second integration by parts. 118 00:06:29,519 --> 00:06:31,719 Over here. 119 00:06:31,720 --> 00:06:40,670 Let's define once again, u prime is equal to e the minus 120 00:06:40,670 --> 00:06:43,550 st. So this is u prime. 121 00:06:43,550 --> 00:06:50,150 Then u is equal to minus 1 over s e to the minus st. 122 00:06:50,149 --> 00:06:53,009 We'll make v equal to cosine of at. 123 00:06:53,009 --> 00:06:55,719 124 00:06:55,720 --> 00:06:58,730 The hardest part about this is not making careless mistakes. 125 00:06:58,730 --> 00:07:02,590 And then v prime-- I just want it to be on the same row-- is 126 00:07:02,589 --> 00:07:09,560 equal to minus a sine of at, right? 127 00:07:09,560 --> 00:07:12,160 The chain rule, derivative of cosine is minus sign. 128 00:07:12,160 --> 00:07:17,070 So let's substitute that back in, and we get-- this is going 129 00:07:17,069 --> 00:07:21,959 to get hairy; actually, it already is hairy-- y is equal 130 00:07:21,959 --> 00:07:35,620 to minus e to the minus st over s, sine of at, plus a 131 00:07:35,620 --> 00:07:41,220 over s, times-- OK. 132 00:07:41,220 --> 00:07:42,810 Integration by parts. 133 00:07:42,810 --> 00:07:43,680 uv. 134 00:07:43,680 --> 00:07:53,540 So that's minus 1 over s e to the minus st, times v, times 135 00:07:53,540 --> 00:08:06,910 cosine at, minus the integral from 0 to infinity. 136 00:08:06,910 --> 00:08:08,310 This problem is making me hungry. 137 00:08:08,310 --> 00:08:10,800 It's taking so much glucose from my bloodstream. 138 00:08:10,800 --> 00:08:14,000 I'm focusing so much not to make careless mistakes. 139 00:08:14,000 --> 00:08:16,379 Anyway, integral from 0 to infinity. 140 00:08:16,379 --> 00:08:26,250 And now, we have uv prime, so u is minus 1 over s e to the 141 00:08:26,250 --> 00:08:30,459 minus st. That's u. 142 00:08:30,459 --> 00:08:34,480 And then v prime times minus a. 143 00:08:34,480 --> 00:08:37,158 So let's make that minus cancel out with this one. 144 00:08:37,158 --> 00:08:38,399 So that becomes a plus. 145 00:08:38,399 --> 00:08:46,860 a sine of at, dt. 146 00:08:46,860 --> 00:08:49,169 I'm starting to see the light at the end of the tunnel. 147 00:08:49,169 --> 00:08:51,699 So then, let's simplify this thing. 148 00:08:51,700 --> 00:08:53,610 And, of course, we're going to have to evaluate this whole 149 00:08:53,610 --> 00:08:56,730 thing, right? 150 00:08:56,730 --> 00:08:58,350 Actually, we're going to have to evaluate everything. 151 00:08:58,350 --> 00:09:00,440 Let's just focus on the indefinite integral for now. 152 00:09:00,440 --> 00:09:02,020 We're going to have to take this whole thing and 153 00:09:02,019 --> 00:09:05,179 evaluate-- let's just say that y is the antiderivative and 154 00:09:05,179 --> 00:09:07,339 then evaluate it from infinity to 0. 155 00:09:07,340 --> 00:09:08,850 From 0 to infinity. 156 00:09:08,850 --> 00:09:15,125 So y is equal to minus e to the minus st 157 00:09:15,125 --> 00:09:19,072 over s, sine of at. 158 00:09:19,072 --> 00:09:21,690 Now let's distribute this. 159 00:09:21,690 --> 00:09:32,950 Minus a over s squared, e to the minus st, cosine of at. 160 00:09:32,950 --> 00:09:33,430 Right? 161 00:09:33,429 --> 00:09:35,989 OK, now I want to make sure I don't make a careless mistake. 162 00:09:35,990 --> 00:09:36,379 OK. 163 00:09:36,379 --> 00:09:39,389 Now, let's multiply this times this and take all of the 164 00:09:39,389 --> 00:09:40,519 constants out. 165 00:09:40,519 --> 00:09:42,449 So we have an a and an s. 166 00:09:42,450 --> 00:09:43,790 a over s. 167 00:09:43,789 --> 00:09:44,740 There's a minus sign. 168 00:09:44,740 --> 00:09:46,470 We have a plus a to the s. 169 00:09:46,470 --> 00:09:56,740 So we'll have a minus a squared over s squared, times 170 00:09:56,740 --> 00:10:00,990 the integral from 0-- well, I said I'm just worrying about 171 00:10:00,990 --> 00:10:06,060 the indefinite integral right now, and we'll evaluate the 172 00:10:06,059 --> 00:10:07,679 boundaries later. 173 00:10:07,679 --> 00:10:13,759 e to the minus st, sine of at, dt. 174 00:10:13,759 --> 00:10:15,799 Now, this is the part, and we've done this before, it's a 175 00:10:15,799 --> 00:10:18,579 little bit of a trick with integration by parts. 176 00:10:18,580 --> 00:10:22,500 But this expression, notice, is the same thing as our 177 00:10:22,500 --> 00:10:23,940 original y. 178 00:10:23,940 --> 00:10:24,400 Right? 179 00:10:24,399 --> 00:10:25,409 This is our original y. 180 00:10:25,409 --> 00:10:27,110 And we're assuming we're doing the indefinite integral, and 181 00:10:27,110 --> 00:10:28,340 we'll evaluate the boundaries later. 182 00:10:28,340 --> 00:10:30,440 Although we could have kept the boundaries the whole time, 183 00:10:30,440 --> 00:10:32,120 but it would have made it even hairier. 184 00:10:32,120 --> 00:10:34,440 So we can rewrite this integral as y. 185 00:10:34,440 --> 00:10:37,580 That was our definition. 186 00:10:37,580 --> 00:10:39,440 And actually, I just realized I'm running out of time, so 187 00:10:39,440 --> 00:10:42,010 I'll continue this hairy problem in the next video. 188 00:10:42,009 --> 00:10:43,259 See you soon. 189 00:10:43,259 --> 00:10:43,899