How can the Newton-Raphson method be used to solve a curved triangle equation?

  • Context: Graduate 
  • Thread starter Thread starter m1ke_
  • Start date Start date
  • Tags Tags
    Triangle
Click For Summary

Discussion Overview

The discussion revolves around the application of the Newton-Raphson method to solve an equation related to a triangle with two straight sides and one curved side defined by an exponential function. Participants explore the challenges of deriving the necessary equations and numerical solutions, particularly in the context of image processing.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses uncertainty about converting the function into polar coordinates and seeks guidance on solving for the unknown side of the triangle.
  • Another participant inquires about the nature of the problem, clarifying that it is related to a project rather than homework.
  • The application of the problem is identified as image processing, with the participant mentioning difficulties when approaching 90 degrees in their calculations.
  • A suggestion is made to write the equation of the straight side in slope-intercept form and to find the intersection with the curved function, using numerical techniques.
  • Concerns are raised about the behavior of the equations when theta approaches 90 degrees, with a participant noting that the line becomes horizontal.
  • A later reply introduces the need for the Lambert W function when equating the linear function with the exponential function, prompting a request for additional suggestions.
  • Another participant outlines the form of the equation to be solved and recommends using the Newton-Raphson method, emphasizing the importance of selecting an appropriate initial trial value for convergence.
  • A participant acknowledges the usefulness of the Newton-Raphson method, recalling its application in approximating square roots.

Areas of Agreement / Disagreement

Participants generally agree on the applicability of the Newton-Raphson method for solving the equation, but there are differing views on the challenges posed by the specific conditions of the problem, such as the behavior near 90 degrees and the use of the Lambert W function.

Contextual Notes

Participants mention potential issues with convergence depending on the initial trial value and the specific characteristics of the functions involved, particularly when approaching critical angles.

m1ke_
Messages
21
Reaction score
0
I'm having a hard time figuring out what to do here and it feels as though it involves converting the function into polar coordinates but I'm not a hundred percent sure.

Essentially, I have a triangle in which two sides are straight and one side is a curved function. Knowing only the length of one side, the angle between them, and the function, I need to either be able to find the other straight side or x. I do not need help with solving it but more so just guidance on how I would go about solving it. I've included a mspaint attempt at drawing it.

Thanks in advance
 

Attachments

  • phys.JPG
    phys.JPG
    2.3 KB · Views: 2,897
Physics news on Phys.org
What is your application? Or is this a homework or self-study problem?
 
The application is towards image processing. I am a coop student and am deriving equations for a project so I cannot go into very much detail.
I've tried using polar coordinate system but my equation blows up when I approach 90 degrees, arc length seems like a reasonable approach but I am not fully certain on what to do.
 
Okay, we are careful around here about helping people with homework. So it's good to know this is not a homework problem :smile:

.

attachment.php?attachmentid=31641&d=1296076080.jpg

I guess you've tried some obvious ways to do this, but let me just suggest the first thing that comes to my mind. There may be reasons why it won't work; if so I'll leave it to you to provide more info.

May I presume line L is in a known orientation (perhaps vertical)? That means the slop of the other straight side -- let's call it M -- is known.

From the slope of M and the coordinates of the common vertex of L and M, you can write an equation for M in y=mx+b form. Then you need to solve for the intersection of the line with f(x); there are standard techniques for doing this numerically.

Once you know the common vertex of L and M, as well as the intersection of M with f(x), you can get the length of M using the Distance Formula from geometry.

m1ke_ said:
The application is towards image processing. I am a coop student and am deriving equations for a project so I cannot go into very much detail.
I've tried using polar coordinate system but my equation blows up when I approach 90 degrees, arc length seems like a reasonable approach but I am not fully certain on what to do.
Hmmm, when θ is 90°, the line is simply y=whatever (the y-coordinate of the vertex common to L and M. Not sure why that would be a problem.
 
Redbelly98 said:
Okay, we are careful around here about helping people with homework. So it's good to know this is not a homework problem :smile:
.

attachment.php?attachmentid=31641&d=1296076080.jpg

I guess you've tried some obvious ways to do this, but let me just suggest the first thing that comes to my mind. There may be reasons why it won't work; if so I'll leave it to you to provide more info.

May I presume line L is in a known orientation (perhaps vertical)? That means the slop of the other straight side -- let's call it M -- is known.

From the slope of M and the coordinates of the common vertex of L and M, you can write an equation for M in y=mx+b form. Then you need to solve for the intersection of the line with f(x); there are standard techniques for doing this numerically.

Once you know the common vertex of L and M, as well as the intersection of M with f(x), you can get the length of M using the Distance Formula from geometry.


Hmmm, when θ is 90°, the line is simply y=whatever (the y-coordinate of the vertex common to L and M. Not sure why that would be a problem.

Its understandable for your skepticism, and so thank you for your time. I guess I could be a little less vague. Your correct the orientation is vertical and also the function is an exponential function, we can say exp(x).

I just finished trying your method, it works to a point. When I equate the linear function with the known exponential function, it requires a 'Lambert W" (also known as "Product Log") function. I will look into these functions, but at the same time, are there any other suggestions you could make?
 
Okay, glad I was pretty much on target with things.

You have to solve an equation that looks something like
Aekx = mx + b​
or
g(x) = Aekx - (mx + b) = 0​

You can use the Newton-Raphson method to do this numerically; it is described here:
You'll need an initial trial value for x. I suggest using a very large value for x to guarantee convergence to the desired solution. If theta is close to 90 degrees, or greater, than a small trial value of x will give problems. If you have some idea of the largest x could possibly be in practice, that would be a good initial value.

Hope that helps.
 
Redbelly98 said:
Okay, glad I was pretty much on target with things.

You have to solve an equation that looks something like
Aekx = mx + b​
or
g(x) = Aekx - (mx + b) = 0​

You can use the Newton-Raphson method to do this numerically; it is described here:
You'll need an initial trial value for x. I suggest using a very large value for x to guarantee convergence to the desired solution. If theta is close to 90 degrees, or greater, than a small trial value of x will give problems. If you have some idea of the largest x could possibly be in practice, that would be a good initial value.

Hope that helps.

Yes, it does help. I remember that sort of process from class when told to approximate the value of \sqrt{}2 without a calculator. Never even crossed my mind to use it outside of that. Thank you very much for your help
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
5K
Replies
4
Views
2K
  • · Replies 21 ·
Replies
21
Views
4K
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K