MechWarrior: Living Legends
Pages: [1]   Go Down
  Print  
Author Topic: A little math help?  (Read 485 times)
JesseG88
Bondsman
*
Offline Offline

Posts: 4


View Profile
« on: February 24, 2008, 10:31:45 PM »

So I'm taking derivatives of trig functions.  I know that if y=sin(x), then y'=cos(x).  I'm wondering if you know calculus, what is y' if y=sin2(x)?  I'm not sure if I'm supposed to use the power rule(dy/dx xn = nxn-1) and/or the chain rule(dy/dx f(g(x)) = f'(g(x))g'(x)).
Logged
MWLLKeeper
Professional Amature
MWLL DEV
Lance Sergeant
*
Offline Offline

Posts: 445


View Profile
« Reply #1 on: February 25, 2008, 02:56:06 AM »

2cos(x) unless i'm mistaken.

HA, I was way off.

http://library.wolfram.com/webMathematica/Education/WalkD.jsp
http://calc101.com/webMathematica/derivatives.jsp#topdoit
Always use the web to answer questions like these, there are plenty of really helpful and informative tools like this hidden out there. It's surprising what a good search will pop up (I used "derivative calculator").

It was the chain rule btw, and treat it as (sin(x))^2 and it's a little clearer. Comes to 2sin(x)cos(x) which is equal to sin(2x). Hope that helped  Smiley
Logged

Masakari
I wont forgot to brung it next time :downs:
MWLL DEV
Star Captain
*
Online Online

Posts: 1071


Better safe than sorry.


View Profile
« Reply #2 on: February 25, 2008, 08:26:51 AM »

Assuming you mean sin(2x)... {{not sin^2(x)...}} it'd be 2cos(2x).

Let's work through it.

You can always substitute one variable for another if you're in a bind... so let's sub u for 2x.

So -- what's the derivative of sin(u)... well, that's be cos(u) as you just said.

Okay -- but the chainrule says we need to multiply by the derivative of u.

Well -- since u = 2x... what's the derivative of 2x?

Well... that's 2.
... So we multiply cos(u) by 2.
... which is 2cos(u)
... which is 2cos(2x)

... if you can do it by eye (which -- yea you eventually definitely will be able to) then you don't need to do substitutions... but that's just easier to read. (and is something you're going to be doing FOREVER)

If you actually did mean sine_squared(x) -- it would be 2sin(x)cos(x).

The power rule and the chainrule are actually the same thing, sorta...

{sin(x)}^2... sub sin(x) for "u".

u^2 differentiates to 2u. Well -- you need to multiply by the derivative of u again, by the chainrule... what's the derivative of u?... well what's the derivative of sin(x)? ... cos(x).

Therefore -- 2*u*cos(x) which is 2*sin(x)*cos(x).

If you wish me to explain it better -- I'll do it tomorrow after class.

Obviously "^" is the sign for "to the power of"...
Logged


:conspiracy:
How i play this is it just for making it or playing and making it
Fail
JesseG88
Bondsman
*
Offline Offline

Posts: 4


View Profile
« Reply #3 on: February 25, 2008, 06:32:34 PM »

Thanks for the help!
Logged
death_grin
MWLL DEV
Star Captain
*
Offline Offline

Posts: 850


Level Design/Enviromental artist


View Profile
« Reply #4 on: March 12, 2008, 09:45:46 AM »

wheres my gun..
Logged

PanzerBoxb
Captain Cheese™
Star Captain
***
Offline Offline

Posts: 1150



View Profile
« Reply #5 on: March 12, 2008, 11:13:05 AM »

No gun, but after reading this thread I do have a bottle of Excedrin Migraine pills.  Cheesy
Logged
zaha
Code Monkey, Another One
MechWarrior
**
Offline Offline

Posts: 269



View Profile WWW
« Reply #6 on: March 12, 2008, 12:09:11 PM »

help, everything was absolutely clear to me!  Shocked

Something's wrong with me, isn't it? ;_;
Logged


I've been waiting for a long time, for this moment to come.
I'm destined for anything...at all.
PanzerBoxb
Captain Cheese™
Star Captain
***
Offline Offline

Posts: 1150



View Profile
« Reply #7 on: March 12, 2008, 01:17:42 PM »

help, everything was absolutely clear to me!  Shocked

Something's wrong with me, isn't it? ;_;

Apparently so.  Cheesy
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Metallic Abyss Theme by SMFers
Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!