Notices
Non Scooby Related Anything Non-Scooby related

Maths problem, max value of a function...

Thread Tools
 
Search this Thread
 
Old 11 January 2009, 04:11 PM
  #1  
The Hoff
Scooby Regular
Thread Starter
iTrader: (5)
 
The Hoff's Avatar
 
Join Date: Aug 2006
Location: UK
Posts: 1,181
Received 4 Likes on 3 Posts
Default Maths problem, max value of a function...

One of my maths questions I am stuck on is, What is the maximum value of the function....

y= 4 + sin(2t) - 8cos(2t)

Now as far as I understand sin and cos have maximum values of 1 and minimum of -1. The frequency (2t) wont effect the amplitude so I end up with 4+1-(8*1) = -3

This doesnt seem right, any helpers?

Cheers, The Hoff
Old 11 January 2009, 05:17 PM
  #2  
john banks
Scooby Regular
 
john banks's Avatar
 
Join Date: Nov 2000
Location: 32 cylinders and many cats
Posts: 18,658
Likes: 0
Received 1 Like on 1 Post
Default

Ages ago since I did this, but one method is to simplify the expression so you have only one function expressed in terms of sin.

The maxmium value of -8cos(2t) will be +8 and this will be when 2t=180 degrees. The only question is if moving slightly would allow the sin(2t) to add more than the -8cos(2t) would lose.

So the most elegant way is to simplify the expression so it can be solved.
Old 11 January 2009, 05:58 PM
  #3  
pimmo2000
Scooby Regular
iTrader: (6)
 
pimmo2000's Avatar
 
Join Date: Sep 2004
Location: On a small Island near France
Posts: 14,660
Received 4 Likes on 4 Posts
Default

I dunno but you have 999 Posts !
Old 11 January 2009, 07:17 PM
  #4  
dunx
Scooby Senior
iTrader: (3)
 
dunx's Avatar
 
Join Date: Jun 2006
Location: Slowly rebuilding the kit of bits into a car...
Posts: 14,333
Likes: 0
Received 0 Likes on 0 Posts
Default

12 !

B.Eng.(Hons) pah !


LOL

dunx

Last edited by dunx; 11 January 2009 at 07:19 PM.
Old 11 January 2009, 07:18 PM
  #5  
NXG
Scooby Regular
 
NXG's Avatar
 
Join Date: Jul 2003
Location: Northants
Posts: 923
Likes: 0
Received 0 Likes on 0 Posts
Default

42. It's always 42...
Old 11 January 2009, 07:29 PM
  #6  
dunx
Scooby Senior
iTrader: (3)
 
dunx's Avatar
 
Join Date: Jun 2006
Location: Slowly rebuilding the kit of bits into a car...
Posts: 14,333
Likes: 0
Received 0 Likes on 0 Posts
Default

When cos(2t) = -1 then sin (2t) = 0

q.e.d.

dunx

P.S. Easy if you plot the function.... start at 90 degree increments and add more for detail, works best for continuous functions.

Last edited by dunx; 11 January 2009 at 07:31 PM.
Old 11 January 2009, 07:41 PM
  #7  
M535I
Scooby Regular
 
M535I's Avatar
 
Join Date: Aug 2003
Location: gloucester
Posts: 1,435
Likes: 0
Received 0 Likes on 0 Posts
Default

see this is why i didnt do my gcse's ! i have no idea best of luck though .
Old 11 January 2009, 07:48 PM
  #8  
J4CKO
Scooby Regular
iTrader: (1)
 
J4CKO's Avatar
 
Join Date: Jan 2003
Posts: 19,384
Likes: 0
Received 1 Like on 1 Post
Default

Remember which site you are on....
Old 11 January 2009, 07:56 PM
  #9  
Hanslow
Scooby Regular
 
Hanslow's Avatar
 
Join Date: Mar 2001
Location: Derbyshire
Posts: 4,496
Likes: 0
Received 0 Likes on 0 Posts
Default

Don't you differentiate it and then so you end up with dy/dt = (whatever the derivative of the r.h.s. is), and then solve for r.h.s = 0 ?
Old 11 January 2009, 08:29 PM
  #10  
AndyC_772
Scooby Regular
iTrader: (2)
 
AndyC_772's Avatar
 
Join Date: Mar 2001
Location: Swilling coffee at my lab bench
Posts: 9,096
Likes: 0
Received 0 Likes on 0 Posts
Default

y= 4 + sin(2t) - 8cos(2t)

Differentiate:

dy/dt = 2 cos 2t + 16 sin 2t

At a maximum or minimum, dy/dt = 0, so:

0 = 2 cos 2t + 16 sin 2t
0 = cos 2t + 8 sin 2t

Double angle formula: sin 2t = 2 sin t cos t

Therefore, 0 = cos 2t + 16 sin t cos t

Another double angle formula: cos 2t = 1 - 2 sin^2 t

So, 0 = 1 - 2 sin^2 t + 16 sin t cos t

2 sin^2 t - 16 sin t cos t = 1

Trig identity sin^2 t + cos^2 t = 1, therefore cos t = +/- SQRT (1 - sin ^2 t)

Therefore,
2 sin^2 t - 16 sin t SQRT (1 - sin^2 t) = 1

Let x = sin t, therefore

2x^2 - 16x SQRT (1 - x^2) = 1

2x^2 - 1 = 16x SQRT (1-x^2)

Square both sides:
4x^4 - 4x^2 + 1 = 256 x^2 (1-x^2) = 256 x^2 - 256 x^4

260 x^4 - 260 x^2 + 1 = 0

Substitute z = x^2,

260z^2 - 260z + 1 = 0

