3

I have two functions $f$ and $g$ defined as:

$c:=x^3+x^2+x$

$d:=20\sin x^2-5$

I am trying to find the intersections of these using Maple $16$. How would I do this?

Lukas
  • 79

3 Answers3

1

Here is the command

fsolve( x^3+x^2-x=20*sin(x^2)-5, x=0..2 );

If you give maple the above command you will get the answer

$$ 0.4960649664. $$

Still there are other points of intersection and its your job to find them.

  • But it finds only one intersection. I would like to find all intercestions. In this example it is five. – Lukas Jun 11 '13 at 21:03
  • But sorry, I made a mistakes in task.

    I have two functions f and g defined as:

    f:=x^3+x^2-x g:=20sinx^2-5

    Now it could be fine.

    – Lukas Jun 11 '13 at 21:28
  • fsolve has an option: fsolve(eq, x, a..b). Try a..b by -3..-2,then -2..-1, then -1..0, also 0..1, at last 1..2 . – Tony Piccolo Jun 11 '13 at 22:25
  • @TonyPiccolo: Thanks for pointing that out. In fact, I knew about it and I wanted the OP to get started first. It seems he is new to maple. – Mhenni Benghorbal Jun 11 '13 at 23:10
1

I think you can use this command :

f := x^3+x^2+x = 0;

g := 20*sin*x^2-5 = 0;

fsolve({f, g});

enter image description here

Software
  • 737
1

The two expressions c and d intersect at the values of x for which their difference is zero. So you can compute the roots of c-d, or plot that.

For this example it happens that all the roots fall within the default ranges of the two commands (Roots and plot) used below. For other examples you might supply additional arguments to specify the range.

c := x^3+x^2-x:

d := 20*sin(x^2)-5:

Student:-Calculus1:-Roots(c-d, numeric);

   [-3.372171392, -3.196493666, -2.489209992, -1.704885557, 

     -0.5361086923, 0.4960649664, 1.614439567]

plot(c-d);

enter image description here

acer
  • 5,293