0% found this document useful (0 votes)
8 views4 pages

Calculus Problem Solutions and Substitutions

The document contains solutions to three mathematical problems involving symbolic computation. Problem 1 focuses on differentiating a function and evaluating it at specific points. Problems 2 and 4 involve differentiation, integration, and substitution of variables in expressions related to exponential functions and polynomial equations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views4 pages

Calculus Problem Solutions and Substitutions

The document contains solutions to three mathematical problems involving symbolic computation. Problem 1 focuses on differentiating a function and evaluating it at specific points. Problems 2 and 4 involve differentiation, integration, and substitution of variables in expressions related to exponential functions and polynomial equations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

>> %PROBLEMA 1

>> syms a b c x;

>> S=0.8*x^2+4*exp(0.5*x);

>> dS=diff(S)

dS =

(8*x)/5 + 2*exp(x/2)

>> subs(dS,x,2)

ans =

2*exp(1) + 16/5

>> subs(dS,x,[2:0.5:4])

ans =

[ 2*exp(1) + 16/5, 2*exp(5/4) + 4, 2*exp(3/2) + 24/5, 2*exp(7/4) + 28/5, 2*exp(2) + 32/5]

>> %PROBLEMA 2

>> syms a g t V

>> Y=V^2*exp(a*t)/g

Y=

(V^2*exp(a*t))/g

>> DY=diff(Y)

DY =

(V^2*a*exp(a*t))/g
>> IY=int(Y)

IY =

(V^2*exp(a*t))/(a*g)

>> subs(Y,t,2)

ans =

(V^2*exp(2*a))/g

>> subs(Y,t,[2:4])

ans =

[ (V^2*exp(2*a))/g, (V^2*exp(3*a))/g, (V^2*exp(4*a))/g]

>> subs(Y,a,5)

ans =

(V^2*exp(5*t))/g

>> subs(DY,t,2)

ans =

(V^2*a*exp(2*a))/g

>> subs(DY,t,[2:4])

ans =

[ (V^2*a*exp(2*a))/g, (V^2*a*exp(3*a))/g, (V^2*a*exp(4*a))/g]


>> subs(DY,a,5)

ans =

(5*V^2*exp(5*t))/g

>> subs(IY,t,2)

ans =

(V^2*exp(2*a))/(a*g)

>> subs(IY,t,[2:4])

ans =

[ (V^2*exp(2*a))/(a*g), (V^2*exp(3*a))/(a*g), (V^2*exp(4*a))/(a*g)]

>> subs(IY,a,5)

ans =

(V^2*exp(5*t))/(5*g)

>> %PROBLEMA 4

>> syms a b c d x

>> F=a*x^3+b*x^2+c*x+d;

>> FF=subs(F,x,t)

FF =

a*t^3 + b*t^2 + c*t + d

>> Z=subs(FF,{a,b,c,d},{3 2 1 0})


Z=

3*t^3 + 2*t^2 + t

>> subs(Z,t,2)

ans =

34

>> subs(Z,t,[1:4])

ans =

[ 6, 34, 102, 228]

You might also like