Quadratic formula:
z = (260 +/- SQRT (260^2 - 4x260x1)) / 520

z =0.003861 or 0.99614
Therefore, x = 0.0621 or 0.9981
Therefore, t = 0.0621 or 1.509

Substitute back into the original equation gives a maximum @ t = 1.509 of 12.06.

I think I need a beer
Old 11 January 2009, 08:38 PM
  #11  
rooferman
Scooby Regular
iTrader: (6)
 
rooferman's Avatar
 
Join Date: Feb 2004
Posts: 3,377
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by AndyC_772
y= 4 + sin(2t) - 8cos(2t)

Differentiate:

dy/dt = 2 cos 2t + 16 sin 2t

At a maximum or minimum, dy/dt = 0, so:

0 = 2 cos 2t + 16 sin 2t
0 = cos 2t + 8 sin 2t

Double angle formula: sin 2t = 2 sin t cos t

Therefore, 0 = cos 2t + 16 sin t cos t

Another double angle formula: cos 2t = 1 - 2 sin^2 t

So, 0 = 1 - 2 sin^2 t + 16 sin t cos t

2 sin^2 t - 16 sin t cos t = 1

Trig identity sin^2 t + cos^2 t = 1, therefore cos t = +/- SQRT (1 - sin ^2 t)

Therefore,
2 sin^2 t - 16 sin t SQRT (1 - sin^2 t) = 1

Let x = sin t, therefore

2x^2 - 16x SQRT (1 - x^2) = 1

2x^2 - 1 = 16x SQRT (1-x^2)

Square both sides:
4x^4 - 4x^2 + 1 = 256 x^2 (1-x^2) = 256 x^2 - 256 x^4

260 x^4 - 260 x^2 + 1 = 0

Substitute z = x^2,

260z^2 - 260z + 1 = 0

Quadratic formula:
z = (260 +/- SQRT (260^2 - 4x260x1)) / 520

z =0.003861 or 0.99614
Therefore, x = 0.0621 or 0.9981
Therefore, t = 0.0621 or 1.509

Substitute back into the original equation gives a maximum @ t = 1.509 of 12.06.

I think I need a beer
Bloody hell!!!!

Now i know how i ended up being a roofer......
Old 11 January 2009, 08:39 PM
  #12  
psigeek
Scooby Regular
iTrader: (17)
 
psigeek's Avatar
 
Join Date: Oct 2007
Posts: 1,175
Likes: 0
Received 0 Likes on 0 Posts
Default

^^After my own heart. Good stuff.
Old 11 January 2009, 08:40 PM
  #13  
Hanslow
Scooby Regular
 
Hanslow's Avatar
 
Join Date: Mar 2001
Location: Derbyshire
Posts: 4,496
Likes: 0
Received 0 Likes on 0 Posts
Default

Nice one Andy I wish I could remember more of my calculus Maybe that's a target for this year At least I knew what needed to be done, just couldn't remember all my trig calculus

Last edited by Hanslow; 11 January 2009 at 08:42 PM.
Old 11 January 2009, 08:47 PM
  #14  
AndyC_772
Scooby Regular
iTrader: (2)
 
AndyC_772's Avatar
 
Join Date: Mar 2001
Location: Swilling coffee at my lab bench
Posts: 9,096
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by rooferman
Bloody hell!!!!

Now i know how i ended up being a roofer......
...not to mention how I ended up being an engineer
Old 11 January 2009, 09:26 PM
  #15  
john banks
Scooby Regular
 
john banks's Avatar
 
Join Date: Nov 2000
Location: 32 cylinders and many cats
Posts: 18,658
Likes: 0
Received 1 Like on 1 Post
Default

So 2t is about 7 degrees less than my coarse estimate of 180. Interesting.

I like the neat way of doing it, the trouble is you need to have lots of practice and intimate present knowledge of all the trig substitutions to get to your solution. This was the area I used to have most trouble with. It is like trying to solve a chess problem that says "solve for checkmate in 10 moves" in a complex position. My brain just melts.
Old 12 January 2009, 07:30 PM
  #16  
dunx
Scooby Senior
iTrader: (3)
 
dunx's Avatar
 
Join Date: Jun 2006
Location: Slowly rebuilding the kit of bits into a car...
Posts: 14,333
Likes: 0
Received 0 Likes on 0 Posts
Default

I ended up needing a drink...


alcoholic dunx

P.S. Hoff buy a decent bloody Casio, and it will plot it for you !

I use Excel myself....

HTH

dunx

Last edited by dunx; 12 January 2009 at 07:32 PM.
Old 12 January 2009, 09:11 PM
  #17  
b road blaster
Scooby Regular
 
b road blaster's Avatar
 
Join Date: Feb 2006
Posts: 520
Likes: 0
Received 0 Likes on 0 Posts
Default

my head hurts
Old 12 January 2009, 10:10 PM
  #18  
Reffro
Scooby Regular
 
Reffro's Avatar
 
Join Date: Apr 2001
Location: Bushey
Posts: 2,542
Likes: 0
Received 0 Likes on 0 Posts
Default

Its sh*t like that, that meant I only got a D in my maths A-level 18 years ago.

I still have yet to find or use pure maths in my work or life since then. Thank ****.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Abx
Subaru
22
09 January 2016 05:42 PM
PetrolHeadKid
Driving Dynamics
10
05 October 2015 05:19 PM
T.K
General Technical
10
02 October 2015 11:35 AM
the shreksta
Other Marques
26
01 October 2015 02:30 PM
minguela
Wheels And Tyres For Sale
0
29 September 2015 11:28 AM



Quick Reply: Maths problem, max value of a function...



All times are GMT +1. The time now is 04:51 AM.