Do I Need to Convert Theta to Radians for Taking the Derivative?

  • Context: Undergrad 
  • Thread starter Thread starter jonesyxd
  • Start date Start date
  • Tags Tags
    Derivative Theta
Click For Summary
SUMMARY

The discussion centers on the necessity of converting angles from degrees to radians when taking derivatives of trigonometric functions in MATLAB. The user is tasked with finding the derivative of a force function, P, defined in terms of theta, which is initially given in degrees. It is established that for accurate differentiation, theta must be converted to radians, as the derivatives of trigonometric functions are derived under the assumption that angles are in radians. The correct derivative involves applying the chain rule, resulting in a multiplication by π/180 when converting from degrees.

PREREQUISITES
  • Understanding of trigonometric functions and their derivatives
  • Familiarity with MATLAB for numerical methods
  • Knowledge of the chain rule in calculus
  • Basic concepts of angle measurement in degrees and radians
NEXT STEPS
  • Study the application of the chain rule in calculus
  • Learn about MATLAB's ODE solvers and their implementation
  • Explore the differences between angle measurements in degrees and radians
  • Investigate the derivation of trigonometric function derivatives in calculus textbooks
USEFUL FOR

Students in mathematics or engineering courses, particularly those studying calculus and numerical methods in MATLAB, as well as anyone needing to understand the implications of angle measurement on trigonometric derivatives.

jonesyxd
Messages
3
Reaction score
0
Hi all,

The following is part of a part, of an assignment for my MATLAB course for uni.

For most of the ODE solvers in MATLAB you also have to be able to solve the question numerically - and this is the component of the question I'm doing here..


The equilibrium equation of an arch type structure is the function below..

P = 4 x K x L[cos(alpha -theta ) - cos(alpha)] x tan(alpha -theta );
GIVEN L=1m, alpha=30degrees, K=100kN/m

Substituting in unknowns we get..

P = 400[cos(30 - theta) - cos(30)] x tan(30 - theta)

Now I have a function of P(force) and theta(angle in degs), for the question though I have to solve for the roots using 'Newtons Method'(need the derivative of the function) and this is where my questions comes in..

To find the derivative of this function with respect to theta, do I first need to convert theta to radians? ie, alpha = Pi / 6, Theta = Pi / 180(theta) ?? ..should I be taking the derivative of the above function? or the one below

P = 400[cos(Pi/6 - Pi/180(theta)) - cos(Pi/6)] x tan(Pi/6 - Pi/180(theta))

Thanks for reading!
 
Physics news on Phys.org
Formally you should convert it to radians.
 
What do you mean 'formally'?

If they are not in radians when I get to the chain rule, this will happen

derivative of cos(30 - theta) = -sin(30 - theta) * (-1) = sin(30 - theta)

but if I convert to rads..

derivative of cos(∏/6 - ∏/180(theta)) = -sin(∏/6 - ∏/180(theta)) * (-∏/180) = ∏/180 sin(∏/6 - ∏/180(theta))

Or am I way off here?
 
I mean that arguments of trigonometric function are in radians. But the only difference is that derivative is mulitplied by ∏/180.
 
jonesyxd said:
What do you mean 'formally'?

If they are not in radians when I get to the chain rule, this will happen

derivative of cos(30 - theta) = -sin(30 - theta) * (-1) = sin(30 - theta)

but if I convert to rads..

derivative of cos(∏/6 - ∏/180(theta)) = -sin(∏/6 - ∏/180(theta)) * (-∏/180) = ∏/180 sin(∏/6 - ∏/180(theta))

Or am I way off here?
Way off! If you look at the derivation of the derivatives of the trig functions in any Calculus book, you will use the fact that \lim_{x\to 0} sin(x)/x= 1. That is only true if x is measured in radians.

To differentiate sin(x) where x is in degrees, you would have to write sin(x)= sin(180u/\pi) and use the chain rule: (sin(x))'= (180/\pi)cos(180u/\pi)= (180/\pi)cos(x).
 
HallsofIvy said:
To differentiate sin(x) where x is in degrees, you would have to write sin(x)= sin(180u/\pi) and use the chain rule: (sin(x))'= (180/\pi)cos(180u/\pi)= (180/\pi)cos(x).

I really don't consider myself good at calculus at all, but isn't that what i did?


to find derivative of cos(30 - x) when x and '30' are both in degrees..

= cos(∏/6 - ∏/180(x)) now to find derivative..

=-sin(∏/6 - ∏/180(x)) * (-∏/180)

=∏/180*sin(∏/6 - ∏/180(x))

?
 
That may be what you intended but it was not what you said. You said:
jonesyxd said:
What do you mean 'formally'?

If they are not in radians when I get to the chain rule, this will happen

derivative of cos(30 - theta) = -sin(30 - theta) * (-1) = sin(30 - theta)
and this is completely wrong.

but if I convert to rads..

derivative of cos(∏/6 - ∏/180(theta)) = -sin(∏/6 - ∏/180(theta)) * (-∏/180) = ∏/180 sin(∏/6 - ∏/180(theta))

Or am I way off here?
You appeared to be thinking that sine and cosine, in different units, were different functions and so would have different derivatives. That is not at all true.

Indeed, in many Pre-Calculus and Calculus texts, the sine and cosine are defined so that the variables are measured around the circumference of a unit circle rather than as angles. The advantage of that is that the variables do NOT have any units at all, they are just numbers- like all other functions. But engineers, who design calculators still think in terms of angle so we have to talk about "radians" which, on a unit circle, are the same as the distance on the circumference.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K