Thread: Math confusion

  1. #1
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572

    Math confusion

    here I am, studying for my linear algebra midterm when I stumble upon the following problem:
    Code:
    Consider the vectors cos(x+y) and sinx in C[-pi, pi]. for what values of y will
    the two vectors be linearly dependent?
    well the linear part is quite easy so I will do that here. But what gets me is the trig afterwards:
    Code:
    W[cos(x+y), sinx] = | cos(x+y)  sinx |
                        |-sin(x+y)  cosx |
    
    	         = cos(x+y)cosx + sin(x+y)sinx = 0
    I wont get into the symantics of linear algebra too much, but basically for the vectrs to be linearly dependent that determinant has to equal zero. Now the problem is for what values of y will this equation hold:
    Code:
    cos(x+y)cosx + sin(x+y)sinx = 0
    anyone?

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  2. #2
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    damnit, I hate problems like that...they wont let me go to sleep. So after more than an hour I have found the solution. y has to be an odd multiple of ('pi'/2). I found the solution graphically thought, not algebraically...but the latter is for after i get some sleep.

    Maybe one of you guys will know the algebraic way to do this?

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  3. #3
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Well, you could use the fact that:
    cos(x+y) = cos(x)*cos(y) - sin(x)*sin(y)
    and the fact that sin x is periodic. The conclusion is readily derived from these.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  4. #4
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    Just wondering, what math are you guys in (are you in college or high school). We don't do anything cool like that in my calculus class, we're still doing stupid limits and continuity, which are important but my class goes too slow

  5. #5
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Posts
    2,572
    ZachL I figured it out the next morning. The solution is quite trivial, but I blame lack of sleep for not getting it that night.

    SilvercordAs my original posts says - it is a Linear Algebra course. A course that every computer scientist has to take, as it is qute similar and very useful to/for a lot of subjects in CS. This course is taken after differential equations (at least in most of the schools that i know).

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  6. #6
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Originally posted by axon
    ZachL I figured it out the next morning. The solution is quite trivial, but I blame lack of sleep for not getting it that night.
    From experience, sleep deprivation is good for writing English papers, but not doing math problems.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Math
    By knightjp in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 04-01-2009, 05:36 PM
  2. Help with C++ Math
    By aonic in forum C++ Programming
    Replies: 4
    Last Post: 01-29-2005, 04:40 AM
  3. Basic Math Problem. Undefined Math Functions
    By gsoft in forum C Programming
    Replies: 1
    Last Post: 12-28-2004, 03:14 AM
  4. Math Header?
    By Rune Hunter in forum C++ Programming
    Replies: 26
    Last Post: 09-17-2004, 06:39 AM
  5. toughest math course
    By axon in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 10-28-2003, 10:06 PM