for indefinite integration of function 
Matlab code is
Program:
syms x
f = x*e^x;
int(f)
here syms is used to solve expression using function
int(f) return indefinite integral of function f
for definite integration of function
Program:
syms x
f = x*e^x;
int(f,0,1)
int(f,a,b) return definite integral of function f for value from a to b.
Question 3(20 marks) Write the programs to find the following in Matlab xe dx an
write a code please
Problem 1 Write MATLAB programs to find the following sums with for loops. (a) 12 + 22 + 32 + ... ... ... + 10002. (b) 1 –}+*+*+.........-1003 Problem 2 Make two separate plots of the function f(x) = 0.6x5 – 5x3 + 9x + 2; one plot for -4 < x < 4, and -2.7 < x < 2.7. Plot by creating vectors.
Question 3 Consider the following linear system of differential equations dx: = 2x-3y dt dy dt (a) Write this system of differential equations in matrix form (b) Find the general solution of the system (c) Solve the initial value problem given (0) 3 and y(0)-4 (d) Verify the calculations with MATLAB
Question 3 Consider the following linear system of differential equations dx: = 2x-3y dt dy dt (a) Write this system of differential equations in matrix form (b) Find the...
Question 3. [3 marks ] Use the MATLAB built-in LU matrix factorization function "lu" to find the PLU factorization of the matrix below 1 -2 30 1 -2 3 1 2 22 2 3
Question 3. [3 marks ] Use the MATLAB built-in LU matrix factorization function "lu" to find the PLU factorization of the matrix below 1 -2 30 1 -2 3 1 2 22 2 3
1. [12 marks] In the following parts of this question, write a MATLAB code to solve a linear system A b (A is a square nonsingular matrix) using Jacobi and Gauss-Seidel algorithms. Do not use the built-in Matlab functions for solving linear systems (a) Write a Matlab function called Jacobi that consumes a square n x n matrix A, and an n x 1 vector b, and uses the Jacobi technique to solve the system Ax-b, starting with the zero...
9. Evaluate the following integral: f xe* dx
write it in matlab language
Question No 4 6 Marks The surface area and volume of the shown ring-shaped mechanical part are calculated respectively as follows: A =rd (2k +d) V = *d? (2R +d) Write a user defined function that computes surface area (A) and volume (V) of this ring from the arguments d and R. Suppose that is constrained to be 15 in, greater than d. Write a script file that uses your function to plot A and...
Find a solution
5. (1+ ye*)dx + (2y + xe*2)dy = 0.
(ve cos2x - 2e+ sin2x + 2x)dx +(xe" cos2x - 3)dy = 0 a) Determine if it is exact or not; b) Find the general solution.
Question 6 [10 marks a) Let f(x) = x for each xe [a,b]. Show that for any number of subintervals, the global error js(x)dx-SUS J) = 0. [6] Hint: Obtain the local error first and then calculate the global error. SCS ,h) denotes approximation using the composite Simpson's Rule. b) Determine the minimum number of subintervals so that the upper bound of the (absolute) global error for the composite Simpson's Rule applied to ja?-10x”) dx is less than 10%. [41...
3. a) Write a Matlab program to define student grade program and student number with (10 Marks) statement logic b) Write a Matlab program for sensor selection of temperature, pressure, flow sensor with if-else (15 Marks) statement logic
3. a) Write a Matlab program to define student grade program and student number with (10 Marks) statement logic b) Write a Matlab program for sensor selection of temperature, pressure, flow sensor with if-else (15 Marks) statement logic