CINXE.COM
eFunda: Expanding Trigonometric Function
<!DOCTYPE html> <html> <head><script type="text/javascript">/* <![CDATA[ */_cf_loadingtexthtml="<img alt=' ' src='/CFIDE/scripts/ajax/resources/cf/images/loading.gif'/>"; _cf_contextpath=""; _cf_ajaxscriptsrc="/CFIDE/scripts/ajax"; _cf_jsonprefix='//'; _cf_websocket_port=8577; _cf_flash_policy_port=1243; _cf_clientid='40FE4408D393504E3F3CA55F01A046F1';/* ]]> */</script><script type="text/javascript" src="/CFIDE/scripts/ajax/messages/cfmessage.js"></script> <script type="text/javascript" src="/CFIDE/scripts/ajax/package/cfajax.js"></script> <!-- Google tag (gtag.js) Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-EM5BEFDGX6"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-EM5BEFDGX6'); </script> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>eFunda: Expanding Trigonometric Function</title> <meta name="AUTHOR" content="eFunda, Inc."> <meta name="DESCRIPTION" content="This calculator expands out products of trigonometric (circular and hyperbolic) functions into sums of powers, using trigonometric identities when possible. "> <meta name="KEYWORDS" content="efunda, Expanding Trigonometric Function, Math , calculators , circular , expanding, expansions , functions , hyperbolic , trigonometric , webMathematica"> <link rel="stylesheet" href="/css/style-root.css?v=1.0.0"> <link rel="stylesheet" href="/css/style-ros.css?v=1.0.7"> <link rel="stylesheet" href="/css/styles-legacy.css?v=1.0"> <link rel="stylesheet" href="/css/round_border.css"> <link rel="stylesheet" href="/css/wolfram.css?v=1.0.1"> <!--[if IE]> <link rel="stylesheet" href="/css/wolfram_ie.css"> <![endif]--> <link rel="stylesheet" href="/css/fa.css"> <link rel="icon" href="/images/favicons/favicon-32.png" sizes="32x32"> <link rel="icon" href="/images/favicons/favicon-57.png" sizes="57x57"> <link rel="icon" href="/images/favicons/favicon-76.png" sizes="76x76"> <link rel="icon" href="/images/favicons/favicon-96.png" sizes="96x96"> <link rel="icon" href="/images/favicons/favicon-128.png" sizes="128x128"> <link rel="icon" href="/images/favicons/favicon-192.png" sizes="192x192"> <link rel="icon" href="/images/favicons/favicon-228.png" sizes="228x228"> <link rel="shortcut icon" sizes="196x196" href="/images/favicons/favicon-196.png"> <link rel="apple-touch-icon" href="/images/favicons/favicon-120.png" sizes="120x120"> <link rel="apple-touch-icon" href="/images/favicons/favicon-152.png" sizes="152x152"> <link rel="apple-touch-icon" href="/images/favicons/favicon-180.png" sizes="180x180"> <meta name="msapplication-TileColor" content="#FFFFFF"> <meta name="msapplication-TileImage" content="/images/favicons/favicon-144.png"> <meta name="msapplication-config" content="/images/favicons/browserconfig.xml" /> <script src="/js/jquery-3.4.1.min.js"></script> <script src="/js/efunda-ros.js?v=1.0.9"></script> <script src="/js/utilities.js?v=1.0"></script> <script src="/js/webMathematica.js?v=1.0.2"></script> <style> @media only screen and (max-width: 1043px) { #ros-menu {top: 60px;} </style> <script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script> <script> window.googletag = window.googletag || {cmd: []}; googletag.cmd.push(function() { googletag.defineSlot('/4250/eFunda', [728, 90], 'div-gpt-ad-1584717204048-0').addService(googletag.pubads()); // GlobalSpec googletag.defineSlot('/4250/eFunda', [300, 250], 'div-gpt-ad-1584717204048-1').addService(googletag.pubads()); // GlobalSpec googletag.defineSlot('/4250/eFunda', [160, 600], 'div-gpt-ad-1584717204048-2').addService(googletag.pubads()); // GlobalSpec googletag.defineSlot('/1065348/SM_Skyscraper', [160, 600], 'div-gpt-ad-1550283326625-0').addService(googletag.pubads()); // SmartMeasurement googletag.defineSlot('/1065348/SM_728x90', [728, 90], 'div-gpt-ad-1550282781000-0').addService(googletag.pubads()); // SmartMeasurement googletag.defineSlot('/1065348/ROS-Top-Low-728x90', [728, 90], 'div-gpt-ad-1588786797429-0').addService(googletag.pubads()); //House googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); </script> <script type="text/javascript">/* <![CDATA[ */ ColdFusion.Ajax.importTag('CFAJAXPROXY'); /* ]]> */</script> </head> <body> <header> <div class="banner"> <div class="home"><a href="/home.cfm"><h1>Home</h1></a></div> <div class="menu"> <a href="/calculator.cfm">Calculators</a> <a href="/forum/forum.cfm">Forum</a> <a href="https://efunda.tradepub.com/">Magazines</a> <a href="/members/people/search_people.cfm">Search Members</a> <a href="/whyjoin.cfm">Membership</a> <a href="/members/login/login.cfm?direct=y">Login</a> </div> </div> </header> <div class="ros-container"> <div id="ros-left-container" class="ros-left-container"> <input id="toggle-button" type="checkbox"> <div id="ros-menu" class="ros-menu"> <script type="text/javascript"> function submitForm() { var objDivResult = document.getElementById('divResult'); objDivResult.style.display = 'block'; objDivResult.innerHTML = '<div style="padding:5 0 0 12;"><img src="../../images/wait18.gif"></div>'; ColdFusion.Ajax.submitForm('myForm', '../proxy.cfm?targetURL=elemfunc-expandtrig', callback, errorHandler, 'POST'); } function callback(text) { text = text.replace(/\/webMathematica\//g,'https://math.efunda.com/webMathematica/'); document.getElementById('divResult').innerHTML = text; } function errorHandler(code, msg) { alert("Error!!! " + code + ": " + msg); } </script> <table width="298" border="0" cellspacing="0" cellpadding="1"> <tr> <td width="10" valign="top"><img src="../../images/dot.gif"></td> <td width="284" class="smalltext" nowrap><b>Calculators</b></td> </tr> <tr> <td valign="top"><img src="/images/pixel.png"></td> <td class="smalltext"><a href="../../calculator.cfm" class="title1">Calculator Home</a></td> </tr> <tr> <td valign="top"><img src="/images/pixel.png"></td> <td class="smalltext"><a href="../home/webM_home.cfm" class="title1">webMathematica</a></td> </tr> </table> </div> <div class="ros-left-banner"> <iframe src="https://www.wolfram.com/efunda/featured.html" width="300" height="194" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe> </div> <div class="ros-left-house-ad"> </div> </div> <div id="ros-content" class="ros-content"> <div class="menu-toggle"> <label for="toggle-button"><i class="fas fa-bars"></i> Toggle Menu</label> </div> <div style="text-align:center; background-color:#cfe9ab; border-radius:5px; padding:10px; margin-bottom:5px;"> <form action="/search/search_efunda.cfm" id="cse-search-box" style="margin:0;"> <input type="hidden" name="search_scope" value="all" /> <input type="hidden" name="cx" value="partner-pub-4893968732705577:8p6b3e740e7" /> <input type="hidden" name="cof" value="FORID:11" /> <input type="hidden" name="ie" value="UTF-8" /> <input type="text" class="Text" style="border:none; border-radius:5px; width:400px; height:35px; padding-left:5px;" name="q" maxlength="50" value="" /> <input type="submit" name="sa" value="Search efunda" style="font-size:1rem; color:white; border:none; border-radius:5px; background-color:#72993c; width:150px; height:35px; margin-left:20px;" /> </form> </div> <div class="icon-menu" style="margin:20px 0;"> <div class="icon-spacer"><img src="/images/llc1.gif"></div> <div class="icon-item"><a href="/materials/"><img src="/images/title4.gif"></a><br><a class="title1" href="/materials/">Materials</a><a name="PageTop"></a></div> <div class="icon-spacer"><img src="/images/mid_peg1.gif"></div> <div class="icon-item"><a href="/materials/"><a href="/DesignStandards/"><img src="/images/title3.gif"></a><br><a class="title1" href="/DesignStandards/">Design</a></div> <div class="icon-spacer"><img src="/images/mid_peg1.gif"></div> <div class="icon-item"><a href="/materials/"><a href="/processes/"><img src="/images/title2.gif"></a><br><a class="title1" href="/processes/">Processes</a></div> <div class="icon-spacer"><img src="/images/mid_peg1.gif"></div> <div class="icon-item"><a href="/materials/"><a href="/units/"><img src="/images/title5.gif"></a><br><a class="title1" href="/units/">Units</a></div> <div class="icon-spacer"><img src="/images/mid_peg1.gif"></div> <div class="icon-item"><a href="/formulae/"><img src="/images/title6.gif"></a><br><a class="title1" href="/formulae/">Formulas</a></div> <div class="icon-spacer"><img src="/images/mid_peg1.gif"></div> <div class="icon-item"><a href="/materials/"><a href="/math/"><img src="/images/title1.gif"></a><br><a class="title1" href="/math/">Math</a></div> <div class="icon-spacer"><img src="/images/lrc1.gif"></div> </div> <!-- Wolfram web resources banner --> <div id="resourcesWrapper"> <div class="resourcesHeader"> <img src="https://www.wolfram.com/efunda/resourcesHeader.gif" width="322" height="11" alt="Web Resources (Sponsored by Wolfram Research)" title="Web Resources (Sponsored by Wolfram Research)"> <a href="https://www.wolfram.com/webresources.html">Browse all »</a> </div> <ul class="resourcesList"> <li><a href="https://community.wolfram.com/">Wolfram Community » <img src="https://www.efunda.com/webM/images/community.png" width="232" height="107" alt="Wolfram Community" title="Wolfram Community"></a></li> <li><a href="https://www.wolfram.com/language/">Wolfram Language » <img src="https://www.efunda.com/webM/images/wolfram-language.png" width="232" height="107" alt="Wolfram Language" title="Wolfram Language"></a></li> <li><a href="https://demonstrations.wolfram.com/">Demonstrations » <img src="https://www.efunda.com/webM/images/demonstrations-project.png" width="232" height="107" alt="Demonstrations" title="Demonstrations"></a></li> <li class="last"><a href="https://devices.wolfram.com">Connected Devices » <img src="https://www.efunda.com/webM/images/connected-devices-project.png" width="232" height="107" alt="Connected Devices" title="Connected Devices"></a></li> </ul> </div> <!-- end web resources banner --> <div class="main-meat"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td><IMG SRC="../../images/pixel.gif" width=5 height=7 border=0 alt=""></td></tr> <tr><td class="footnotetext" style="color: #888888;"> <img src="https://www.efunda.com/images/webm-type.jpg" width=244 height=18 border=0 alt="Powered by webMathematica"> <b><i>enabled calculators</i></b> </td></tr> <tr><td><IMG SRC="../../images/pixel.gif" width=5 height=7 border=0 alt=""></td></tr> </table> <table width="100%" border="0" cellpadding="1" cellspacing="0"> <tr><td class="smalltext" bgcolor="Red"> <table width="100%" border="0" cellpadding="4" cellspacing="0" bgcolor="White"> <tr><td class="smalltext"> <p><b>web<i>Mathematica</i></b> calculators are for premier members only. The calculator is currently in demo mode, and <span class="red"><strong><em>some input fields are not available for editing</em></strong>.</span> <br><br><span class="orange">Premier members please login <a href="../../members/login/login.cfm">here</a>. Otherwise, <a href="../../members/register.cfm?step=1&short=yes">join us now</a> to start using these powerful web<i>Mathematica</i> calculators.</span> </td></tr> </table> </td></tr> <tr><td><img src="../../images/pixel.gif" width="1" height="10" border="0" alt=""> </td></tr> </table> <FORM id="myForm" method="POST" style="margin:0px;"> <p>This calculator splits up sums and integer multiples that appear in arguments of trigonometric (<a href="../../math/trig_functions/trig_functions.cfm">circular</a> and <a href="../../math/hyperbolic/hyperbolic.cfm">hyperbolic</a>) functions, and then expands out products of trigonometric functions into sums of powers, using trigonometric identities when possible. Finally, it pulls out the common factors of the expanded result. <div style="padding:20 0 5 0"> <b>Inputs</b> <a href="../help/webM_note.cfm" target="eFundawebMHelp"><span class="footnotetext"><span class="orange"><b><i>Help</i></b></span></span></a> </div> <div class="section_border_gray" style="width:100%; background-color:#F9F9F9"><div class="section_corner_gray"><div class="top_left"><img src="/images/pixel.png"></div><div class="top_right"><img src="/images/pixel.png"></div></div><div align="center" style="width:100%; padding:10px;"> <table width="100%" cellspacing="1" cellpadding="8" border="0"> <tr bgcolor="DEECC3"> <td class="smalltext" align="right">Expression: </td> <td class="smalltext" align="left"> Sin[5*x] <input type="hidden" name="expr" value="Sin[5*x]" class="smalltext"> </td> </tr> <tr bgcolor="EEF2E7"> <td class="smalltext" align="right">Evaluation: </td> <td class="smalltext" align="left"> <select name="eval" class="smalltext" style="height:25px;"> <option value="0" selected>Keep symbols and fractions</option> <option value="1" >Expand constants and fractions to numerical values</option> </select> </td> </tr> <tr bgcolor="DEECC3"> <td class="smalltext" align="right">Output: </td> <td class="smalltext" align="left"> <select name="outfmt" class="smalltext" style="height:25px;"> <option value="StandardForm" >Standard Display</option> <option value="InputForm" >ASCII Typing</option> <option value="OutputForm" selected>ASCII Display</option> <option value="TraditionalForm" >Hand Write</option> </select> </td> </tr> <tr bgcolor="EEF2E7"> <td class="smalltext" align="right">Syntax: </td> <td class="smalltext" align="left"> <input type="radio" name="conv2webm" value="1" checked> Yes, please help fix my input into proper <i>Mathematica</i><sup>®</sup> syntax. <br> <input type="radio" name="conv2webm" value="0" > No help needed. I am familiar with <i>Mathematica</i><sup>®</sup>. <br> <span class="footnotetext"> <br><b>Note</b>: This syntax helper works only for elementary functions such as Sin, Cosh, ArcTan, Log, and Exp. Members who need to use special functions and characters still need to learn the correct Mathematica<sup>®</sup> input format from the <a href="../help/webM_note.cfm" target="eFundawebMHelp"><b>HELP</b></a> page. Seasoned <i>Mathematica</i> users may want to turn off this helper to prevent any ambiguity.</span>sss </td> </tr> </table> </div><div class="section_corner_gray"><div class="bottom_left"><img src="/images/pixel.png"></div><div class="bottom_right"><img src="/images/pixel.png"></div></div></div> <div style="padding-top:10px;"> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td class="smalltext" align="left" width="55%"> <INPUT TYPE="button" NAME="Submit" VALUE="Expand" onclick="submitForm();"> <input type="hidden" name="pgt" value="Expanding Trigonometric Function"> <input type="hidden" name="webMusr" value="******:8.222.208.146:webM/elemfunc/expandtrig.cfm"> </FORM> </td> <td class="smalltext" align="right" width="15%"> <FORM ACTION="expandtrig.cfm" METHOD="POST" style="margin:0px;"> <INPUT TYPE="Submit" NAME="Submit" VALUE="Example 1"> </FORM> </td> <td class="smalltext" align="right" width="15%"> <FORM ACTION="expandtrig.cfm" METHOD="POST" style="margin:0px;"> <input type="hidden" name="expr" value="Cosh[2*y]"> <INPUT TYPE="Submit" NAME="Submit" VALUE="Example 2"> </FORM> </td> <td class="smalltext" align="right" width="15%"> <FORM ACTION="expandtrig.cfm" METHOD="POST" style="margin:0px;"> <input type="hidden" name="expr" value="Sin[3*x] * Cos[3*x]"> <INPUT TYPE="Submit" NAME="Submit" VALUE="Example 3"> </FORM> </td> </tr> </table> </div> <div id="divResult" style="display:none;"></div> </div> <div style="text-align:center; padding:80px 0 20px 0;"> <img src="/images/section_bar_1.png"> <iframe src="https://www.wolfram.com/efunda/footer.html" width="575" height="145" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe> </div> </div> </div> <footer> <div class="container"> <a href="/whyjoin.cfm">Membership</a> <a href="/about/about.cfm">About Us</a> <a href="/members/privacy.cfm">Privacy</a> <a href="/disclaimer.cfm">Disclaimer</a> <a href="/about/contact.cfm">Contact Us</a> <a href="/eds">Directory</a> <a href="https://efunda.co">Advertise</a> <p>copyright © 1999-2024 eFunda, Inc.</p> </div> </footer> </body> </html>