Finding Solution to cos(x*L)=x

  • Thread starter Thread starter wesimpson
  • Start date Start date
Click For Summary

Homework Help Overview

The original poster attempts to find the intersection point of the functions y=cos(x*L) and y=x, specifically seeking the x-component of this intersection expressed in terms of pi and L. They note that the period of the cosine function is affected by the variable L, while the line y=x remains unchanged.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the challenges of plotting the function y=cos(x*L) due to L being a variable. The original poster shares an attempt at finding a numerical solution and expresses confusion about the impact of L on the intersection point. Others mention the absence of a closed-form solution and caution about multiple solutions existing.

Discussion Status

Some participants have offered numerical methods and approximations, such as using a quadratic estimate or the Newton-Raphson algorithm, to find the intersection for specific values of L. The conversation reflects a mix of numerical exploration and theoretical considerations without reaching a consensus.

Contextual Notes

There is an acknowledgment of the complexity introduced by the variable L and the potential for multiple intersection points, which are central to the discussion. The original poster's goal is to express the solution in a specific format, which adds constraints to their approach.

wesimpson

Homework Statement


I'm trying to find the intersection point of y=cos(x*L) and y=x. I need the solution in terms of pi and L and only need the x component of the intersection point. I think the solution will be in the form of x = some_number*pi/L

Homework Equations


I know that the L in cos(x*L) just compresses the cosine wave so that instead of the period being 2*pi it is 2*pi/L.
I also know that y=x is simply a 45 degree line.

The Attempt at a Solution


First, I plotted y=cos(x) and y = x and found this intersection point to be 0.235*pi.
Then, I tried to plot y=cos(x*L) but can't seem to find a tool to actually give me this plot because L is a variable.
I know the actual intersection point will depend on L, but that's OK because I need the result in terms of L.
I tried to use x = 0.235*pi/L as the solution but that fails because only the cosine wave is compressed by L, not the y=x line. For example, if L=2, the result is NOT 0.235*pi/2 = 0.1175*pi. Instead it would be 0.1639*pi.

I think I am so close, but can't make the final step.
 
Physics news on Phys.org
You're not as close as you think because there is no closed expression for the solution of cos(Lx)-x=0. All you can do is numerics. Be careful about multiple solutions.
 
That's discouraging. Here's a hand plot I did. Yes, there are multiple solutions, but there's only one that I'm interested in (shown in the sketch).
i4sHlgU.jpg
 

Attachments

  • Jswd2Bb.jpg
    Jswd2Bb.jpg
    15 KB · Views: 528
We can make a 3rd order estimate by writing
$$\cos(xL)\approx 1-\frac 12 (xL)^2$$
after which we can solve the quadratic equation.
Similarly we can make a 5th order estimate.
Or otherwise we can use the Newton-Raphson algorithm to find the intersection for specific values of L.
 
wesimpson said:
That's discouraging. Here's a hand plot I did. Yes, there are multiple solutions, but there's only one that I'm interested in (shown in the sketch).
View attachment 212646

If you have EXCEL (or even other, open-source spreadsheets) you can use the Solver tool to get a numerical solution when a numerical value of L is known.
 

Similar threads

  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
18
Views
2K
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
28
Views
2K
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K