Finding where the derivative equals zero in MATLAB

  • Topic: MATLAB 
  • Thread starter Thread starter Black-Mind
  • Start date Start date
  • Tags Tags
    Maximum
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
2 replies · 3K views
Black-Mind
Messages
7
Reaction score
0
I'm new on MATLAB and I need to find the value that make the derivative of a function = 0 in order to find the maximum of my function

I started by defining the variable T

>> syms T

Then I but my function

>> f=((((cos(T))^2+(sin(T)*cos(T)))^2)+3*(((sin(T))^2+(sin(T)*cos(T)))^2))^(0.5)

Then I diffrentiate the function with respect to T

>> diff(f,T)

But know i want to find the value that make my function equal to zero but I can't figure it out espically that I'm new on matlab

If anybody can help me I'll be thankfull
 
Physics news on Phys.org
Thanks that was very helpfull
 
Last edited by a moderator: