Using the concept of finite difference

In summary, the conversation revolves around finding the cosine of x using its definition and expressing it in terms of sine. The equation for the difference between cos(x+1) and cos(x) is mentioned, but it is not a preferred form. The preferred form is -2sin(1/2)sin(x+1/2) and it is derived using a well-known trigonometric identity.
  • #1
irony of truth
90
0
I am trying to find the ▲cos x. By using its definition.

It simply turned out to be cos(x+1) - cos(x). How do I express this in
terms of sine? (and as only one term)?
 
Physics news on Phys.org
  • #2
cos(x+1)= cos(x)cos(1)- sin(x) sin(1) so cos(x+1)- cos(x)= cos(x)(cos(1)-1)- sin(x)sin(1). What makes you think you can write it in terms of sine only?
 
  • #3
irony of truth said:
I am trying to find the ▲cos x. By using its definition.

It simply turned out to be cos(x+1) - cos(x). How do I express this in
terms of sine? (and as only one term)?
That is a completely correct equation for the difference. It is also not a particularly useful form. The standard form for such things in finite calculus is
[tex]{\Delta}^n\cos(x+a)=(2\sin(\frac{h}{2}))^n\cos(x+a+\frac{h}{2}n+\frac{\pi}{2}n)[/tex]
in this specific case where a=0 n=1 h=1
[tex]\Delta\cos(x)=-2\sin(\frac{1}{2})\sin(x+\frac{1}{2})[/tex]
This is one term additive, but two terms multiplicative.
 
Last edited:
  • #4
irony of truth said:
I am trying to find the ▲cos x. By using its definition.

It simply turned out to be cos(x+1) - cos(x). How do I express this in
terms of sine?

[tex] sin(x+1 - \frac{\pi}{4}) - sin(x-\frac{\pi}{4}) [/tex]
 
  • #5
Antiphon said:
[tex] sin(x+1 - \frac{\pi}{4}) - sin(x-\frac{\pi}{4}) [/tex]
little off
you may have been attempting to use the cofunctional identity
[tex]\cos(x)=\sin(\frac{\pi}{2}-x)[/tex]
getting
[tex]\sin(\frac{\pi}{2}-x-1) - \sin(\frac{\pi}{2}-x)[/tex]
or equivalently
[tex]\sin(x-\frac{pi}{2})-\sin(x+1-\frac{\pi}{2})[/tex]
but this form is not perfered for most purposes that would be
[tex]-2\sin(\frac{1}{2})\sin(x+\frac{1}{2})[/tex]
 
Last edited:
  • #6
Excuse me, how was [tex]-2\sin(\frac{1}{2})\sin(x+\frac{1}{2})[/tex]
derived? My derivation just ended with that of HallsofIvy.
 
  • #7
irony of truth said:
Excuse me, how was [tex]-2\sin(\frac{1}{2})\sin(x+\frac{1}{2})[/tex]
derived? My derivation just ended with that of HallsofIvy.
A well known identity in trigonometry is
[tex]\cos(a)-\cos(b)=-2\sin(\frac{a-b}{2})\sin(\frac{a+b}{2})[/tex]
The result is mode clear by taking a=x+1; b=x
This identity can be derived by writing
a=(a+b)/2+(a-b)/2
b=(a+b)/2-(a-b)/2
Then using the identity
cos(a+b)=cos(a)cos(b)-sin(a)sin(b)
and then adding the like terms
 
  • #8
Thank you very much.
 

1. What is the concept of finite difference?

The concept of finite difference is a mathematical method used to approximate the derivatives of a function. It involves dividing a continuous function into smaller intervals and approximating the slope of the function at each interval using a finite difference equation.

2. What is the purpose of using finite difference?

The purpose of using finite difference is to numerically solve differential equations or find the derivatives of a function when an analytical solution is not available. It is commonly used in fields such as physics, engineering, and finance.

3. How is the finite difference equation determined?

The finite difference equation is determined by using Taylor series expansions to approximate the derivatives of a function at a specific point. The order of the finite difference equation depends on the accuracy desired, with higher order equations providing more accurate results.

4. What are the advantages of using finite difference over other numerical methods?

One advantage of using finite difference is its simplicity and ease of implementation. It also allows for a straightforward way to handle boundary conditions and can be applied to a wide range of functions. Additionally, finite difference can provide accurate results with a relatively small number of data points.

5. Are there any limitations to using finite difference?

One limitation of using finite difference is that it may not provide accurate results for highly non-linear functions. It also requires a uniform grid spacing, which may not be feasible for certain applications. In some cases, the use of finite difference may also lead to numerical instability.

Similar threads

Replies
3
Views
1K
Replies
8
Views
163
Replies
11
Views
2K
  • Introductory Physics Homework Help
Replies
2
Views
470
Replies
8
Views
295
Replies
26
Views
2K
Replies
3
Views
1K
Replies
13
Views
1K
  • Programming and Computer Science
Replies
8
Views
2K
Back
Top