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

AI Thread Summary
The discussion revolves around evaluating the integral of (sin(x))^(y-3) using Matlab, where users encounter a warning that the explicit integral cannot be found. It is noted that y should be treated as a constant for the integral to be evaluated correctly, as its status as a variable complicates the process. Additionally, a user seeks help with another integral involving cosine and sine functions, attempting to use Matlab but facing similar issues. The conversation highlights the challenges of integrating functions with parameters and the need for proper variable definitions in Matlab. Ultimately, users are looking for analytical or Matlab-based solutions to these integration problems.
sara_87
Messages
748
Reaction score
0

Homework Statement



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

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:
\frac{(cosy)^{2b-3}}{(siny)^{b-1}}
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?
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...

Similar threads

Back
Top