Processing math: 100%
 
+0  
 
0
837
5
avatar

if x^2+(3*sin(x))-2=0 then what is the value of x?

 Apr 29, 2014

Best Answer 

 #1
avatar+33654 
+8

Let f(x)=x2+3sin(x)-2.  We want the value(s) of x that make f(x)=0.

First let's plot a graph of the function:

x^2+3sin(x)-2

We can see there are two solutions to f(x) = 0.  Because of the sin(x) term we need to solve this numerically.  One way of doing this is to use the Newton-Raphson method:

Newton-Raphson numerical method.f(x)=x^2+3sin(x)-2f'(x)=2x+3cos(x)Guessaninitialvaluefor$x$callit$x0$.Theniteratetowardsasolutionasfollows:x_{n+1}=x_n-\frac{f(x_n}{f'(x_n)}Becausetherearetwosolutionshere,weneedtodothistwicewithadifferentguesseachtime.Fromthegraphwecanseethat$x0=2$and$x0=1$mightbegoodguesses.BecauseNewtonRaphsontendstoconvergequickly,weprobablydontneedtoiteratemanytimes.Hereafterabout4iterationsweconvergeonx=-2.1310748andx=0.5853206fromourtwoguesses,whichlooksconsistentwiththegraphabove!

 Apr 29, 2014
 #1
avatar+33654 
+8
Best Answer

Let f(x)=x2+3sin(x)-2.  We want the value(s) of x that make f(x)=0.

First let's plot a graph of the function:

x^2+3sin(x)-2

We can see there are two solutions to f(x) = 0.  Because of the sin(x) term we need to solve this numerically.  One way of doing this is to use the Newton-Raphson method:

Newton-Raphson numerical method.f(x)=x^2+3sin(x)-2f'(x)=2x+3cos(x)Guessaninitialvaluefor$x$callit$x0$.Theniteratetowardsasolutionasfollows:x_{n+1}=x_n-\frac{f(x_n}{f'(x_n)}Becausetherearetwosolutionshere,weneedtodothistwicewithadifferentguesseachtime.Fromthegraphwecanseethat$x0=2$and$x0=1$mightbegoodguesses.BecauseNewtonRaphsontendstoconvergequickly,weprobablydontneedtoiteratemanytimes.Hereafterabout4iterationsweconvergeonx=-2.1310748andx=0.5853206fromourtwoguesses,whichlooksconsistentwiththegraphabove!

Alan Apr 29, 2014
 #2
avatar+130466 
+5

if x^2+(3*sin(x))-2=0 then what is the value of x?

-------------------------------------------------------------------------------------------------

This one would be difficult to solve without a solving program....although we could use some Calculus techniques to get an approximation, like Alan did. However, since you're asking a trig question, I might assume that you haven't taken Calculus, yet.

Using Wolfram, the solutions (in rads) are -2.13105 (-122.1°) and .585321 (33.54°)

I think that's it.......

 Apr 29, 2014
 #3
avatar+118703 
0

Alan, did you do that whole answer in Texmaker and then copy it over?

 Apr 29, 2014
 #4
avatar+33654 
+5

Alan, did you do that whole answer in Texmaker and then copy it over?

I did (well, the LaTeX bit - not the graph!) and it didn't work perfectly (the first few lines aren't in the same position as in Texmaker)!

 Apr 29, 2014
 #5
avatar+33654 
+5

Chris wrote; 

This one would be difficult to solve without a solving program....although we could use some Calculus techniques to get an approximation, like Alan did. However, since you're asking a trig question, I might assume that you haven't taken Calculus, yet.

Using Wolfram, the solutions (in rads) are -2.13105 (-122.1°) and .585321 (33.54°)

We should note that Wolfram's results are also approximate.

An alternative, non-calculus based technique, would be a binary section technique.  Choose two values of opposite sign either side of a solution (use the graph to come up with initial choices).  Then halve the interval and see if f(x) is sufficiently close to zero. If it isn't but is positive, replace the previous positive value by this new one (similarly, if the new one is negative, replace the previous negative value by the new one) and keep repeating this process until f(x) is within some pre-specified tolerance of zero.

 Apr 29, 2014

1 Online Users