Evaluating Integrals with Matlab for Integration of (sinx)^(y-3)

Click For Summary
SUMMARY

The discussion focuses on evaluating the integral \(\int(\sin x)^{y-3} dx\) using MATLAB. The user encountered a warning stating that the explicit integral could not be found when attempting to compute it with the command `int(sin(x)^(3-y),x)`. Additionally, the user inquired about integrating the expression \(\frac{(\cos y)^{2b-3}}{(\sin y)^{b-1}}\) and faced similar challenges. The conversation emphasizes the need to treat \(y\) as a constant for proper evaluation and suggests that a differential equation approach may be necessary if \(y\) is treated as a variable.

PREREQUISITES
  • Familiarity with MATLAB symbolic toolbox
  • Understanding of integral calculus, specifically trigonometric integrals
  • Knowledge of differential equations
  • Experience with symbolic variable definitions in MATLAB
NEXT STEPS
  • Explore MATLAB's symbolic toolbox documentation for integral functions
  • Learn about handling symbolic variables in MATLAB
  • Research techniques for solving differential equations in MATLAB
  • Study integration by parts and its applications in trigonometric integrals
USEFUL FOR

Students, educators, and researchers in mathematics or engineering who are working with MATLAB for symbolic integration and need to evaluate complex trigonometric integrals.

sara_87
Messages
748
Reaction score
0

Homework Statement



If i want to evaluate the following integral:
[tex]\int(sinx)^{y-3} dx[/tex]

using Matlab.

Homework Equations





The Attempt at a Solution



i first defined the variables x and y:
syms x
syms y
then i typed the integral;
int(sin(x)^(3-y),x)
but it doesn't give me the integral, it says:
Warning: Explicit integral could not be found.
why?
 
Physics news on Phys.org
You may want to refer to this thread:
https://www.physicsforums.com/showthread.php?t=229516

EDIT: Also, are you sure that y (as a variable, and not as a constant defined elsewhere) is supposed to be in your equation? You'll need to solve a differential equation, if that is the case.
 
y is a constant but we are not given the value so the answer should be in terms of y.
i want to integrate:
[tex]\frac{(cosy)^{2b-3}}{(siny)^{b-1}}[/tex]
but i don't know how to i tried integration by parts repeatedly but it didnt work
so I am trying to use Matlab.
I did:
syms x
syms y
syms b
int((cos(y))^(2b-3)/((sin(y))^(b-1)),x)
but it didnt work.
do you have any ideas how to find this integral analytically or using Matlab?
 

Similar threads

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