A Nasty Function

William Fish's picture

Why is the following function such a problem to differentiate?

= 1/(8*cos(`θ`)*(sin(`θ`))(sin(`θ`)+cos(`θ`))^2)

Here is a worksheet:

View 4937_page84.mw on MapleNet or Download 4937_page84.mw
View file details

And, why isn't Maple able to replace D(sin(theta)) with cos(theta)?  See the worksheet.

Comments

missing multiplication sign

I think the problem is that a muliplication sign is missing before the last factor of the denominator of A  .

 

William Fish's picture

Muliplication Sign Missing

Zsolt,

Thank you.  That's it.  Thanks again.

View 4937_page84.mw on MapleNet or Download 4937_page84.mw
View file details

William Fish's picture

Extrema Failed Me

invert

Try working with 1/A. 

William Fish's picture

1/A

I just tried that and extrema returned {0}.

CriticalPoints and Roots in the Student package

 

You can use the CriticalPoints and the Roots commands of the Student package to solve your problem.

Try this:

restart;
with(plots):with(Student[Calculus1]):
a := 2; b := 1;
A := (a*b)^2/(8*cos(theta)*sin(theta)*(a*sin(theta)+b*cos(theta))^2);
Agraph:=plot(A,theta=-2..5,view=[-2..5,-15..15],numpoints=3000,color=red):
Ad:=diff(A,theta);
Adgraph:=plot(Ad,theta=-5..10,view=[-2..5,-15..15],numpoints=3000,color=blue):
cpoints:=CriticalPoints( A,theta=-2..5 );
rpoints:=Roots( Ad,theta=-2..5,numeric);
Adisconts:=pointplot(zip((x,y)->[x,y],cpoints, [],0),color=blue,symbol=circle):
Adzeros:=pointplot(zip((x,y)->[x,y],rpoints, [],0),color=green,symbol=circle):
display(Agraph,Adgraph,Adisconts,Adzeros);

William Fish's picture

Roots...

That worked.  Thank you.

I like the way you did the plotting.  I'll try to add that to my inventory.

View 4937_page85.mw on MapleNet or Download 4937_page85.mw
View file details

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}