Linear Algebra - Finding coordinates of a set

Click For Summary
SUMMARY

The discussion centers on finding the coordinates of the set S = {1, cos(x), cos(2x), cos(3x), cos(4x), cos(5x)} relative to the basis B = {1, cos(x), cos2(x), cos3(x), cos4(x), cos5(x)} using Mathematica software. Participants emphasize the need to construct a 6x6 matrix by evaluating the basis elements at six specific points: {0, π/6, π/4, π/3, π/2, π}. The correct approach involves expressing each element of S as a linear combination of elements from B, leading to coordinate vectors such as (1, 0, 0, 0, 0, 0) for 1 and (-1, 0, 2, 0, 0, 0) for cos(2x).

PREREQUISITES
  • Understanding of linear combinations in vector spaces
  • Familiarity with the concept of basis in linear algebra
  • Proficiency in using Mathematica software for mathematical computations
  • Knowledge of trigonometric identities and their applications
NEXT STEPS
  • Learn how to construct matrices in Mathematica for linear algebra problems
  • Study the process of expressing functions as linear combinations of basis functions
  • Explore the use of trigonometric identities in simplifying expressions
  • Investigate the properties of polynomial approximations in linear algebra
USEFUL FOR

Students and educators in mathematics, particularly those focusing on linear algebra and trigonometry, as well as anyone utilizing Mathematica for computational mathematics.

cscott0001
Messages
6
Reaction score
1

Homework Statement



Find the coordinates of each member of set S relative to B.
B = {1, cos(x), cos2(x), cos3(x), cos4(x), cos5(x)}
S = {1, cos(x), cos(2x), cos(3x), cos(4x), cos(5x)}

I am to do this using Mathematica software. Each spanning equation will need to be sampled at six separate points to create a 6x6 system that solves for the coordinates of each element of S.

Homework Equations



Ax = b
If I was given a simpler problem, such as "Find the coordinate vector of w = (1, 0) relative to the basis S = {u, v}, u = (2, 2) and v = (1, 1)" my equation would start:

(1, 0) = k1(2, 2) + k2(1, 1)

and I'd solve for k1 and k2

The Attempt at a Solution



I started with the equation S = kB, where k is a constant, but I was told to build a 6x6 matrix by sampling each member of B at six points, so I knew that's wasn't right. I built a 6x6 matrix from B with columns 1-6 filled with evaluations of B with x = {0, pi/6, pi/4, pi/3, pi/2, pi}, but I don't think that's right either, because I didn't create any spanning equations. I tried using a matrix {{1,0,0,0,,00},{0,cos(x),0,0,0,0}...{0,0,0,0,0,cos5(x)}}, to test for span, but that didn't feel right either. How do I create spanning equations to sample to build the matrix?
 
Physics news on Phys.org
Given that <br /> \cos (n \pm 1)x = \cos nx \cos x \mp \sin nx \sin x we obtain <br /> \cos (n+1)x = 2\cos x \cos nx - \cos(n-1)x. From this recurrence relation you can express \cos nx as a polynomial in \cos x, which gives you a matrix equation <br /> (1, \cos x, \dots, \cos 5x)^{T} = A (1, \cos x, \dots, \cos^5 x) and your problem is to invert A.
 
cscott0001 said:

Homework Statement



Find the coordinates of each member of set S relative to B.
B = {1, cos(x), cos2(x), cos3(x), cos4(x), cos5(x)}
S = {1, cos(x), cos(2x), cos(3x), cos(4x), cos(5x)}

I am to do this using Mathematica software. Each spanning equation will need to be sampled at six separate points to create a 6x6 system that solves for the coordinates of each element of S.

Homework Equations



Ax = b
If I was given a simpler problem, such as "Find the coordinate vector of w = (1, 0) relative to the basis S = {u, v}, u = (2, 2) and v = (1, 1)" my equation would start:

(1, 0) = k1(2, 2) + k2(1, 1)

and I'd solve for k1 and k2

The Attempt at a Solution



I started with the equation S = kB, where k is a constant, but I was told to build a 6x6 matrix by sampling each member of B at six points, so I knew that's wasn't right. I built a 6x6 matrix from B with columns 1-6 filled with evaluations of B with x = {0, pi/6, pi/4, pi/3, pi/2, pi}, but I don't think that's right either, because I didn't create any spanning equations. I tried using a matrix {{1,0,0,0,,00},{0,cos(x),0,0,0,0}...{0,0,0,0,0,cos5(x)}}, to test for span, but that didn't feel right either. How do I create spanning equations to sample to build the matrix?

So, what you actually need to do is write all the elements of S as linear combinations of elements of B. For example:

##1 = 1*1 + 0*cos(x) + 0*cos^2(x) + 0*cos^3(x) + 0*cos^4(x) + 0*cos^5(x)##

Thus, the coordinates of ##1## relative to ##B## is ##(1,0,0,0,0,0)##.

Another example:

##cos(2x) = cos^2(x) - sin^2(x) = cos^2(x) - (1 - cos^2(x)) = -1 + 2cos^2(x)##

Thus, the coordinates of ##cos(2x)## relative to ##B## is ##(-1,0,2,0,0,0)##

Now, try the rest of the exercise.

EDIT: I didn't read carefully about the mathematica part. You can ignore this post.
 

Similar threads

Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
12
Views
2K
Replies
15
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K