Linear, second-order differential equation?

  • Thread starter Raen
  • Start date
  • #1
11
0
One of my homework problems this week was:

Verify that y = sin(4t) + 2cos(4t) is a solution to the following initial value problem.

2y'' + 32y=0; y(0)=2, y'(0)=4

Find the maximum of |y(t)| for -infinity< t < infinity.


Verifying that the given y equation is a solution is easy, all there is to do is derive twice, plug in the new equations, and show that 0 = 0. I have no trouble with that. My question is with the second part, about finding the maximum positive value of y(t).

I would think that no matter how large t gets, sin and cos will always oscillate between -1 and 1. When cos is 1, obviously sin is 0. Putting in sin(4t) = 0 and cos(4t) = 1 gives me a maximum value of 2 for any y(t) as t approaches infinity. I graphed the function on a calculator to confirm this, just in case, and the graph appears to agree with me.

My confusion is that 2 isn't the correct answer. According to the website we do our homework on, the answer should be sqrt(5). There are no questions like this worked out in the book and I can't find anything online. Can anybody explain to me why y(t) has a maximum value of sqrt(5) as t approaches infinity?

Thank you!
 

Answers and Replies

  • #2
LCKurtz
Science Advisor
Homework Helper
Insights Author
Gold Member
9,559
770
Generally, when you have something like acos(θ) + bsin(θ) you can write it as a single trig function. You multiply and divide by the square root of the sum of the squares of the coefficients:

[tex]a\cos\theta + b\sin\theta = \sqrt{a^2+b^2}
\left(\frac a {\sqrt{a^2+b^2}}\cos\theta + \frac b {\sqrt{a^2+b^2}}\sin\theta\right)[/tex]

Now, since the sum of the squares of the new coefficients of the sine and cosine add up to one, they can be used as the sin(β) and cos(β) of some angle β. You then have an addition formula for a sine or cosine function with amplitude [itex]\sqrt{a^2+b^2}[/itex]. In your example that gives amplitude [itex]\sqrt 5[/itex].
 
  • #3
HallsofIvy
Science Advisor
Homework Helper
41,847
966
LCKurtz's response is, as always, excellent.

Raen, you seem to be assuming that a maximum of f+ g must occur where either f or g has a maximum (since you looked immediately at cos(x)= 1) and that is not correct.

Another way to find a maximum or minimum for a function is (as I am sure you know) is to look where the derivative is 0. If f(x)= sin(4x)+ 2cos(4x), then f'(x)= 4cos(4x)- 8sin(4x)= 0 when 4 cos(4x)= 8 sin(4x) or cos(4x)= 2sin(4x). Rather than solve for x directly, note that [itex]cos^2(4x)= 4 sin^2(4x)[/itex] so [itex]sin^2(4x)+ cos^2(4x)= 5 sin^2(4x)= 1[/itex] so that [itex]sin^2(4x)= 1/5[/itex] and [itex]sin(4x)= 1/\sqrt{5}= \sqrt{5}/5[/itex]. And, of course, [itex]cos^2(4x)= 1- sin^2(x)= 4/5[/itex] so [itex]cos(4x)= 2/\sqrt{5}= 2\sqrt{5}/5[/itex].

Putting those back into the original formula, [itex]sin(4x)+ 2cos(4x)= \sqrt{5}/5+ 4\sqrt{5}/5= 5/\sqrt{5}= \sqrt{5}[/itex]
 
Last edited by a moderator:
  • #4
11
0
Oh, I think I understand now. Thank you both for your detailed explanations!
 

Related Threads on Linear, second-order differential equation?

Replies
3
Views
2K
Replies
4
Views
810
Replies
3
Views
2K
Replies
3
Views
2K
Replies
1
Views
2K
Replies
12
Views
3K
Replies
1
Views
1K
Replies
5
Views
2K
Replies
1
Views
4K
Replies
29
Views
13K
Top